CN107819621A - A kind of collocation method of gateway, device and gateway - Google Patents

A kind of collocation method of gateway, device and gateway Download PDF

Info

Publication number
CN107819621A
CN107819621A CN201711078973.7A CN201711078973A CN107819621A CN 107819621 A CN107819621 A CN 107819621A CN 201711078973 A CN201711078973 A CN 201711078973A CN 107819621 A CN107819621 A CN 107819621A
Authority
CN
China
Prior art keywords
gateway
data
parameter
configuration
primary parameter
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
CN201711078973.7A
Other languages
Chinese (zh)
Other versions
CN107819621B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201711078973.7A priority Critical patent/CN107819621B/en
Publication of CN107819621A publication Critical patent/CN107819621A/en
Application granted granted Critical
Publication of CN107819621B publication Critical patent/CN107819621B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a kind of collocation method of gateway, device and gateway.Wherein, this method includes:Configuration port based on gateway, configure the Primary parameter of gateway;Wherein, the Primary parameter includes the parameter of data and the parameter of translated data;The data changed by the gateway are divided into data and translated data;For each frame data in the Primary parameter, the secondary parameters of each frame data are configured;The Primary parameter and the secondary parameters are loaded into the gateway.The present invention completes the relative parameters setting of gateway based on configuration port, is operated without professional and technical personnel.So as to effectively reduce the workload of gateway exploitation, gateway construction cycle and the development difficulty of project are reduced.

Description

