CN102523235B - Method for self-adaptive support of more pieces of monitoring equipment - Google Patents
Method for self-adaptive support of more pieces of monitoring equipment Download PDFInfo
- Publication number
- CN102523235B CN102523235B CN201110456209.5A CN201110456209A CN102523235B CN 102523235 B CN102523235 B CN 102523235B CN 201110456209 A CN201110456209 A CN 201110456209A CN 102523235 B CN102523235 B CN 102523235B
- Authority
- CN
- China
- Prior art keywords
- sdk
- equipment
- client
- information
- agreement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention is applicable to the field of digital communication and provides a method for self-adaptive support to more pieces of monitoring equipment. The method comprises the following steps: protocols of various different pieces of monitoring video equipment are configured into an XML (Extensible Markup Language) format, and the various different pieces of monitoring video equipment support an XML file transmission protocol. According to the method, since the equipment protocols are extracted into an XML file format, firstly, the independence of the protocols among all the pieces of equipment is ensured and no mutual influence can be completely achieved; secondly, the generality of an SDK (Software Development Kit) design is ensured, and automatic adaptation to various different pieces of equipment can be achieved; and finally, the independence between the SDK and a client side is also ensured.
Description
Technical field
the invention belongs to digital communicating field, relate in particular to a kind of self adaptation and support the method for many watch-dogs.
Background technology
field of video monitoring development is at present very fast, and device category is various, has all increased certain complexity for monitor supervision platform and client.In the time of monitoring of tools platform (SDK) connected reference equipment, prior art is directly to carry out communication by predetermined agreement, the drawback that this method exists is exactly for example, in the time that device protocol changes (increase, deletion, modification etc.), corresponding SDK just needs to adjust and revise, and corresponding variation also can occur the interface externally providing; Same; client need to be passed through SDK connected reference equipment; thereby when changing, device protocol causes interface change; also need client adjustment; very dumb, and in the process of data communication between equipment and SDK, data are not encrypted in prior art, be easy to grab complete packet by packet catcher; data are not played a very good protection, easily cause the leakage of data.
Summary of the invention
the object of the invention is to: a kind of method that provides self adaptation to support many watch-dogs, being intended to solve existing SDK can not self adaptation device protocol, causes the problem of client access underaction to equipment by SDK.
the object of the present invention is achieved like this:
self adaptation is supported a method for many watch-dogs, and the protocol configuration of various monitor video equipment is become to XML form, and various video equipment is all supported XML file transfer protocol (FTP); Client to monitoring of tools platform SDK, at least comprises the information of video equipment and user's operation requirements information that user specifies according to user's operation information sending function request instruction in this function request instruction; In the time that SDK receives that the function request instruction of this client or this equipment are requested first first, SDK is by the video equipment transmitting apparatus agreement request to appointment according to the function request instruction of this client, request is downloaded XML agreement from equipment, the equipment of receiving request will send echo message to SDK, and the XML agreement of self is sent to SDK; The control command agreement that SDK obtains facility information and supports from the XML agreement of downloading, the function request sending for client, SDK judges according to agreement whether requested equipment supports this feature operation, if supported, SDK is converted to according to the function request of client the control command that meets XML agreement and sends to corresponding equipment, and equipment is sent to client for the response of control command.
in the time that SDK receives that the function request instruction of this client or this equipment are requested first first, SDK will first detect the login state of this client, if unregistered success before this client, the information of the direct sending function request of SDK failure is to client, if the registered success of this client, SDK is to the video equipment transmitting apparatus agreement request of specifying.
the equipment of receiving request comprises state information and file size to the echo message of SDK transmission, and wherein, whether successfully state information is the request echo message that represents SDK, and file size is the size of the XML document of agreement of the equipment transmission of the request of receiving; Whether the size of the XML agreement of this equipment that SDK relatively receives is consistent with the document size information in the echo message of this equipment of receiving, if unanimously, whether successfully SDK, to this device transmits and downloads echo message, includes in this information and represents SDK download protocol file information.
in the time that the agreement of equipment change occurs or increases new equipment, the operating personnel of SDK are uploaded to the New Deal of this equipment in this equipment and are preserved by SDK by SDK; While uploading, SDK first sends upload request to this equipment, after the equipment request of receiving, send corresponding echo message to SDK, in this echo message, include and represent whether successfully state information of SDK upload request, if asked successfully, SDK will upload information and new document of agreement is sent to this equipment, described in upload and in information, include the information of the XML document of agreement size that SDK uploads and represent that whether successfully SDK uploads information.
the encryption and decryption module that is equipped with data in SDK and equipment, is encrypted and deciphers the data of sending and receiving.
outstanding advantages of the present invention is: the present invention can support plurality of devices, and the communications protocol of equipment room is independent of each other (separately safeguard), monitor supervision platform, client also can be accessed adaptively and be connected various equipment, access and the flexibility being connected are provided, in the process of network communication, data are encrypted, guaranteed the fail safe of communication data.
Accompanying drawing explanation
fig. 1 is the sequential chart that self adaptation that the embodiment of the present invention provides is supported the method for many watch-dogs.
Embodiment
in order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
the self adaptation that the embodiment of the present invention provides supports the method for many watch-dogs that the protocol configuration of various monitor video equipment is become to XML form, and various video equipment is all supported XML file transfer protocol (FTP) (comprising upload and download).
the self adaptation that Fig. 1 shows the embodiment of the present invention to be provided is supported the sequential of the method for many watch-dogs, and wherein, third party's client and SDK are all at local side, and client and SDK communicate according to predefined SDK communication protocol.
first client will complete registration on equipment.Client sends registration request to SDK, forwards registration request by SDK to video equipment.Watch-dog is processed this registration request, and feedback processing result (succeeding in registration or registration failure) is to SDK, and SDK sends to this result client and stores the login state of this client.In the time that client need to be by client operation monitor video equipment, client to SDK, at least comprises the information of video equipment and user's operation requirements information that user specifies according to user's operation information sending function request instruction in this function request instruction.In the time that SDK receives that the function request instruction of this client or this equipment are requested first first, SDK will first detect the login state of this client, if unregistered success before this client, the information of the direct sending function request of SDK failure is to client, if the registered success of this client, SDK is by the video equipment transmitting apparatus agreement request to appointment according to the function request instruction of this client, request is downloaded XML agreement from equipment, in this request msg, can comprise origin identification, signaling length, type of message, message sequence number, the information such as message numbering, can also comprise object device network numbering, the information such as source device network numbering, the equipment of receiving request will send echo message to SDK, and the XML agreement of self is sent to SDK, the response data that equipment sends comprises origin identification, signaling length, type of message, message sequence number, message numbering, and state information and file size, wherein, state information is for the response of the request of SDK (success or failure), file size is the size of the XML document of agreement of this equipment transmission, whether the size of the XML agreement of this equipment that SDK relatively receives is consistent with the document size information in the echo message of this equipment of receiving, if unanimously, SDK is to this device transmits and downloads echo message, in this information, include whether successfully information of SDK download protocol file.SDK can obtain device name from the XML agreement of downloading, the information such as device type ID and device description and the control command agreement of supporting, the function request sending for client, SDK judges according to agreement whether requested equipment supports this feature operation, if supported, SDK is converted to according to the function request of client the control command that meets XML agreement and sends to corresponding equipment, and equipment is sent to client for the response of control command, thereby complete the operation control of client for equipment, after this SDK with equipment reciprocal process in all conduct interviews and operate by analyzing XML agreement.
in the time that the agreement of the equipment being connected with SDK change occurs or increases new equipment, the operating personnel of SDK can be uploaded to the New Deal of this equipment in this equipment and be preserved by SDK by SDK.While uploading, SDK first sends upload request to this equipment, after the equipment request of receiving, send corresponding echo message to SDK, in this echo message, include whether successfully state information of SDK upload request, if asked successfully, SDK will upload information and new document of agreement is sent to this equipment, described in upload and in information, include the information of the XML document of agreement size that SDK uploads and SDK and whether successfully upload information.And for traditional communication protocol, every increase all needs to revise the communication cryptology of client to a kind of support of equipment, increase maintenance cost, and be also unfavorable for large-scale network application.
in embodiments of the present invention, in order to guarantee the safety of communication data of SDK and equipment room, in SDK and equipment, can also be provided with the encryption and decryption module of data, the data of sending and receiving are encrypted and are deciphered, realize the secure communication of SDK and equipment room.Even if use like this packet catcher also cannot get initial data, improve the fail safe in data transmission procedure, this function can be selected to open or shield, and determines according to actual conditions.In the embodiment of the present invention, use DES enciphering and deciphering algorithm, can certainly use other enciphering and deciphering algorithms.
the embodiment of the present invention is by being extracted into device protocol an XML file format, first guaranteed the independence of each equipment room agreement, can accomplish to be independent of each other completely, next has guaranteed the versatility of SDK design, can automatically adapt to various distinct devices, finally also guarantee the independence between SDK and client.The self adaptation providing by the embodiment of the present invention supports many watch-dogs method can support plurality of devices, and the communications protocol of equipment room is independent of each other (separately safeguard), monitor supervision platform, client also can be accessed adaptively and be connected various equipment, access and the flexibility being connected are provided, in the process of network communication, data are encrypted, guaranteed the fail safe of communication data.
the foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (5)
1. self adaptation is supported a method for many watch-dogs, it is characterized in that, the protocol configuration of various monitor video equipment is become to XML form, and various video equipment is all supported XML file transfer protocol (FTP); Client to monitoring of tools platform SDK, at least comprises the information of video equipment and user's operation requirements information that user specifies according to user's operation information sending function request instruction in this function request instruction; In the time that SDK receives that the function request instruction of this client or this equipment are requested first first, SDK is by the video equipment transmitting apparatus agreement request to appointment according to the function request instruction of this client, request is downloaded XML agreement from equipment, the equipment of receiving request will send echo message to SDK, and the XML agreement of self is sent to SDK; The control command agreement that SDK obtains facility information and supports from the XML agreement of downloading, the function request sending for client, SDK judges according to agreement whether requested equipment supports this feature operation, if supported, SDK is converted to by the function request of client the control command that meets XML agreement and sends to corresponding equipment, and equipment is sent to client for the response of control command.
2. self adaptation as claimed in claim 1 is supported the method for many watch-dogs, it is characterized in that, in the time that SDK receives that the function request instruction of this client or this equipment are requested first first, SDK will first detect the login state of this client, if unregistered success before this client, the information of the direct sending function request of SDK failure is to client, if the registered success of this client, SDK is to the video equipment transmitting apparatus agreement request of specifying.
3. self adaptation as claimed in claim 1 is supported the method for many watch-dogs, it is characterized in that, the equipment of receiving request comprises state information and file size to the echo message of SDK transmission, wherein, whether successfully state information is the request echo message that represents SDK, and file size is the size of the XML document of agreement of the equipment transmission of the request of receiving; Whether the size of the XML agreement of this equipment that SDK relatively receives is consistent with the document size information in the echo message of this equipment of receiving, if unanimously, whether successfully SDK, to this device transmits and downloads echo message, includes in this information and represents SDK download protocol file information.
4. self adaptation as claimed in claim 1 is supported the method for many watch-dogs, it is characterized in that, in the time that the agreement of equipment change occurs or increases new equipment, the operating personnel of SDK are uploaded to the New Deal of this equipment in this equipment and are preserved by SDK by SDK; While uploading, SDK first sends upload request to this equipment, after the equipment request of receiving, send corresponding echo message to SDK, in this echo message, include and represent whether successfully state information of SDK upload request, if asked successfully, SDK will upload information and new document of agreement is sent to this equipment, described in upload and in information, include the information of the XML document of agreement size that SDK uploads and represent that whether successfully SDK uploads information.
5. self adaptation as claimed in claim 1 is supported the method for many watch-dogs, it is characterized in that, is equipped with the encryption and decryption module of data in SDK and equipment, and the data of sending and receiving are encrypted and are deciphered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110456209.5A CN102523235B (en) | 2011-12-31 | 2011-12-31 | Method for self-adaptive support of more pieces of monitoring equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110456209.5A CN102523235B (en) | 2011-12-31 | 2011-12-31 | Method for self-adaptive support of more pieces of monitoring equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102523235A CN102523235A (en) | 2012-06-27 |
CN102523235B true CN102523235B (en) | 2014-05-14 |
Family
ID=46294027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110456209.5A Active CN102523235B (en) | 2011-12-31 | 2011-12-31 | Method for self-adaptive support of more pieces of monitoring equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102523235B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3164770A4 (en) * | 2014-07-03 | 2017-07-12 | Able World International Limited | Adaptive control and management for electronic device |
CN108055507A (en) * | 2017-12-19 | 2018-05-18 | 四川九洲电器集团有限责任公司 | A kind of data group bag method for video analytic system communication |
CN108696523B (en) * | 2018-05-14 | 2021-11-19 | 平安科技(深圳)有限公司 | Response method and device for call service |
CN112714161A (en) * | 2020-12-22 | 2021-04-27 | 北京金山云网络技术有限公司 | Video access method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127893A (en) * | 2007-09-05 | 2008-02-20 | 中国电信股份有限公司 | Integrated control method and system for network camera SIP extension |
CN101365108A (en) * | 2007-08-07 | 2009-02-11 | 中国电信股份有限公司 | Method and system architecture for realizing service interconnection between multiple video monitoring platforms |
CN101470937A (en) * | 2007-12-25 | 2009-07-01 | 北京国通创安信息技术有限公司 | Access machine of urban monitoring alarm networking system and its monitoring method |
-
2011
- 2011-12-31 CN CN201110456209.5A patent/CN102523235B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101365108A (en) * | 2007-08-07 | 2009-02-11 | 中国电信股份有限公司 | Method and system architecture for realizing service interconnection between multiple video monitoring platforms |
CN101127893A (en) * | 2007-09-05 | 2008-02-20 | 中国电信股份有限公司 | Integrated control method and system for network camera SIP extension |
CN101470937A (en) * | 2007-12-25 | 2009-07-01 | 北京国通创安信息技术有限公司 | Access machine of urban monitoring alarm networking system and its monitoring method |
Also Published As
Publication number | Publication date |
---|---|
CN102523235A (en) | 2012-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600376B (en) | Data transmission method and device based on LoRa, LoRa gateway, system and storage medium | |
WO2012118639A4 (en) | Remote monitoring systems for monitoring medical devices via wireless communication networks | |
EP3182324B1 (en) | System and method for secure communications between a computer test tool and a cloud-based server | |
CN107820325B (en) | Wireless communication method and system, computer storage medium and device | |
US20180124121A1 (en) | One-way coupling device, request apparatus and method for feedback-free transmission of data | |
CN112291200B (en) | Method and system for trusted access of edge computing APP to Internet of things edge agent | |
MX2023002048A (en) | Privacy of relay selection in cellular sliced networks. | |
CN102523235B (en) | Method for self-adaptive support of more pieces of monitoring equipment | |
EP3484199A1 (en) | Virtual card downloading method and terminal | |
CN112383881B (en) | Information reporting method, device, equipment and storage medium | |
JP6208381B2 (en) | Device management method, apparatus, system, program, and recording medium | |
WO2018098633A1 (en) | Data transmission method, data transmission apparatus, electronic device and computer program product | |
CN112071320A (en) | Intelligent equipment voice control system and method | |
US20170359319A1 (en) | Adding a device to a protected network without data entry on the device | |
CN106255155A (en) | A kind of data transmission method based on mobile Internet and system | |
WO2015026143A1 (en) | Method and device for distributing traffic by using plurality of network interfaces in wireless communication system | |
CN106909826B (en) | Password substitution device and system | |
CN110740300B (en) | Multimedia data transmission method, system, client and video monitoring equipment | |
CN102045343B (en) | DC (Digital Certificate) based communication encrypting safety method, server and system | |
CN105159733A (en) | Air conditioner and remote upgrading data transmission method, device and system thereof | |
CN112995305B (en) | Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof | |
KR20160112845A (en) | Method of data enterchange between standrd/non-standard application protocol and Middleware with dynamic control from user-defined condition | |
GB2586425A (en) | System and method for cybersecurity framework among network devices | |
CN113055253B (en) | Method, device, equipment and storage medium for rapidly opening home gateway | |
CN106535180B (en) | Method and equipment for safe internet access of mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210513 Address after: No. 6, Jiuhua Road, khuchuang Park, Mianyang, Sichuan Patentee after: Sichuan Jiuzhou Investment Holding Group Co.,Ltd. Address before: 621000 No. 16 Yuejin Road, Fucheng District, Sichuan, Mianyang Patentee before: SICHUAN JIUZHOU ELECTRIC GROUP Co.,Ltd. |
|
TR01 | Transfer of patent right |