[go: up one dir, main page]

CN103428210A - Implementation method of message control protocol independent of webcam hardware - Google Patents

Implementation method of message control protocol independent of webcam hardware Download PDF

Info

Publication number
CN103428210A
CN103428210A CN2013103360447A CN201310336044A CN103428210A CN 103428210 A CN103428210 A CN 103428210A CN 2013103360447 A CN2013103360447 A CN 2013103360447A CN 201310336044 A CN201310336044 A CN 201310336044A CN 103428210 A CN103428210 A CN 103428210A
Authority
CN
China
Prior art keywords
layer
control protocol
module
message control
manager
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
Application number
CN2013103360447A
Other languages
Chinese (zh)
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.)
Jiangsu Wanlian New Trillion Mdt Infotech Ltd (foreign Joint Ventures)
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2013103360447A priority Critical patent/CN103428210A/en
Publication of CN103428210A publication Critical patent/CN103428210A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

An implementation method of a message control protocol independent of webcam hardware mainly includes a message control protocol layer, a middle layer application set and abstracting of a bottom HAL interface. The method is characterized in that in the message control protocol layer, a camera receives a command sent by a client when the client sends out the control command, a signal proxy layer analyzes the command, judges the type of an applied network protocol and forwards a message to a corresponding network protocol stack for processing; in the middle layer application set, data and information exchange is performed on processes by a standard D-BUS IPC mechanism of a Linux operating system; in abstracting of the bottom HAL interface, A/V is abstracted by the HAL layer, and not modification of a whole firmware architecture but implementation of a group of HAL layer interfaces is required for the transplanting of firmware. The method has the advantages that message control protocol and hardware platform independence can be achieved simultaneously, and webcam firmware can be divided into single-function complete independent highly-customizable application sets through the standard IPC mechanism.

Description