A kind of collocation method of gateway, device and gateway
Technical field
The present invention relates to gateway technique field, in particular to a kind of collocation method of gateway, device and gateway.
Background technology
The function of gateway is mainly used in the collection of data message, and is often directed to each application scenarios, and it needs what is gathered All there is either large or small variation in data format, can also there is different communication protocol, so carrying out these projects every time all needs The gateway of actual situation development agreement conversion is directed to, realizes the collection of data message.Here the drawbacks of embodying has two Point:
(1) different equipment is directed to, is required for software development every time, wherein portable poor;
(2) software designer of gateway must specialize in personnel, for requiring higher in design.
The problem of development amount for how to reduce gateway in the prior art, effective solution party is not yet proposed at present Case.
The content of the invention
A kind of collocation method of gateway, device and gateway are provided in the embodiment of the present invention, with solve in the prior art how The problem of reducing the development amount of gateway.
In order to solve the above technical problems, the invention provides a kind of collocation method of gateway, wherein, this method includes:Base In the configuration port of gateway, the Primary parameter of gateway is configured;Wherein, the Primary parameter includes the parameter of data and turned Change the parameter of rear data;The data changed by the gateway are divided into data and translated data;For described Each frame data in Primary parameter, configure the secondary parameters of each frame data;By the Primary parameter and the secondary parameters It is loaded into the gateway.
Further, the Primary parameter includes following three parts:Frame head part, valid data part, check information Part.
Further, the frame head part includes:Each data type of byte and the numerical value of each byte;Wherein, institute State data type and comprise at least one below:Device address, valid data length, function code, ID number;The valid data part Including:Precision changes, changes front and rear numerical value change, turns before and after data and the mapping relations of translated data, conversion Change front and rear data sense association;The check information part comprises at least one of following verification mode:XOL、CRC.
Further, the secondary parameters include following two parts:Mode of operation, valid data type.
Further, the mode of operation comprises at least one below:Initialize sending mode, initialization reception pattern, Sending mode in operation, reception pattern, itself sending mode, itself reception pattern in operation;The valid data type refers to The unit of valid data, the unit comprise at least one below:Word、Byte、Bit.
Further, the Primary parameter and the secondary parameters are loaded into the gateway, at least through in the following manner One of realize:Live burning program is to the mode of gateway, the mode of on-scene communication configuration parameter to gateway.
Further, the configuration port is integrated with the gateway;Or the configuration port is the outer of the gateway Add port.
Further, the configuration port is at least one below:Application software, display, touch-screen, communication interface.
Present invention also offers a kind of configuration device of gateway, wherein, the device includes:First configuration module, for base In the configuration port of gateway, the Primary parameter of gateway is configured;Wherein, the Primary parameter includes the parameter of data and turned Change the parameter of rear data;The data changed by the gateway are divided into data and translated data;Second configuration Module, for for each frame data in the Primary parameter, configuring the secondary parameters of each frame data;Load-on module, use In the Primary parameter and the secondary parameters are loaded into the gateway.
Further, the Primary parameter includes following three parts:Frame head part, valid data part, check information Part.
Further, the secondary parameters include following two parts:Mode of operation, valid data type.
Present invention also offers a kind of gateway, wherein, the gateway includes:Configure port and application software module;Wherein, institute State be provided with the operation interface of application software module conversion before allocation window and conversion after allocation window;Configured before the conversion Window be used for configure gateway data parameter, and in the parameter each frame data secondary parameters;The conversion Afterwards allocation window be used for configure gateway translated data parameter, and in the parameter each frame data secondary parameters.
Apply the technical scheme of the present invention, by classifying to data, and coordinate designed configuration port, based on The relative parameters setting that gateway is completed in port is put, is operated without professional and technical personnel.So as to effectively reduce the work of gateway exploitation Amount, reduce gateway construction cycle and the development difficulty of project.
Brief description of the drawings
Fig. 1 is the flow chart of the collocation method of gateway according to embodiments of the present invention;
Fig. 2 is Primary parameter configuration schematic diagram according to embodiments of the present invention;
Fig. 3 is secondary parameters configuration schematic diagram according to embodiments of the present invention;
Fig. 4 is the structured flowchart of the configuration device of gateway according to embodiments of the present invention;
Fig. 5 is gateway configuration flow figure according to embodiments of the present invention.
Embodiment
The present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, but not as the limit to the present invention It is fixed.
Embodiment one
Fig. 1 is the flow chart of the collocation method of gateway according to embodiments of the present invention, as shown in figure 1, this method include with Lower step:
Step S101, the configuration port based on gateway, configure the Primary parameter of gateway;Wherein, above-mentioned Primary parameter includes The parameter of data and the parameter of translated data;The data changed by gateway are divided into data and conversion Data afterwards;
Step S102, for each frame data in above-mentioned Primary parameter, configure the secondary parameters of each frame data;
Step S103, Primary parameter and secondary parameters are loaded into gateway.
The present embodiment coordinates designed configuration port by classifying to data, and net is completed based on configuration port The relative parameters setting of pass, operated without professional and technical personnel.So as to effectively reduce the workload of gateway exploitation, project is reduced Gateway construction cycle and development difficulty.
The gateway of the present invention realizes the generalization gateway of field-programmable by way of configuring, and effectively strengthens versatility simultaneously Greatly reduce the program development workload of gateway.The communication mode of the gateway interface of the present embodiment can be various, such as industry at present On use more 485, CAN and Ethernet etc., and the one end (before conversion) gathered and one end (after conversion) for forwarding can match somebody with somebody Different physical port is set to, the port is computer applications software, and certainly, the port is not limited only to computer applications software, can To be display, touch-screen or communication interface etc..Port can also be applied on gateway with gateway one, i.e., gateway is outer Add port.
The present embodiment is by way of configuration parameter, after the data that gateway needs to change are divided into data and conversion Data, the parameter of data and the parameter of translated data are properly termed as Primary parameter.Fig. 2 is according to embodiments of the present invention Primary parameter configuration schematic diagram, as shown in Fig. 2 Primary parameter include frame head, valid data and verification three parts.Specifically:
(1) frame head part, the typically fixed byte length of this partial information, and fixed numerical value or value range, The type of each byte and specific numerical value can freely be configured according to the data format difference on specific physical link.For example, press The accurate Modbus agreements of sighting target, first character section is device address, and second byte is function code, and the 3rd, the 4th byte is The data address of access, the 5th, the 6th byte are the data amount checks accessed.Data class according to this form to each byte Type and specific data are configured.Specifically in configurable parameter, data type include device address, valid data length, Content involved by the various agreements such as function code, ID number.
(2) valid data part, this partial information mainly correspond to conversion according to applicable cases, configuration data The position mapping relations of data afterwards;The change relation of numerical value, such as:After agreement A some byte is changed into 0x01 before changing 0xaa is needed to use to represent;The precision change of numerical value, such as 0.0001 is originally, 0.01 is only needed after conversion, configuration reduction 100 times;The meaning associated record of data, for example, have in agreement some data meaning be need two byte representations, have Only a byte is needed to represent.The parameter that Fig. 2 is provided is fraction example, and the specific partially configurable parameter is related to institute There is the transformation relation of valid data.
(3) check part, this partial information only need the mode of selection check, such as XOL, CRC etc..
Next, for each frame data in Primary parameter, the secondary parameters of each frame data are configured.Fig. 3 is basis The secondary parameters configuration schematic diagram of the embodiment of the present invention, as shown in figure 3, secondary parameters include mode of operation, valid data type. Specifically:
(1) mode of operation mainly includes sending mode and operation in initialization sending mode, initialization reception pattern, operation Middle reception pattern, these four patterns are mainly used for data conversion, send and receive one-to-one corresponding, wherein initializing sending mode It is used to use when gateway carries out equipment initialization communication with initialization reception pattern, and is connect in running in sending mode and operation Receipts pattern is then used for the operation that Gateway Initiative terminates.Handled for its data of some gateways, mode of operation is also included certainly Body sending mode and itself reception pattern, Fig. 3 shows 6 kinds of mode of operations, but the present invention not only includes this six kinds, all and hair The pattern for receiving correlation is sent to be included.
(2) data type of valid data type, i.e. valid data, refer to effective involved by the head frame of current configuration The unit of data, such as Word, Byte and Bit.
After Primary parameter and secondary parameters has been configured, Primary parameter and secondary parameters are loaded into gateway, at least can be with Realize one of in the following manner:Live burning program is to the mode of gateway, the mode of on-scene communication configuration parameter to gateway.
Embodiment two
Corresponding to the collocation method of the gateway of Fig. 1 introductions, a kind of configuration device of gateway, such as Fig. 4 are present embodiments provided The structured flowchart of the configuration device of shown gateway, the device include:
First configuration module 10, for the configuration port based on gateway, configure the Primary parameter of gateway;Wherein, one-level is joined Number includes the parameter of data and the parameter of translated data;The data changed by gateway are divided into data And translated data;
Second configuration module 20, the first configuration module 10 is connected to, for for each frame data in Primary parameter, matching somebody with somebody Put the secondary parameters of each frame data;
Load-on module 30, the second configuration module 20 is connected to, for Primary parameter and secondary parameters to be loaded into gateway.
The present embodiment coordinates designed configuration port by classifying to data, and phase is completed by configuring port Related parameter is set, and is operated without professional and technical personnel.So as to effectively reduce the workload of gateway exploitation, the gateway for reducing project is opened Send out cycle and development difficulty.
The present embodiment is by way of configuration parameter, after the data that gateway needs to change are divided into data and conversion Data, the parameter of data and the parameter of translated data are properly termed as Primary parameter.First configuration module 10 configuration one Level parameter, Primary parameter include frame head, valid data and verification three parts.Frame head part includes:The data type of each byte With the numerical value of each byte;Wherein, data type comprises at least one below:Device address, valid data length, function code, ID number;Valid data part includes:Precision change, conversion before and after data and the mapping relations of translated data, conversion The front and rear data sense association of front and rear numerical value change, conversion;Check information part comprises at least one of following verification mode: XOL、CRC。
Next, the second configuration module 20 is directed to each frame data in Primary parameter, the two level of each frame data is configured Parameter.Secondary parameters include following two parts:Mode of operation, valid data type.Mode of operation comprises at least one below: Initialize sending mode, initialization reception pattern, operation in sending mode, operation in reception pattern, itself sending mode, itself Reception pattern;Valid data type refers to the unit of valid data, and the unit comprises at least one below:Word、Byte、Bit.
Embodiment three
A kind of gateway is present embodiments provided, the gateway includes:Configure port and application software module;Wherein, gateway carries It is configured for configuration port to user, allocation window before changing is provided in the operation interface of special application software module and turned Change rear allocation window two parts.Allocation window is used for the parameter for configuring the data of gateway before conversion, and in the parameter The secondary parameters of each frame data;Allocation window is used for the parameter for configuring the translated data of gateway, and the parameter after conversion In each frame data secondary parameters.
The present embodiment realizes the generalization gateway of field-programmable, effectively strengthens versatility and greatly reduces the journey of gateway Sequence development amount.
Fig. 5 is gateway configuration flow figure according to embodiments of the present invention, as shown in figure 5, the flow includes:
(1) user inputs information by configuring port;
(2) set conversion before gathered data physical port and conversion after forward data physical port;
(3) information according to protocol configuration per head frame;
(4) verification mode is configured;
(5) mode of operation (alternatively referred to as working condition) and the valid data type per head frame are configured;
(6) the data precision change after data to the mapping relations of translated data, transformation is set, is worth after transformation Change, the association of data sense;Afterwards, preserve configuration information and continue to configure next equipment;
(7) after the completion of configuring, export configuration information and be loaded into gateway.
The universal gateway of the present invention not only supports a kind of data conversion of single equipment, such as gateway to need to gather a variety of set Standby data are simultaneously forwarded on Ethernet, and these equipment are all the forms based on Modbus agreements, but in specific agreement Content is different.User is only needed by configuring port, and above-mentioned all information as in Fig. 2 and Fig. 3 are configured and preserved, Plurality of devices then repeats Fig. 5 configuration operation, and gateway can be marked and handle to more parts of configurations automatically, finally configure It is loaded into after on gateway, specific load mode can be live burning program, on-scene communication configuration parameter to gateway etc., final real Now to the data forwarding of plurality of devices.
The present embodiment as described above, pass through provided configuration port, can scene carry out data parameters configuration, it is final to realize The function of field programming universal gateway.By the universal gateway of embodiment, user only needs configuration parameter to can be achieved one arbitrarily The gateway of specific applications.
It was found from description more than, the invention provides a kind of universal gateway of field-programmable and gateway designs side Case, greatly reduce the development amount of gateway program.Special configuration port need to only be used by the universal gateway of the present invention Field programming is completed to can be used.Gateway designs difficulty is reduced, finally reduces cost indirectly.
Certainly, above is the preferred embodiment of the present invention.It should be pointed out that for those skilled in the art For, on the premise of its general principles are not departed from, some improvements and modifications can also be made, these improvements and modifications It is considered as protection scope of the present invention.

