CN110380913A - A kind of multi-protocols device management method and system based on single port - Google Patents
A kind of multi-protocols device management method and system based on single port Download PDFInfo
- Publication number
- CN110380913A CN110380913A CN201910765462.5A CN201910765462A CN110380913A CN 110380913 A CN110380913 A CN 110380913A CN 201910765462 A CN201910765462 A CN 201910765462A CN 110380913 A CN110380913 A CN 110380913A
- Authority
- CN
- China
- Prior art keywords
- virtual unit
- port
- entity device
- data
- registration
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
This application discloses a kind of multi-protocols device management method and system based on single port, which comprises entity device sends registration information and connects Service-Port, becomes virtual unit by mapping after registration;Confirmation is connected to the virtual unit of server, carries out data parsing to the information that the entity device is sent;Data after parsing are encoded, the entity device is sent to and is communicated;In communication process, virtual unit sends detection information to Service-Port at a time interval, judges equipment use state according to the detection information, and selects to execute and nullify operation.The invention has the advantages that realizing simply, many virtual units can be managed under a port, it is easy to use.
Description
Technical field
The present invention relates to a kind of multi-protocols device management method and system based on single port.
Background technique
Center is clear, to ensure to build up 800,000,000 mu of high standard farmlands to the year two thousand twenty, at least to create 80,000,000 mu within 2019.
The various equipment such as various sensors, valve control equipment, pump house control equipment, mechanized equipment are needed in high standard farmland to come
Auxiliary completes the construction in high standard farmland.It, which is neutralized, irrigates closely bound up water resources management, soil moisture, temperature, works as ground vapour
Reflect as situation, liquid manure service condition etc. require the numerical value by sensor, number is recorded in the data collection of sensor
According in library, the intelligence of irrigation can be tentatively realized by the analysis of a large amount of data.Irrigating intelligentized basis is that big data is come
Source.The continuous collecting of agriculture big data source sensor data returns, and wherein the effect of platform of internet of things just highlights.Internet of Things
Net platform is connection field equipment, provides sensor acquisition channel, storing data, provides the Important Platform of equipment control ability.
The all kinds of equipment for needing to manage substantial amounts need to carry out coding and the decoding of data for every kind of equipment.
The processing method of the prior art is connected to distinct device on different port, and every kind of port binding one kind is specific to be set
Standby, the equipment being connected on the port carries out data parsing using data encoding, the decoding algorithm pre-defined.Device type
The planning for more needing that it is certain to have the use of port.When system is more and more perfect, integrated device type is more and more, and having can
The not enough situation of port resource can occur.The port load caused is big, and some port loads are small, it is possible to cause server
Performance bottleneck.And then the operation of whole system is influenced, generate adverse effect.
Summary of the invention
The purpose of the present invention is to overcome the above shortcomings and to provide a kind of multi-protocols device management method based on single port,
The technical issues of solving in port connection resource anxiety, influencing the operation of whole system.
To achieve the goals above, a kind of the technical solution adopted by the present invention are as follows: multi-protocols equipment pipe based on single port
Reason method characterized by comprising
Entity device sends registration information and connects Service-Port, becomes virtual unit by mapping after registration;
Confirmation is connected to the virtual unit of server, carries out data parsing to the information that the entity device is sent;
Data after parsing are encoded, the entity device is sent to and is communicated;
In communication process, virtual unit sends detection information to Service-Port at a time interval, according to described
Detection information judges equipment use state, and selects to execute and nullify operation.
The multi-protocols equipment management system based on single port that another object of the present invention is to provide a kind of, feature exist
In, comprising:
Registration module sends registration information for entity device and connects Service-Port, becomes void by mapping after registration
It proposes standby;
Decoder module carries out the information that the entity device is sent for confirming the virtual unit for being connected to server
Data parsing;
Coding module is sent to the entity device and is communicated for encoding to the data after parsing;
Cancellation module, in communication process, virtual unit to send to Service-Port detect at a time interval
Information judges equipment use state according to the detection information, and selects to execute and nullify operation.
The invention has the benefit that
It realizes simple, comprising: entity device sends registration information and connects Service-Port, becomes void by mapping after registration
It proposes standby;Confirmation is connected to the virtual unit of server, carries out data parsing to the information that the entity device is sent;To parsing
Data afterwards are encoded, and are sent to the entity device and are communicated;In communication process, virtual unit is between certain time
Every sending detection information to Service-Port, equipment use state is judged according to the detection information, and selects to execute and nullifies behaviour
Make.It can manage many virtual units under a port, one device type of the prior art needs to occupy a port, and one
Port is capable of handling many equipment, when port capabilities are by limited time, then open a port, does not form the waste in resource, existing
There is a kind of equipment of technology to occupy a port, the equipment that some equipment has more is few, causes the service efficiency of port unbalanced, even
Have and occupies the case where resource does not use.Equipment management is carried out by way of virtual unit, has unified interface can be used,
It is more convenient on equipment management, protocol in prior art is inconsistent, inconvenient to the management of distinct device.It can be by virtual unit
The management of row life cycle, prior art distinct device will have different management methods, it is more difficult to realize the management of life cycle.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow chart of the multi-protocols device management method of the invention based on single port;
Fig. 2 is the multi-protocols equipment management system schematic diagram of the invention based on single port;
Fig. 3 is registration module embodiment flow chart of the invention;
Fig. 4 is decoder module embodiment flow chart of the invention;
Fig. 5 is coding module embodiment flow chart of the invention;
Fig. 6 is cancellation module embodiment flow chart of the invention.
Specific embodiment
As used some vocabulary to censure specific components in the specification and claims.Those skilled in the art answer
It is understood that hardware manufacturer may call the same component with different nouns.This specification and claims are not with name
The difference of title is as the mode for distinguishing component, but with the difference of component functionally as the criterion of differentiation.Such as logical
The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit
In "." substantially " refer within the acceptable error range, those skilled in the art can within a certain error range solve described in
Technical problem basically reaches the technical effect.Specification subsequent descriptions are to implement the better embodiment of the application, so described
Description is being not intended to limit the scope of the present application for the purpose of the rule for illustrating the application.The protection scope of the application
As defined by the appended claims.
Please refer to Fig. 1, a kind of multi-protocols device management method based on single port of the invention, comprising: step S101, it is real
Body equipment sends registration information and connects Service-Port, becomes virtual unit by mapping after registration;Step S102, confirmation connection
To the virtual unit of server, data parsing is carried out to the information that the entity device is sent;Step S103, to the number after parsing
According to being encoded, it is sent to the entity device and is communicated;Step S104, in communication process, virtual unit is with a timing
Between be spaced to Service-Port send detection information, equipment use state is judged according to the detection information, and select to execute note
Pin operation.
In one embodiment, referring to figure 3., the entity device sends registration information and connects Service-Port, passes through
Mapping becomes virtual unit after registration, comprising: automatic to send a registration letter when entity device is connected on Service-Port
Breath, the facility registration agreement energy using the facility registration agreement in all drivings of this registration information poll, in some driving
When enough correct parsing registration informations, lock the device type, and association attributes are filled according to registration information, connection is saved in driving
In, driving is mapped as virtual unit storage into list of devices, the subsequent operation for virtual unit is just mapped to entity and sets
It is standby upper.
In one embodiment, referring to figure 4., described to confirm the virtual unit for being connected to server, the entity is set
The information that preparation is sent carries out data parsing, comprising: receives data by connection, is counted using decoding protocol built in virtual unit
According to parsing, data-pushing after parsing to frame.
In one embodiment, referring to figure 5., the data after described pair of parsing encode, and are sent to the entity and set
It is standby to be communicated, comprising: to carry out data encoding using coding protocol built in virtual unit, coded data is sent to by connection
Entity device.
In one embodiment, Fig. 6 is please referred to, described in communication process, virtual unit is at a time interval to clothes
Business device port sends detection information, judges equipment use state according to the detection information, and selects to execute and nullify operation, wraps
Include: entity device separated in time sends heartbeat packet to server-side, and the built-in timer of virtual unit carries out entity and sets
The detection of standby heartbeat packet, does not receive heartbeat packet at the appointed time, and virtual unit thinks that the entity device becomes down state,
Equipment will be called to nullify agreement and remove this device drives, and close the connection, and it is virtual to notify that frame apparatus list removes this
Equipment, releasing memory complete the cancellation of entity device.
As shown in Fig. 2, the present invention also provides a kind of multi-protocols equipment management system based on single port, comprising: registration mould
Block sends registration information for entity device and connects Service-Port, becomes virtual unit by mapping after registration;Decode mould
Block carries out data parsing to the information that the entity device is sent for confirming the virtual unit for being connected to server;Encode mould
Block is sent to the entity device and is communicated for encoding to the data after parsing;Cancellation module, for communicating
In the process, virtual unit sends detection information to Service-Port at a time interval, is set according to detection information judgement
Standby use state, and select to execute and nullify operation.
In one embodiment, the entity device sends registration information and connects Service-Port, by mapping after registration
As virtual unit, comprising: when entity device is connected on Service-Port, sends a registration information automatically, use this
Facility registration agreement in all drivings of registration information poll, when the facility registration agreement in some driving can be parsed correctly
When registration information, lock the device type, and association attributes are filled according to registration information, connection is saved in driving, driving
Virtual unit storage is mapped as into list of devices, the subsequent operation for virtual unit is just mapped on entity device.
In one embodiment, the letter for confirming the virtual unit for being connected to server, the entity device being sent
Breath carries out data parsing, comprising: receives data by connection, carries out data parsing, solution using decoding protocol built in virtual unit
Data-pushing after analysis is to frame.
In one embodiment, the data after described pair of parsing encode, and are sent to the entity device and are communicated,
It include: to carry out data encoding using coding protocol built in virtual unit, coded data is sent to entity device by connection.
In one embodiment, described in communication process, virtual unit is sent out to Service-Port at a time interval
Inspection measurement information judges equipment use state according to the detection information, and selects to execute and nullify operation, comprising: entity device
Separated in time sends heartbeat packet to server-side, and the built-in timer of virtual unit carries out the inspection of entity device heartbeat packet
It surveys, does not receive heartbeat packet at the appointed time, virtual unit thinks that the entity device becomes down state, will call equipment note
Pin agreement removes this device drives, and closes the connection, and frame apparatus list is notified to remove the virtual unit, in release
It deposits, completes the cancellation of entity device.
The invention has the benefit that
It realizes simple, comprising: entity device sends registration information and connects Service-Port, becomes void by mapping after registration
It proposes standby;Confirmation is connected to the virtual unit of server, carries out data parsing to the information that the entity device is sent;To parsing
Data afterwards are encoded, and are sent to the entity device and are communicated;In communication process, virtual unit is between certain time
Every sending detection information to Service-Port, equipment use state is judged according to the detection information, and selects to execute and nullifies behaviour
Make.It can manage many virtual units under a port, one device type of the prior art needs to occupy a port, and one
Port is capable of handling many equipment, when port capabilities are by limited time, then open a port, does not form the waste in resource, existing
There is a kind of equipment of technology to occupy a port, the equipment that some equipment has more is few, causes the service efficiency of port unbalanced, even
Have and occupies the case where resource does not use.Equipment management is carried out by way of virtual unit, has unified interface can be used,
It is more convenient on equipment management, protocol in prior art is inconsistent, inconvenient to the management of distinct device.It can be by virtual unit
The management of row life cycle, prior art distinct device will have different management methods, it is more difficult to realize the management of life cycle.
Above description shows and describes several preferred embodiments of the present application, but as previously described, it should be understood that the application
Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations,
Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through in application contemplated scope described herein
It is modified.And changes and modifications made by those skilled in the art do not depart from spirit and scope, then it all should be in this Shen
It please be in the protection scope of appended claims.
Claims (10)
1. a kind of multi-protocols device management method based on single port characterized by comprising
Entity device sends registration information and connects Service-Port, becomes virtual unit by mapping after registration;
Confirmation is connected to the virtual unit of server, carries out data parsing to the information that the entity device is sent;
Data after parsing are encoded, the entity device is sent to and is communicated;
In communication process, virtual unit sends detection information to Service-Port at a time interval, according to the detection
Information judges equipment use state, and selects to execute and nullify operation.
2. the multi-protocols device management method according to claim 1 based on single port, which is characterized in that the entity is set
Preparation send registration information to connect Service-Port, becomes virtual unit by mapping after registration, comprising:
When entity device is connected on Service-Port, a registration information is sent automatically, uses this registration information poll
Facility registration agreement in all drivings, when the facility registration agreement in some driving correctly can parse registration information, lock
The fixed device type, and association attributes are filled according to registration information, connection is saved in driving, driving is mapped as virtual unit
It stores in list of devices, the subsequent operation for virtual unit is just mapped on entity device.
3. the multi-protocols device management method according to claim 2 based on single port, which is characterized in that the confirmation connects
It is connected to the virtual unit of server, data parsing is carried out to the information that the entity device is sent, comprising:
Data are received by connection, carry out data parsing using decoding protocol built in virtual unit, the data-pushing after parsing arrives
Frame.
4. the multi-protocols device management method according to claim 3 based on single port, which is characterized in that described pair of parsing
Data afterwards are encoded, and are sent to the entity device and are communicated, comprising: are carried out using coding protocol built in virtual unit
Data encoding, coded data are sent to entity device by connection.
5. the multi-protocols device management method according to claim 4 based on single port, which is characterized in that described to communicate
In the process, virtual unit sends detection information to Service-Port at a time interval, is set according to detection information judgement
Standby use state, and select to execute and nullify operation, comprising:
Entity device separated in time sends heartbeat packet to server-side, and the built-in timer of virtual unit carries out entity and sets
The detection of standby heartbeat packet, does not receive heartbeat packet at the appointed time, and virtual unit thinks that the entity device becomes down state,
Equipment will be called to nullify agreement and remove this device drives, and close the connection, and it is virtual to notify that frame apparatus list removes this
Equipment, releasing memory complete the cancellation of entity device.
6. a kind of multi-protocols equipment management system based on single port characterized by comprising
Registration module sends registration information for entity device and connects Service-Port, is become by mapping after registration and is virtually set
It is standby;
Decoder module carries out data to the information that the entity device is sent for confirming the virtual unit for being connected to server
Parsing;
Coding module is sent to the entity device and is communicated for encoding to the data after parsing;
Cancellation module is used in communication process, and virtual unit sends detection information to Service-Port at a time interval,
Equipment use state is judged according to the detection information, and is selected to execute and nullified operation.
7. the multi-protocols equipment management system according to claim 6 based on single port, which is characterized in that the entity is set
Preparation send registration information to connect Service-Port, becomes virtual unit by mapping after registration, comprising:
When entity device is connected on Service-Port, a registration information is sent automatically, uses this registration information poll
Facility registration agreement in all drivings, when the facility registration agreement in some driving correctly can parse registration information, lock
The fixed device type, and association attributes are filled according to registration information, connection is saved in driving, driving is mapped as virtual unit
It stores in list of devices, the subsequent operation for virtual unit is just mapped on entity device.
8. the multi-protocols equipment management system according to claim 7 based on single port, which is characterized in that the confirmation connects
It is connected to the virtual unit of server, data parsing is carried out to the information that the entity device is sent, comprising:
Data are received by connection, carry out data parsing using decoding protocol built in virtual unit, the data-pushing after parsing arrives
Frame.
9. the multi-protocols equipment management system according to claim 8 based on single port, which is characterized in that described pair of parsing
Data afterwards are encoded, and are sent to the entity device and are communicated, comprising: are carried out using coding protocol built in virtual unit
Data encoding, coded data are sent to entity device by connection.
10. the multi-protocols equipment management system according to claim 9 based on single port, which is characterized in that described logical
During letter, virtual unit sends detection information to Service-Port at a time interval, is judged according to the detection information
Equipment use state, and select to execute and nullify operation, comprising:
Entity device separated in time sends heartbeat packet to server-side, and the built-in timer of virtual unit carries out entity and sets
The detection of standby heartbeat packet, does not receive heartbeat packet at the appointed time, and virtual unit thinks that the entity device becomes down state,
Equipment will be called to nullify agreement and remove this device drives, and close the connection, and it is virtual to notify that frame apparatus list removes this
Equipment, releasing memory complete the cancellation of entity device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910765462.5A CN110380913A (en) | 2019-08-19 | 2019-08-19 | A kind of multi-protocols device management method and system based on single port |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910765462.5A CN110380913A (en) | 2019-08-19 | 2019-08-19 | A kind of multi-protocols device management method and system based on single port |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110380913A true CN110380913A (en) | 2019-10-25 |
Family
ID=68259963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910765462.5A Pending CN110380913A (en) | 2019-08-19 | 2019-08-19 | A kind of multi-protocols device management method and system based on single port |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110380913A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923272A (en) * | 2021-09-16 | 2022-01-11 | 珠海格力电器股份有限公司 | Data analysis method and device and server equipment |
CN114679371A (en) * | 2022-02-24 | 2022-06-28 | 中资互联网科技有限公司 | Information security communication all-in-one |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104901990A (en) * | 2014-07-18 | 2015-09-09 | 华东理工大学 | Sensor flexible access system based on internet of things and flexible access method thereof |
CN105897652A (en) * | 2014-10-21 | 2016-08-24 | 北京京航计算通讯研究所 | Standard protocol based heterogeneous terminal dynamic access method |
CN108093070A (en) * | 2017-12-27 | 2018-05-29 | 复旦大学 | A kind of Internet of Things data service middleware system |
CN108683659A (en) * | 2018-05-11 | 2018-10-19 | 新华三技术有限公司成都分公司 | Multi-protocol data communication means and device |
CN110166291A (en) * | 2019-05-17 | 2019-08-23 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method based on single port |
-
2019
- 2019-08-19 CN CN201910765462.5A patent/CN110380913A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104901990A (en) * | 2014-07-18 | 2015-09-09 | 华东理工大学 | Sensor flexible access system based on internet of things and flexible access method thereof |
CN105897652A (en) * | 2014-10-21 | 2016-08-24 | 北京京航计算通讯研究所 | Standard protocol based heterogeneous terminal dynamic access method |
CN108093070A (en) * | 2017-12-27 | 2018-05-29 | 复旦大学 | A kind of Internet of Things data service middleware system |
CN108683659A (en) * | 2018-05-11 | 2018-10-19 | 新华三技术有限公司成都分公司 | Multi-protocol data communication means and device |
CN110166291A (en) * | 2019-05-17 | 2019-08-23 | 贵州航天智慧农业有限公司 | A kind of multi-protocols device management method based on single port |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923272A (en) * | 2021-09-16 | 2022-01-11 | 珠海格力电器股份有限公司 | Data analysis method and device and server equipment |
CN114679371A (en) * | 2022-02-24 | 2022-06-28 | 中资互联网科技有限公司 | Information security communication all-in-one |
CN114679371B (en) * | 2022-02-24 | 2023-08-15 | 中资互联网科技有限公司 | Information security communication all-in-one |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107087033A (en) | Information push method, device, storage medium and computer equipment | |
CN110380913A (en) | A kind of multi-protocols device management method and system based on single port | |
CN105303112B (en) | The detection method and device of component call loophole | |
CN109768970A (en) | It is a kind of based on configurable puppy parc generation method | |
CN109445949A (en) | A kind of data collection system and collecting method | |
CN105119899B (en) | Non-invasive client runtime data acquisition method and system | |
CN108073402A (en) | Kafka clusters automatic deployment method and device based on linux system | |
CN102594618A (en) | Method and device for realizing storage device test of storage area network (SAN) | |
CN110474812A (en) | Sample rate self-adapting regulation method and device | |
CN103812937A (en) | Access and adaption system of equipment for Internet of Things | |
CN107483297A (en) | To the actively monitoring system and method for institute's bearer service quality on embedded device | |
CN109862123A (en) | Data processing method, Internet of Things module and equipment | |
CN114095535B (en) | Method for automatically mapping time sequence variable of physical equipment into digital model | |
CN102291274A (en) | System and method for realizing automatic adaptation of network testing instrument | |
CN104298671B (en) | data statistical analysis method and device | |
CN106407061A (en) | Northbound interface testing device and northbound interface testing method | |
CN108111929A (en) | A kind of method based on Python automatic tests, system and test terminal | |
CN110166291A (en) | A kind of multi-protocols device management method based on single port | |
CN109933515A (en) | A kind of optimization method and automatic optimizing equipment of regression test case collection | |
CN107316494A (en) | A kind of abnormal treating method and apparatus in parking lot | |
CN107592359A (en) | A kind of service end response method, device and medium based on RPC agreements | |
CN109976960A (en) | A kind of bus test data method for implanting and device | |
CN109739760A (en) | A kind of code commissioning test method and device, storage medium | |
CN103116521B (en) | A kind of terminal information collection method and system | |
CN110365782A (en) | A kind of Internet of Things means of communication, equipment, hardware terminal and server based on Netty |
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 |