A kind of and web camera hardware independent joins the message control protocol implementation method of property
Technical field
The present invention relates to a kind of firmware(firmware of message control protocol of and web camera hardware independent connection property) implementation method.
Background technology
The agreement based on interconnected between the IP(network existed at present) network shooting crane monitoring system framework is all by embedded HTTPserver+CGI(CGI(Common gateway interface)) mode call the local service that web camera provides.Adopt the direct binding of the web camera of this kind of framework due to CGI and local service, shortcoming is as follows:
1. framework and message control protocol bind together, and do not have extensibility.Inter-process communication message that the IP-based network shooting crane monitoring system framework existed at present adopts is the criteria of right and wrong all, relevant with control protocol.For example use the framework of HTTPD+CGI may use the socket(socket) communicate, and adopt the framework of other message control protocols may use shared drive mechanism, thereby system is difficult to support other message control protocol simultaneously again;
2. program does not possess customizability and extensibility.In the IP-based network shooting crane monitoring system framework existed at present, because all functions all have very strong relevance, be difficult to be divided into function singleness, complete independently collection of programs, the complexity that causes program increases along with the increase of function is geometric progression;
3. program is difficult to Rapid transplant between different platform.In the IP-based network shooting crane monitoring system framework existed at present, due to the binding between program and hardware compression device, system transplantation causes the change of system architecture.
Summary of the invention
For achieving the above object, the present invention adopts following technical scheme:
A kind of and web camera hardware independent joins the firmware implementation method of the message control protocol of property.Mainly comprise message control protocol layer, intermediate layer collection of programs and bottom HAL(hardware abstraction layer) interface abstract, it is characterized in that, described message control protocol layer, when the Client(client) while initiating to control request, the video camera end is received the order that Client initiates, Signal Proxy(signal resolution agreement) layer meeting resolve command, the TCP/IP(procotol that judgement is used) type, then message is forwarded to respective protocol stack (as HTTP, UDP etc.) and goes to process; Described intermediate layer collection of programs, between process by linux(Linux operating system) the D-BUS IPC(interprocess communication of standard) mechanism carries out the exchange of data and information; Described bottom HAL interface abstract, the HAL layer has been realized abstract to A/V, to the firmware(firmware) while being transplanted, only need realize the interface of one group of HAL layer, do not need whole firmware framework is changed.
Beneficial effect of the present invention is, accomplishes message control protocol and platform-neutral simultaneously, and web camera firmware can be divided into by the IPC mechanism of standard function singleness, complete independent, highly customizable collection of programs.
The accompanying drawing explanation
Fig. 1 is the schematic diagram of network of relation video camera firmware framework of the present invention.
Embodiment
As shown in Figure 1, video camera firmware mainly is comprised of three parts:
(1) message control protocol layer.Signal Proxy is arranged in the present invention, Httpd+CGI Daemon, Useragent(user agent), the service of Upnpserver(UPnP) module.Signal Proxy is a software function module, is used for resolve command, then message is forwarded to suitable protocol stack and goes to process.Httpd+CGI Daemon is an internal communication software module, realizes the additional function of product.Module is for calling between internal applications.Useragent is the administration module of built-in function.After module receives external command, start the corresponding function module, realize the various preset functions of product.Upnpserver is the Intranet link block.To in the same network segment of Intranet, broadcast one group of customizing messages after startup.After corresponding equipment or user listen to this information, will start interconnection network, realize exchanges data.
When Client initiates to control request, the video camera end is received the order that Client initiates, Signal Proxy layer meeting resolve command, and the protocol type that judgement is used, then be forwarded to message suitable protocol stack and go to process.Like this, firmware just can, according to support different message control protocols simultaneously, realize the independence of system architecture to the message control protocol.Certainly, the command set that every kind of message control protocol is supported might not be identical.For example, system supports XMPP(can expand communication and presentation protocol) agreement may account for 90% of command history, the UPnP(UPnP) and the HTTP(HTTP) account for remaining 10%.
(2) function singleness, complete independently intermediate layer collection of programs.Disk Manager (hard disk management person) is arranged in the present invention, Network Manager(network manager), A/V encoder(audio/video coding), Stream Manager(video flowing keeper), Recording Manager(management of video person) and module.Disk Manager(hard disk management person) be the common functional software module of web camera, be used for the hardware storage device such as the hard disk of managing internal and flash card.Network Manager(network manager) being the functional software module of web camera necessity, is mainly connection and the management of being responsible for network.A/V encoder(audio/video coding) be the basic function software module of web camera necessity, be used for carrying out functional management and the realizations such as the coding of audio frequency and video and control.Stream Manager(video flowing keeper) be the common functional software module of web camera, be used for carrying out the management such as buffering after Video coding and transmission.Recording Manager(management of video person) be the common functional software module of web camera, be used for hard disk and the flash card of reading and writing internal.The data that write can be managed and delete.
The program of function singleness is moved in system as process independently, and each simple function process realizes one group of interface that can be used by outside and method, and the D-BUS IPC mechanism by the linux standard between process is carried out the exchange of data and information.Each process extremely can't affect the operation of other functional modules, system stable operation and maintainability can greatly be provided.
(3) bottom HAL(hardware abstraction layer) interface is abstract.Different cameras hardware supplier can provide different audio/video(audio frequency and video) to realize, the HAL layer has been realized to a certain degree abstract to audio/video.When firmware is transplanted, as long as particular hardware platform realizes the interface of one group of HAL layer, do not need whole firmware framework is changed.The Database(database) can be that a data library module can be also a document, be mainly used to store the setting of user to this web camera, resolution for example, code stream, the parameters such as Video Encoding Mode.Hardware(hardware) refer to the hardware components of this web camera, comprise master wafer, internal memory, flash memory, network wafer etc.
Therefore, the present invention can accomplish message control protocol and hardware platform independence simultaneously, and web camera firmware can be divided into by the IPC mechanism of standard function singleness, complete independent, highly customizable collection of programs.
Although the present invention illustrates with regard to preferred implementation and describes, only it will be understood by those of skill in the art that otherwise exceed claim limited range of the present invention, can carry out variations and modifications to the present invention.

Claims (3)

1. the message control protocol implementation method of one kind and web camera hardware independent connection property, mainly comprise the abstract of message control protocol layer, intermediate layer collection of programs and bottom HAL interface, it is characterized in that, described message control protocol layer, when Client holds initiation to control request, the video camera end is received the order that Client initiates, Signal Proxy layer meeting resolve command, the network protocol type that judgement is used, then be forwarded to message the corresponding network protocol stack and go to process; Described intermediate layer collection of programs, the D-BUS IPC mechanism by the (SuSE) Linux OS standard between process is carried out the exchange of data and information; Described bottom HAL interface abstract, the HAL layer has been realized abstract to A/V, to the firmware(firmware) while being transplanted, only need realize the interface of one group of HAL layer, do not need whole firmware framework is changed.
2. the method for claim 1, is characterized in that, described message control protocol layer comprises Signal Proxy, Httpd+CGI Daemon, Useragent(user agent), the service of Upnpserver(UPnP) module; Signal Proxy is a software function module, is used for resolve command, then message is forwarded to suitable protocol stack and goes to process; Httpd+CGI Daemon is an internal communication software module, realizes the additional function of product, and module is for calling between internal applications; Useragent is the administration module of built-in function, after module receives external command, starts the corresponding function module, realizes the various preset functions of product; Upnpserver is the Intranet link block, after startup, will in the same network segment of Intranet, broadcast one group of customizing messages, after corresponding equipment or user listen to this information, will start interconnection network, realizes exchanges data.
3. the method for claim 1, it is characterized in that, described intermediate layer collection of programs comprises Disk Manager (hard disk management person), Network Manager(network manager), A/V encoder(audio/video coding), Stream Manager(video flowing keeper), Recording Manager(management of video person) module; Disk Manager(hard disk management person) be the common functional software module of web camera, be used for the hardware storage device such as the hard disk of managing internal and flash card; Network Manager(network manager) being the functional software module of web camera necessity, is mainly connection and the management of being responsible for network; A/V encoder(audio/video coding) be the basic function software module of web camera necessity, be used for carrying out functional management and the realizations such as the coding of audio frequency and video and control; Stream Manager(video flowing keeper) be the common functional software module of web camera, be used for carrying out the management such as buffering after Video coding and transmission; Recording Manager(management of video person) be the common functional software module of web camera, be used for hard disk and the flash card of reading and writing internal, the data that write can be managed and delete.
CN2013103360447A 2013-08-01 2013-08-01 Implementation method of message control protocol independent of webcam hardware Pending CN103428210A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103360447A CN103428210A (en) 2013-08-01 2013-08-01 Implementation method of message control protocol independent of webcam hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103360447A CN103428210A (en) 2013-08-01 2013-08-01 Implementation method of message control protocol independent of webcam hardware