Claims (12)

1. a kind of collocation method of gateway, it is characterised in that methods described includes:
Configuration port based on gateway, configure the Primary parameter of gateway;Wherein, the Primary parameter includes the ginseng of data The parameter of number and translated data;The data changed by the gateway are divided into data and translated data;
For each frame data in the Primary parameter, the secondary parameters of each frame data are configured;
The Primary parameter and the secondary parameters are loaded into the gateway.
2. according to the method for claim 1, it is characterised in that the Primary parameter includes following three parts:Frame head portion Point, valid data part, check information part.
3. according to the method for claim 2, it is characterised in that
The frame head part includes:Each data type of byte and the numerical value of each byte;Wherein, the data type is at least Including one below:Device address, valid data length, function code, ID number;
The valid data part includes:Precision changes, turned before and after data and the mapping relations of translated data, conversion The data sense association changed before and after front and rear numerical value change, conversion;
The check information part comprises at least one of following verification mode:XOL、CRC.
4. according to the method for claim 1, it is characterised in that the secondary parameters include following two parts:Working mould Formula, valid data type.
5. according to the method for claim 4, it is characterised in that
The mode of operation comprises at least one below:Mould is sent in initialization sending mode, initialization reception pattern, operation Reception pattern, itself sending mode, itself reception pattern in formula, operation;
The valid data type refers to the unit of valid data, and the unit comprises at least one below:Word、Byte、Bit.
6. according to the method for claim 1, it is characterised in that the Primary parameter and the secondary parameters are loaded into institute Gateway is stated, is realized at least through one of in the following manner:
Live burning program is to the mode of gateway, the mode of on-scene communication configuration parameter to gateway.
7. according to the method for claim 1, it is characterised in that the configuration port is integrated with the gateway;Or institute State the additional port that configuration port is the gateway.
8. according to the method for claim 1, it is characterised in that the configuration port is at least one below:Application software, Display, touch-screen, communication interface.
9. a kind of configuration device of gateway, it is characterised in that described device includes:
First configuration module, for the configuration port based on gateway, configure the Primary parameter of gateway;Wherein, the Primary parameter The parameter of parameter and translated data including data;The data changed by the gateway are divided into number before conversion According to and translated data;
Second configuration module, for for each frame data in the Primary parameter, configuring the secondary parameters of each frame data;
Load-on module, for the Primary parameter and the secondary parameters to be loaded into the gateway.
10. device according to claim 9, it is characterised in that the Primary parameter includes following three parts:Frame head portion Point, valid data part, check information part.
11. device according to claim 9, it is characterised in that the secondary parameters include following two parts:Working mould Formula, valid data type.
12. a kind of gateway, it is characterised in that the gateway includes:Configure port and application software module;Wherein, the application Allocation window after allocation window before changing is provided with the operation interface of software module and is changed;
Allocation window is used for the parameter for configuring the data of gateway, and each frame data in the parameter before the conversion Secondary parameters;
Allocation window is used for the parameter for configuring the translated data of gateway, and each frame data in the parameter after the conversion Secondary parameters.
CN201711078973.7A 2017-11-06 2017-11-06 Gateway configuration method and device and gateway Expired - Fee Related CN107819621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711078973.7A CN107819621B (en) 2017-11-06 2017-11-06 Gateway configuration method and device and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711078973.7A CN107819621B (en) 2017-11-06 2017-11-06 Gateway configuration method and device and gateway

Publications (2)

Publication Number Publication Date
CN107819621A true CN107819621A (en) 2018-03-20
CN107819621B CN107819621B (en) 2020-04-21

Family

ID=61603807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711078973.7A Expired - Fee Related CN107819621B (en) 2017-11-06 2017-11-06 Gateway configuration method and device and gateway

Country Status (1)

Country Link
CN (1) CN107819621B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519288A (en) * 2019-09-02 2019-11-29 珠海格力电器股份有限公司 Communication protocol configuration method, device and the configuration system of data converter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691653A (en) * 2004-04-16 2005-11-02 美国博通公司 Method and system for providing registration, authentication and access via broadband access gateway
CN1992716A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method for realizing port triggering function in Linux protocol stack
CN103139059A (en) * 2013-02-19 2013-06-05 中国矿业大学 Coal mine electromechanical equipment data acquisition and analysis gateway
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1691653A (en) * 2004-04-16 2005-11-02 美国博通公司 Method and system for providing registration, authentication and access via broadband access gateway
CN1992716A (en) * 2005-12-31 2007-07-04 中兴通讯股份有限公司 Method for realizing port triggering function in Linux protocol stack
CN103139059A (en) * 2013-02-19 2013-06-05 中国矿业大学 Coal mine electromechanical equipment data acquisition and analysis gateway
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519288A (en) * 2019-09-02 2019-11-29 珠海格力电器股份有限公司 Communication protocol configuration method, device and the configuration system of data converter