Publications (1)

Publication Number Publication Date
CN103428210A true CN103428210A (en) 2013-12-04

Family

ID=49652387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103360447A Pending CN103428210A (en) 2013-08-01 2013-08-01 Implementation method of message control protocol independent of webcam hardware

Country Status (1)

Country Link
CN (1) CN103428210A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005353A (en) * 2018-09-07 2018-12-14 厦门亿联网络技术股份有限公司 A kind of camera self-adaptation control method and device based on various control agreement

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913461A (en) * 2006-08-30 2007-02-14 北京天地互连信息技术有限公司 Remote vedio monitoring system based on next generation interconnection network and its implementing method
US20110289228A1 (en) * 2010-05-19 2011-11-24 Hon Hai Precision Industry Co., Ltd. Internet protocol camera management system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913461A (en) * 2006-08-30 2007-02-14 北京天地互连信息技术有限公司 Remote vedio monitoring system based on next generation interconnection network and its implementing method
US20110289228A1 (en) * 2010-05-19 2011-11-24 Hon Hai Precision Industry Co., Ltd. Internet protocol camera management system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
冷剑青等: "嵌入式网络摄像机", 《电子测量技术》 *
刘广业: "基于嵌入式Linux的网络监控系统", 《中国优秀博硕士学位论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005353A (en) * 2018-09-07 2018-12-14 厦门亿联网络技术股份有限公司 A kind of camera self-adaptation control method and device based on various control agreement

Similar Documents

Publication Publication Date Title
WO2018219178A1 (en) Data synchronization method and apparatus, server, and storage medium
WO2018166415A1 (en) Cloud storage system, media data storage method and system
CN105491337A (en) Universal network video monitoring equipment access method and apparatus based on SDK abstract layer
CN112804289B (en) Resource synchronization method, device, equipment and storage medium
CN104935634A (en) Data Sharing Method for Mobile Devices Based on Distributed Shared Storage
US20170034311A1 (en) Method for selecting between multiple RPC frameworks during a TCP/IP session
CN104065933A (en) Intelligent data acquisition method and system in video surveillance system
CN110324423A (en) A kind of service registration discovery method, system, equipment and medium
CN104866528B (en) Multi-platform data acquisition method and system
CN100481936C (en) Method for establishing video frequency monitoring front end equipment control parts adoption structure
CN113852522B (en) Camera binding and unbinding method based on multiple platforms
CN103428210A (en) Implementation method of message control protocol independent of webcam hardware
CN110233791B (en) Data deduplication method and device
CN113938457B (en) Method, system and equipment for cloud mobile phone to apply remote camera
WO2014180436A1 (en) Inter-terminal communication method, and terminal
CN106055663B (en) A video storage method based on dual-system hot backup
CN114788393B (en) Inter-device communication method, device and storage medium
CN114827096A (en) RTMP connection migration method, device, equipment and readable storage medium
CN103067563A (en) Method, system and device for managing and discovering terminal capability information
US20120072524A1 (en) System and method for recording data in a network environment
CN105263134A (en) Image transmission method and mobile equipment
CN117336162A (en) Network equipment configuration synchronization method, device, equipment and storage medium
CN116820430B (en) Asynchronous read-write method, device, computer equipment and storage medium
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN102111435B (en) Method for realizing transmission control protocol (TCP) connection status management by combining software with hardware

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160206

Address after: 212006 Zhenjiang city of Jiangsu province science and technology park by twelve Dingmao Road 99, 41 floor of Building 2

Applicant after: Jiangsu Wanlian new trillion Mdt InfoTech Ltd (foreign joint ventures)

Address before: 212000 Zhenjiang city of Jiangsu province science and technology park area Dingmao twelve Road No. 3 building 808 room Elite Apartments

Applicant before: He Jianyi

RJ01 Rejection of invention patent application after publication

Application publication date: 20131204