Also Published As

Publication number Publication date
CN107819621B (en) 2020-04-21

Similar Documents

Publication Publication Date Title
WO2018040016A1 (en) Protocol converter and protocol conversion method
CN104965700B (en) The method and system of driving SPI equipment is realized under vxworks operating system
CN107430572A (en) Methods, devices and systems for packaging information in communication
CN104539502A (en) Method for adding modbus equipment in customized manner
CN102750249B (en) The method that host computer communicates with slave computer, Apparatus and system
CN102023869A (en) Control input value checking method and system
CN110347622A (en) A kind of multiplex roles agreement bi-directional conversion device and implementation method
CN110119282A (en) A kind of internet-of-things terminal and system based on general-purpose built-in type computer
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
CN108388372A (en) A kind of method, apparatus, equipment and the storage medium of adaptive touch data
CN107819621A (en) A kind of collocation method of gateway, device and gateway
CN102970201B (en) Mobility integrated method for industrial field device
CN101702119B (en) Device oriented programming technology and method
CN103905233A (en) Method and system for realizing plug and play of analog sensor, and access network device
CN108600150A (en) The data acquisition flow method of data acquisition platform and internet-of-things terminal cooperation
CN111107177B (en) Method for modifying HMI self IP and PLC IP through HMI
CN103546527B (en) A kind of extendible industrial configuration or simulation software communication method
CN102799528B (en) A kind of script debugging method for circuit board level test, device and system thereof
CN104836639B (en) A kind of data transmission method for transmitting many algorithms parameter
CN103856466A (en) Acquisition terminal device capable of configuring protocols automatically
CN105471726B (en) The method and apparatus of retransmitting paramater transmitting
CN207218729U (en) A kind of gateway controller under multi-internet integration
WO2023045300A1 (en) Novel portable program upgrading method
CN105139053B (en) Radio-frequency identification reader/writer interface protocol debugging apparatus and method
CN108200090A (en) A kind of agreement integration technology for electromechanical equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200421

CF01 Termination of patent right due to non-payment of annual fee