WO2011038622A1 - 视频监控编码器中间件通用系统及信息传递方法 - Google Patents
视频监控编码器中间件通用系统及信息传递方法 Download PDFInfo
- Publication number
- WO2011038622A1 WO2011038622A1 PCT/CN2010/076418 CN2010076418W WO2011038622A1 WO 2011038622 A1 WO2011038622 A1 WO 2011038622A1 CN 2010076418 W CN2010076418 W CN 2010076418W WO 2011038622 A1 WO2011038622 A1 WO 2011038622A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- middleware
- encoder
- interface
- layer
- function implementation
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Definitions
- the present invention relates to a network monitoring system, and more particularly to a video surveillance encoder middleware general system used in an embedded system for video surveillance encoder terminal equipment and an information transmission method based on the middleware general system. Background technique
- the network monitoring system performs media transmission through the internal Internet (Intranet) and the Internet (Internet) for remote video surveillance. No matter where they are, users can use the computer, TV, mobile phone and other devices to log on to the Internet to connect to the remote monitoring system to realize real-time image and sound transmission.
- Video surveillance is widely used in many applications, such as public security bureaus, banks, schools, hospitals, highways, etc., because of its intuitiveness, convenience, and rich information content.
- the video surveillance encoder has many kinds of hardware peripherals due to the variety of application scenarios.
- the video surveillance encoder needs to be updated, that is, a corresponding software development work is performed, and the development work cycle is long and the work is repeated, so that the product introduction is slow and the cost is high.
- the technical problem to be solved by the present invention is to provide a general system for video surveillance encoder middleware and an information transmission method based on the general system of the middleware, which solves the need for a video surveillance for each specific hardware device in the prior art.
- the problem with the update of the encoder is to provide a general system for video surveillance encoder middleware and an information transmission method based on the general system of the middleware, which solves the need for a video surveillance for each specific hardware device in the prior art.
- the present invention provides a video surveillance encoder middleware universal system, the system comprising:
- the application function implementation layer is configured to send or receive a message or parameter related to the video surveillance encoder
- a middleware interface adaptation layer connected to the application function implementation layer, for forwarding the message or parameter related to the video surveillance encoder
- the middleware function implementation layer is connected to the middleware interface adaptation layer for receiving or transmitting a message or parameter related to the video surveillance encoder.
- the middleware interface adaptation layer includes:
- the first calling interface is configured to be used by the application function implementation layer to forward the message or parameter to the middleware function implementation layer.
- the middleware interface adaptation layer further includes:
- the second call interface is configured to be used by the middleware function implementation layer to forward the message or parameter to the application function implementation layer.
- the first calling interface includes:
- Initializing a hardware device interface configured to be used by the application function implementation layer to notify the middleware function to implement layer hardware device initialization.
- the first calling interface includes:
- An interface for notifying the upgrade program, the upgrade information for notifying the application function implementation layer is forwarded to the middleware function implementation layer.
- the second calling interface includes: The application function implements the layer alarm input/output interface for forwarding the alarm information received by the alarm input/output interface to the application function implementation layer.
- the second calling interface includes:
- An interface for reporting the progress of the upgrade is used to notify the application function implementation layer of the upgrade progress information.
- the middleware function implementation layer includes a table for describing a video surveillance encoder.
- the invention also provides an information transmission method based on a general system of video monitoring encoder middleware, comprising:
- Application function implementation layer or middleware function implementation layer sends a video monitoring encoder related message or parameter
- the middleware interface adaptation layer receives the message or parameter related to the video surveillance encoder, and forwards the message;
- the middleware function implementation layer or the application function implementation layer receives the video surveillance encoder related message or parameter forwarded by the middleware interface adaptation layer.
- the middleware interface adaptation layer receives the video monitoring encoder related message or parameter through the first calling interface or the second calling interface and forwards the message.
- the general system and the information transmission method of the video monitoring encoder middleware of the invention isolate the connection between the application function implementation layer and the embedded operating system and the hardware peripherals, so that the hardware device can be replaced at will, the operating system and the application software need not be replaced. Changes can be implemented with only minor changes to reduce product development time and reduce product development effort.
- FIG. 1 is a schematic structural diagram of Embodiment 1 of a general system for video surveillance encoder middleware according to the present invention
- FIG. 2 is a schematic structural diagram of Embodiment 2 of a general system for video surveillance encoder middleware according to the present invention. detailed description
- FIG. 1 is a schematic structural diagram of Embodiment 1 of a general system for video surveillance encoder middleware according to the present invention.
- the video surveillance encoder middleware general system of the invention comprises an application function implementation layer 1, a middleware interface adaptation layer 2, a middleware function implementation layer 3, and an embedded operating system 4 and a hardware device 5.
- the application function implementation layer 1 is configured to send or receive messages or parameters related to the video surveillance encoder, thereby implementing various functions of the video surveillance encoder.
- the middleware interface adaptation layer 2 is connected to the application function implementation layer 1 for forwarding the message or parameter.
- the middleware interface adaptation layer 2 mainly implements a message and parameter conversion function, including a series of The first call interface 21 and the second call interface 22.
- the first call interface 21 is provided with a function implementation layer 1 call, which provides a unified interface to the application function implementation layer 2, and transmits the video surveillance code suitable for the current operating system 4 and the hardware device 5 to the middleware function implementation layer 3. Related parameters and messages.
- the second call interface 22 is invoked by the middleware function implementation layer 3 to transmit a uniform format to the application function layer 1 for the current operating system 4 and the hardware device 5 related to the video surveillance encoder.
- the interface of the middleware adaptation layer 2 is divided into two categories, one is a first call interface 21 that is called by the supply function layer 1, and the second call interface 22 is called for the middleware interface implementation layer 3.
- the application function implementation layer 1 sends a message or parameter to the middleware function implementation layer 3 by calling the first call interface 21, and the middleware function implementation layer 3 sends a message or parameter to the application function implementation layer 1 by calling the second call interface 22. .
- the first calling interface 21 of the interface that the middleware interface adaptation layer 2 needs to provide includes: an interface that applies the function implementation layer and the codec chip, and is used to notify the application function implementation layer 1
- the decoding information of the codec chip is forwarded to the middleware function implementation layer 3, that is, the application function implementation layer 1 realizes the layer 3 through the middleware function to notify the codec chip to start/stop encoding, set the video parameters, subtitle superposition, motion detection alarm, etc.
- the second calling interface 22 includes an interface for applying the function implementation layer 1 alarm input/output for receiving the alarm information of the alarm input/output interface (ie, the current operating system 4 and the hardware device 5 are related to the video monitoring encoder).
- the parameters and messages are forwarded to the application function implementation layer 1; the interface that receives the alarm message from the alarm input/output interface and the interface for lighting.
- the middle calling function is implemented by the middleware function layer 3 to call the second calling interface (ie, the application function implements the layer 1 alarm input/output interface) to notify the application function realization.
- Layer 1 for applying the function implementation layer 1 alarm input/output for receiving the alarm information of the alarm input/output interface (ie, the current operating system 4 and the hardware device 5 are related to the video monitoring encoder).
- the parameters and messages are forwarded to the application function implementation layer 1; the interface that receives the alarm message from the alarm input/output interface and the interface for lighting.
- the middle calling function is implemented by the middleware function layer 3 to call the second calling interface
- the first call interface 21 also includes an interface for the application function implementation layer 1 to implement reading and writing of flash memory.
- the application function layer 1 calls the unified interface 21, and is transmitted to the middleware function implementation layer 3.
- the middleware function implementation layer 3 then reads and writes the hardware device flash by calling the driver of the operating system 4.
- the first calling interface 21 of the middleware interface adaptation layer 2 further includes an interface for notifying the upgrade program, and the interface is used for the provisioning function to implement the layer 1 notification upgrade program, that is, the application function implementation layer 1 calls the interface to notify the middleware function.
- Layer 3 upgrade information such as the hardware device of the video surveillance encoder needs to be upgraded; and the second call interface 22 further includes an escalation progress interface reported by the upgrade program, that is, the middleware function implementation layer 3 calls the interface to the video.
- the program upgrade progress ie, upgrade progress information
- upgrade progress information of the hardware device of the monitoring encoder is notified to the application function implementation layer 1.
- the first call interface 21 of the middleware interface adaptation layer 2 further includes an initialization hardware device interface and a hardware device model interface.
- the middleware adaptation interface layer 2 provides an initialization hardware device interface.
- the application function implementation layer 1 calls a unified initialization hardware device interface, and notifies the middleware function to implement layer 3 hardware device initialization; after the hardware device is initialized, the application function is implemented.
- Layer 1 The hardware device model interface is called and read, and the hardware-supported function item is obtained from the table in the application function implementation layer 1 according to the hardware device model, and the middleware function implementation layer 3 is notified to adjust the application function.
- the hardware device model can be saved in a fixed location on the flash of the hardware device or saved as a file.
- the application function implementation layer 1 calls the hardware device model interface to query the hardware device support function from the table.
- a middleware function implementation layer 1 maintains a function for describing the video surveillance encoder support (ie, A table of hardware device support features).
- the number of channels indicates the maximum number of channels that can be monitored at the same time.
- the camera type has an external camera, a ball machine, and a gun.
- the infrared column indicates whether infrared is supported.
- the wireless column indicates which wireless mode the encoder supports.
- the column of the hard disk indicates whether the storage device is installed in this type of encoder.
- Model 001 is a video surveillance encoder that can only monitor one channel, has its own camera, is a dome camera, can support infrared, and supports wireless broadband (WIFI, Wireless Fidelity) wireless transmission. And there is no storage device like a hard disk.
- this video surveillance encoder monitors up to 16 channels, does not have a camera, requires an external camera, does not support infrared, supports Worldwide Interoperability for Microwave Access wireless transmission, installs a hard disk device, In real-time monitoring, surveillance video can be stored in the encoder.
- the embedded operating system 4 is an operating system used on an embedded device (ie, a hardware device 5, such as an alarm device), and is broadly included in the present invention.
- Hardware device 5 refers to video surveillance Encoder hardware devices (such as flash) and some peripherals. That is, the video surveillance encoder includes the above-mentioned middleware general system proposed in the present invention, and an operating system, and also includes those hardware devices such as a casing, a board, a flash, a plug, etc., and the present invention aims to implement a layer through an application function. 1 Interacts with the middleware function layer 3 by calling the unified interface of the middleware interface adaptation layer 2.
- the application function implementation layer 1 does not directly interact with the embedded operating system 4 and the hardware and the peripheral device 5, that is, the connection between the application function implementation layer 1 and the embedded operating system 4 and the hardware device 5 is isolated, so that it can be replaced at will.
- Hardware devices, operating systems, application software can be implemented without changes or with minor changes, thus shortening product development time and reducing product development manpower.
- the present invention further provides an information transmission method based on a video surveillance encoder middleware general system, the method comprising: applying a function implementation layer or a middleware function implementation layer to send a video monitoring encoder related message or parameter; Receiving, by the interface adaptation layer, the message or parameter related to the video surveillance encoder, and forwarding the same; and the middleware function implementation layer or the application function implementation layer receiving the video surveillance encoder forwarded by the middleware interface adaptation layer Message or parameter.
- the middleware interface adaptation layer For example, through the first call interface and the second call interface provided by the middleware interface adaptation layer, device initialization, program upgrade, program upgrade progress, read/write flash or codec chip start/stop coding, etc. are applicable to the current operating system.
- the parameters and messages associated with the video surveillance encoder are forwarded.
- the middleware interface adaptation layer provides a unified interface to the application function implementation layer.
- the application function implementation layer invokes a unified interface of the middleware interface adaptation layer, and transmits parameters or sends messages through the interface.
- the middleware interface adaptation layer converts parameters and messages into corresponding parameters or messages. Send to the middleware function implementation layer.
- the middleware function implementation layer calls the corresponding driver to implement the function.
- the middleware interface adaptation layer also provides a unified interface to the middleware function implementation layer. Enables the middleware function implementation layer to pass parameters or send messages to the application function implementation layer.
- the hardware device model is defined for the hardware device, and the specific supported function items (in the table of the application function implementation layer 1), such as infrared, wifi, etc., are defined for the specific hardware device model.
- the middleware interface adaptation layer provides an initialization hardware device interface and a hardware device model interface.
- the middleware adaptation interface layer 2 provides an initialization hardware device interface.
- the application function implementation layer 1 calls a unified initialization hardware device interface, and notifies the middleware function to implement layer 3 hardware device initialization; after the hardware device is initialized, the application function is implemented.
- Layer 1 calls the read hardware device model interface, and obtains the hardware-supported function items from the table in the application function implementation layer 1 according to the hardware device model, and notifies the middleware function implementation layer 3 to adjust the application function.
- the application function implementation layer 1 interacts with the middleware function layer 3 by calling the unified interface of the middleware interface adaptation layer 2. Thus, the application function implementation layer 1 does not directly interact with the embedded operating system 4 and the hardware and peripherals 5.
- Application Function Implementation Layer 1 All operations on the hardware device 5 are performed through the middleware interface adaptation layer 2 by calling the middleware function implementation layer 3.
- Through the middleware interface adaptation layer 2 and middleware function implementation layer 3 isolates the connection between the application function implementation layer 1 and the embedded operating system 4, the hardware peripheral 5, thereby implementing the application function layer 1 and specific hardware Features are independent of the operating system.
- the video surveillance encoder manufacturer develops the encoder product, and can replace the embedded operating system or the hardware device without modification or only a small amount of modification of the application function implementation layer and the middleware interface definition, and needs to be modified.
- middleware interface adaptation layer middleware function implementation layer. This improves the reuse rate of the code of the application function implementation layer, has strong scalability, small code size, greatly shortens the development cycle, and saves development costs.
- Application Function The manufacturer of the implementation layer provides a unified specification middleware interface.
- the hardware device can also be provided by many different vendors, and multiple models can be developed at the same time. At the same time, it also contributes to the uniform specification of video surveillance encoders.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephonic Communication Services (AREA)
Description
视频监控编码器中间件通用系统及信息传递方法 技术领域
本发明涉及网络监控系统, 尤其涉及一种为视频监控的编码器终端设 备内部的嵌入式系统中使用的视频监控编码器中间件通用系统以及基于此 中间件通用系统的信息传递方法。 背景技术
网络监控系统通过内部互联网 (Intranet )和国际互联网 (Internet ) 实 现媒体的传输, 来进行远程的视频监控。 用户无论身在何处, 都可利用电 脑、 电视、 手机等设备登陆互联网接通远端的监控系统, 实现实时图像和 声音传输。 视频监控以其直观、 方便、 信息内容丰富而广泛应用于许多场 合, 例如公安局、 银行、 学校、 医院、 公路等。
而其中的视频监控编码器则由于应用场景丰富多样, 从而硬件外设也 有许多种类型。 每针对一种特定的硬件设备, 都需要对视频监控编码器进 行更新、 即做一次相应的软件开发工作, 而该开发工作周期长、 工作重复, 从而产品推出慢、 成本高。
因此, 需要一种视频监控编码器中间件的解决方案, 提高软件的复用 性, 来解决上述问题。 现有技术中提出了这样一种解决方案, 专利申请号 为 CN200710165404.6的中国专利申请 "机顶盒集成中间件通用系统"。 但 该 CN200710165404.6专利申请的针对范围是交互式网络电视( IPTV )机顶 盒,介绍了机顶盒接入 IPTV整个系统的中间件,该方案是用于 IPTV系统, 说明的是 IPTV机顶盒这个终端设备接入整个业务系统的中间件。
发明内容
本发明所要解决的技术问题是提供一种视频监控编码器中间件通用系 统以及基于该中间件通用系统的信息传递方法, 解决现有技术中每针对一 种特定的硬件设备就需要进行一次视频监控编码器的更新的问题。
为了解决上述技术问题, 本发明提供了一种视频监控编码器中间件通 用系统, 该系统包括:
应用功能实现层, 用于发送或者接收视频监控编码器相关的消息或参 数;
中间件接口适配层, 与所述应用功能实现层连接, 用于将所述视频监 控编码器相关的消息或参数转发;
中间件功能实现层, 与所述中间件接口适配层连接, 用于接收或者发 送所述视频监控编码器相关的消息或参数。
所述中间件接口适配层包括:
第一调用接口, 用于供所述应用功能实现层调用, 将所述消息或参数 转发至中间件功能实现层。
所述中间件接口适配层还包括:
第二调用接口, 用于供所述中间件功能实现层调用, 将所述消息或参 数转发至所述应用功能实现层。
所述第一调用接口包括:
初始化硬件设备接口, 用于供所述应用功能实现层调用, 通知所述中 间件功能实现层硬件设备初始化。
所述第一调用接口包括:
通知升级程序的接口, 用于将所述应用功能实现层通知的升级信息转 发至所述中间件功能实现层。
所述第二调用接口包括:
应用功能实现层报警输入 /输出的接口, 用于将报警输入 /输出接口接收 到的报警信息转发给所述应用功能实现层。
所述第二调用接口包括:
上报升级进度的接口, 用于将升级进度信息通知给所述应用功能实现 层。
所述中间件功能实现层包括用于描述视频监控编码器的表。
本发明还提供了一种基于视频监控编码器中间件通用系统的信息传递 方法, 包括:
应用功能实现层或中间件功能实现层发送视频监控编码器相关的消息 或参数;
中间件接口适配层接收所述视频监控编码器相关的消息或参数, 并将 其转发;
中间件功能实现层或应用功能实现层接收中间件接口适配层转发的所 述视频监控编码器相关的消息或参数。
所述中间件接口适配层通过第一调用接口或者第二调用接口接收所述 视频监控编码器相关的消息或参数并将其转发。
因此, 本发明视频监控编码器中间件通用系统及信息传递方法隔离了 应用功能实现层与嵌入式操作系统, 硬件外设之间的联系, 从而可以随意 地更换硬件设备, 操作系统, 应用软件无需更改或者仅需少量更改便可以 实现功能从而缩短产品开发时间, 减少产品开发人力。 附图说明
图 1为本发明视频监控编码器中间件通用系统实施例一的结构示意图; 图 2为本发明视频监控编码器中间件通用系统实施例二的结构示意图。
具体实施方式
下面通过附图和实施例, 对本发明实施例的技术方案做进一步的详细 描述。
如图 1 所示, 为本发明视频监控编码器中间件通用系统实施例一的结 构示意图。 本发明视频监控编码器中间件通用系统包括应用功能实现层 1、 中间件接口适配层 2、 中间件功能实现层 3 , 还包括嵌入式操作系统 4和硬 件设备 5。 应用功能实现层 1 , 用于发送或者接收视频监控编码器相关的消 息或参数, 从而实现视频监控编码器各种功能。 中间件接口适配层 2, 与应 用功能实现层 1连接,用于将所述消息或参数转发;该中间件接口适配层 2, 主要实现的是消息与参数的转换功能, 其中包括一系列第一调用接口 21和 第二调用接口 22。 其中, 第一调用接口 21供应用功能实现层 1调用, 它向 应用功能实现层 2提供统一的接口, 向中间件功能实现层 3传送适用于当 前操作系统 4和硬件设备 5的与视频监控编码器相关的参数和消息。 第二 调用接口 22, 由中间件功能实现层 3调用, 作用是向应用功能实现层 1传 送统一格式适用于当前操作系统 4和硬件设备 5的与视频监控编码器相关 的消息或者参数。
下面结合图 2对应用功能实现层 1与中间件功能实现层 3之间的调用 关系进行说明。
中间件适配层 2的接口分为两类, 一类为供应用功能实现层 1调用的 第一调用接口 21 , —类为供中间件接口实现层 3调用的第二调用接口 22。
应用功能实现层 1通过调用第一调用接口 21 , 发送消息或参数到中间 件功能实现层 3 , 而中间件功能实现层 3通过调用第二调用接口 22来发送 消息或参数到应用功能实现层 1。
中间件接口适配层 2需要提供的接口中第一调用接口 21包括: 应用功能实现层和编解码芯片的接口, 用于将应用功能实现层 1 通知
编解码芯片的解码信息转发给中间件功能实现层 3 ,即应用功能实现层 1通 过中间件功能实现层 3来通知编解码芯片开始 /停止编码, 设置视频参数, 字幕叠加、 移动侦测报警等这些适用于当前操作系统 4和编解码芯片 5的 与视频监控编码器相关的参数和消息。
第二调用接口 22包括应用功能实现层 1报警输入 /输出的接口,用于将 报警输入 /输出接口接收到的报警信息 (即适用于当前操作系统 4和硬件设 备 5的与视频监控编码器相关的参数和消息)转发给应用功能实现层 1 ; 包 括从报警输入 /输出接口得到报警消息的接口以及点灯的接口。 视频监控编 码器的操作系统从硬件设备如报警设备处获得信息后, 通过中间件功能实 现层 3来调用该第二调用接口(即应用功能实现层 1报警输入 /输出的接口 ) 通知应用功能实现层 1。
第一调用接口 21还包括应用功能实现层 1实现读写闪存(flash ) 的接 口。 当需要读写 flash时, 应用功能实现层 1调用统一的接口 21 , 传递给中 间件功能实现层 3 ,中间件功能实现层 3再通过调用操作系统 4的驱动程序 实现对硬件设备 flash读写的功能。
该中间件接口适配层 2 的第一调用接口 21 还包括通知升级程序的接 口, 该接口用于供应用功能实现层 1 通知升级程序, 即应用功能实现层 1 调用该接口通知中间件功能实现层 3 升级信息, 如该视频监控编码器的硬 件设备需要进行程序升级; 以及第二调用接口 22还包括将升级程序上报的 上报升级进度接口, 即中间件功能实现层 3调用该接口将该视频监控编码 器的硬件设备的程序升级进度(即升级进度信息)通知给应用功能实现层 1。
中间件接口适配层 2的第一调用接口 21还包括初始化硬件设备接口和 硬件设备型号接口。 中间件适配接口层 2提供初始化硬件设备接口, 程序 开始运行时, 应用功能实现层 1 调用统一的初始化硬件设备接口, 通知中 间件功能实现层 3硬件设备初始化; 硬件设备初始化后, 应用功能实现层 1
调用并读取硬件设备型号接口, 根据硬件设备型号从应用功能实现层 1 中 的表中获取此硬件支持的功能项, 通知中间件功能实现层 3 , 从而调整应用 功能。
具体而言, 硬件设备型号可保存于硬件设备 flash的固定位置中, 或用 文件形式保存。 获取设备型号之后, 应用功能实现层 1 调用硬件设备型号 接口从表格中查询硬件设备支持功能, 如下表所示, 在中间件功能实现层 1 中维护一个用于描述视频监控编码器支持功能 (即硬件设备支持功能) 的 表。
上表中, 通道数表示最大能同时监控的路数, 摄像机类型有外接摄像 头、 有球机、 有枪机, 红外这一列表示是否支持红外, 无线这一列表示此 型号编码器支持哪种无线模式, 硬盘这一列表示此型号编码器是否安装了 存储装置。
从上表中可以看到, 型号 001 这款视频监控编码器, 最大只能监视 1 路、 自带摄像头、 是球机的形式、 能够支持红外、 支持无线宽带 (WIFI, Wireless Fidelity )无线传输、 并且没有硬盘这样的存储设备。 型号 002这款 视频监控编码器, 最大监视 16路、 不带摄像头、 需要外接摄像头、 不支持 红外、 支持全球微波互联接入(WiMAX , Worldwide Interoperability for Microwave Access )无线传输、 安装了硬盘设备, 在实时监控的同时可以在 编码器中存入监控录像。
图 1所示视频监控编码器中间件通用系统的结构中,嵌入式操作系统 4, 是运行在嵌入式设备(即硬件设备 5 , 如报警设备)上使用的操作系统, 本 发明中广义的包含了硬件设备的一系列驱动程序。硬件设备 5 , 指视频监控
编码器的硬件设备(例如 flash ) 以及一些外设。 即该视频监控编码器包括 上述本发明中提出的中间件通用系统, 以及操作系统, 同时还包括那些硬 件设备如外壳、 单板、 flash、 插头等, 本发明旨在提出了通过应用功能实 现层 1通过调用中间件接口适配层 2的统一接口与中间件功能实现层 3相 互作用。 从而应用功能实现层 1不直接和嵌入式操作系统 4以及硬件以及 外设 5交互, 即隔离了应用功能实现层 1与嵌入式操作系统 4、 硬件设备 5 之间的联系, 从而可以随意地更换硬件设备, 操作系统, 应用软件无需更 改或者仅需少量更改便可以实现功能从而缩短产品开发时间, 减少产品开 发人力。
相应地, 本发明还提供了一种基于视频监控编码器中间件通用系统的 信息传递方法, 该方法包括: 应用功能实现层或中间件功能实现层发送视 频监控编码器相关的消息或参数; 中间件接口适配层接收所述视频监控编 码器相关的消息或参数, 并将其转发; 以及中间件功能实现层或应用功能 实现层接收中间件接口适配层转发的所述视频监控编码器相关的消息或参 数。 例如通过中间件接口适配层提供的第一调用接口和第二调用接口, 将 设备初始化、 程序升级、 程序升级进度、 读写 flash或者编解码芯片开始 / 停止编码等这些适用于当前操作系统的与视频监控编码器相关的参数和消 息进行转发。
针对不同的硬件设备, 不同的操作系统, 中间件接口适配层向应用功 能实现层, 提供的是统一的接口。 应用功能实现层调用中间件接口适配层 的统一接口, 通过此接口传递参数或者发送消息, 针对不同的硬件或者操 作系统, 中间件接口适配层将参数以及消息转换成相应的参数或者消息, 送给中间件功能实现层。 对不同的硬件设备, 中间件功能实现层调用相应 的驱动程序来实现功能。
同时, 中间件接口适配层向中间件功能实现层也提供了统一的接口,
使中间件功能实现层向应用功能实现层传递参数或发送消息。
针对硬件设备定义了硬件设备型号, 针对具体的硬件设备型号, 定义 了具体支持的功能项 (应用功能实现层 1中的表中), 例如红外, wifi等。
中间件接口适配层提供初始化硬件设备接口和硬件设备型号接口。 中 间件适配接口层 2提供初始化硬件设备接口, 程序开始运行时, 应用功能 实现层 1调用统一的初始化硬件设备接口, 通知中间件功能实现层 3硬件 设备初始化; 硬件设备初始化后, 应用功能实现层 1 调用读取硬件设备型 号接口, 根据硬件设备型号从应用功能实现层 1 中的表中获取此硬件支持 的功能项, 通知中间件功能实现层 3 , 从而调整应用功能。
应用功能实现层 1通过调用中间件接口适配层 2的统一接口与中间件 功能实现层 3 相互作用。 从而应用功能实现层 1不直接和嵌入式操作系统 4以及硬件以及外设 5交互。应用功能实现层 1所有对硬件设备 5的操作都 通过中间件接口适配层 2调用中间件功能实现层 3进行操作。 通过中间件 接口适配层 2和中间件功能实现层 3隔离了应用功能实现层 1与嵌入式操 作系统 4,硬件外设 5之间的联系,从而做到应用功能实现层 1与具体的硬 件特性和操作系统无关。
釆用本发明的实现方案, 视频监控编码器厂商开发编码器产品, 可以 更换嵌入式操作系统或者硬件设备, 不需要修改或者仅需要少量的修改应 用功能实现层和中间件接口的定义, 需要修改的有: 中间件接口适配层, 中间件功能实现层。 这样提高了应用功能实现层的代码的复用率, 具备很 强的可扩展性, 代码量小, 大大缩短开发周期, 节省开发成本。 应用功能 实现层的厂商提供统一规范的中间件接口, 硬件设备的也可以由多个不同 的厂商提供, 可以同时开发多种型号产品。 同时, 也有助于视频监控编码 器的统一规范。
最后应当说明的是, 以上实施例仅用以说明本发明的技术方案而非限
制, 尽管参照较佳实施例对本发明进行了详细说明, 本领域的普通技术人 员应当理解, 可以对本发明进行修改、 更改或者等同替换, 而不脱离本发 明和权利要求的精神和范围。
Claims
1、 一种视频监控编码器中间件通用系统, 其特征在于, 包括: 应用功能实现层, 用于发送或者接收视频监控编码器相关的消息或参 数;
中间件接口适配层, 与所述应用功能实现层连接, 用于将所述视频监 控编码器相关的消息或参数转发;
中间件功能实现层, 与所述中间件接口适配层连接, 用于接收或者发 送所述视频监控编码器相关的消息或参数。
2、如权利要求 1所述的视频监控编码器中间件通用系统,其特征在于, 所述中间件接口适配层包括:
第一调用接口, 用于供所述应用功能实现层调用, 将所述消息或参数 转发至中间件功能实现层。
3、如权利要求 2所述的视频监控编码器中间件通用系统,其特征在于, 所述中间件接口适配层还包括:
第二调用接口, 用于供所述中间件功能实现层调用, 将所述消息或参 数转发至所述应用功能实现层。
4、如权利要求 2所述的视频监控编码器中间件通用系统,其特征在于, 所述第一调用接口包括:
初始化硬件设备接口, 用于供所述应用功能实现层调用, 通知所述中 间件功能实现层硬件设备初始化。
5、如权利要求 2所述的视频监控编码器中间件通用系统,其特征在于, 所述第一调用接口包括:
通知升级程序的接口, 用于将所述应用功能实现层通知的升级信息转 发至所述中间件功能实现层。
6、如权利要求 3所述的视频监控编码器中间件通用系统,其特征在于, 所述第二调用接口包括:
应用功能实现层报警输入 /输出的接口, 用于将报警输入 /输出接口接收 到的报警信息转发给所述应用功能实现层。
7、如权利要求 3所述的视频监控编码器中间件通用系统,其特征在于, 所述第二调用接口包括:
上报升级进度的接口, 用于将升级进度信息通知给所述应用功能实现 层。
8、如权利要求 4所述的视频监控编码器中间件通用系统,其特征在于, 所述中间件功能实现层包括用于描述视频监控编码器的表。
9、 一种基于视频监控编码器中间件通用系统的信息传递方法, 其特征 在于, 包括:
应用功能实现层或中间件功能实现层发送视频监控编码器相关的消息 或参数;
中间件接口适配层接收所述视频监控编码器相关的消息或参数, 并将 其转发;
中间件功能实现层或应用功能实现层接收中间件接口适配层转发的所 述视频监控编码器相关的消息或参数, 并将其转发。
10、 如权利要求 9所述基于视频监控编码器中间件通用系统的信息传 递方法, 其特征在于, 所述中间件接口适配层接收所述视频监控编码器相 关的消息或参数, 并将其转发具体为:
所述中间件接口适配层通过第一调用接口或者第二调用接口接收所述 视频监控编码器相关的消息或参数并将其转发。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101773843A CN101668187B (zh) | 2009-09-29 | 2009-09-29 | 视频监控编码器中间件通用系统及信息传递方法 |
CN200910177384.3 | 2009-09-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2011038622A1 true WO2011038622A1 (zh) | 2011-04-07 |
Family
ID=41804590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2010/076418 WO2011038622A1 (zh) | 2009-09-29 | 2010-08-27 | 视频监控编码器中间件通用系统及信息传递方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101668187B (zh) |
WO (1) | WO2011038622A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668187B (zh) * | 2009-09-29 | 2012-02-29 | 中兴通讯股份有限公司 | 视频监控编码器中间件通用系统及信息传递方法 |
CN102123269B (zh) * | 2010-12-16 | 2013-03-20 | 华为数字技术(成都)有限公司 | 视频监控数据获取方法、装置以及视频监控系统 |
CN102595241B (zh) * | 2012-01-19 | 2014-03-05 | 福建创频数码科技有限公司 | 一种机顶盒支持flv视频播放的方法 |
CN103294493B (zh) * | 2012-02-28 | 2017-03-01 | 联想(北京)有限公司 | 一种外围设备的初始化方法、初始化装置及照相机 |
CN103729256B (zh) * | 2012-10-10 | 2017-08-25 | 华平信息技术股份有限公司 | 基于本机开发程序包技术的多媒体系统及多媒体数据传输方法 |
CN104394352B (zh) * | 2014-12-15 | 2018-01-09 | 国家电网公司 | 基于互联网的会议电视异构运维系统的适配方法 |
CN112433758A (zh) * | 2020-11-30 | 2021-03-02 | 芯讯通无线科技(上海)有限公司 | 平台功能的调用方法及系统、设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035265A (zh) * | 2006-03-06 | 2007-09-12 | 上海宝信软件股份有限公司 | 通用视频监控系统 |
CN101146175A (zh) * | 2007-10-25 | 2008-03-19 | 中兴通讯股份有限公司 | 机顶盒集成中间件通用系统 |
WO2008072249A2 (en) * | 2006-12-15 | 2008-06-19 | Mango D.S.P. Ltd | System, apparatus and method for flexible modular programming for video processors |
CN101668187A (zh) * | 2009-09-29 | 2010-03-10 | 中兴通讯股份有限公司 | 视频监控编码器中间件通用系统及信息传递方法 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100531200C (zh) * | 2005-06-15 | 2009-08-19 | 深圳Tcl工业研究院有限公司 | 面向3c融合的数字家居中间件引擎 |
CN1863212A (zh) * | 2006-04-14 | 2006-11-15 | 梅红兵 | 一种基于ip数据网络的分布式中间件系统的实现方法 |
-
2009
- 2009-09-29 CN CN2009101773843A patent/CN101668187B/zh not_active Expired - Fee Related
-
2010
- 2010-08-27 WO PCT/CN2010/076418 patent/WO2011038622A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035265A (zh) * | 2006-03-06 | 2007-09-12 | 上海宝信软件股份有限公司 | 通用视频监控系统 |
WO2008072249A2 (en) * | 2006-12-15 | 2008-06-19 | Mango D.S.P. Ltd | System, apparatus and method for flexible modular programming for video processors |
CN101146175A (zh) * | 2007-10-25 | 2008-03-19 | 中兴通讯股份有限公司 | 机顶盒集成中间件通用系统 |
CN101668187A (zh) * | 2009-09-29 | 2010-03-10 | 中兴通讯股份有限公司 | 视频监控编码器中间件通用系统及信息传递方法 |
Also Published As
Publication number | Publication date |
---|---|
CN101668187A (zh) | 2010-03-10 |
CN101668187B (zh) | 2012-02-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011038622A1 (zh) | 视频监控编码器中间件通用系统及信息传递方法 | |
US8875168B2 (en) | Audio/Video monitoring service using set-top boxes and application servers | |
US8934887B2 (en) | System and method for running mobile devices in the cloud | |
EP1617333B1 (en) | Video device, video module unit, and video device operation method | |
CN110740363A (zh) | 投屏方法和系统、电子设备 | |
CN102833585B (zh) | 一种泛终端视频传输系统和方法 | |
CN101005582A (zh) | 具有蓝牙传输音频功能的数字电视机及蓝牙传输方法 | |
JP6649673B2 (ja) | WiFiディスプレイ互換ネットワークゲートウェイ | |
CN102790764A (zh) | 一种媒体投射播放方法及系统 | |
JP2011113565A (ja) | 端末装置及びそのusb機器制御方法 | |
CN102843550A (zh) | 基于机顶盒的远程视频监控方法及系统 | |
US20220086519A1 (en) | Dynamic playlist customization by adaptive streaming client | |
EP4060955A1 (en) | Security method, apparatus and system easy to access by user | |
CN113873279A (zh) | 视频数据解码方法、系统和存储介质 | |
WO2023216798A1 (zh) | 音视频的转码装置、方法、设备、介质及产品 | |
CN109451259A (zh) | 电视线、电视系统及电视播放数据获取方法 | |
CN114040232A (zh) | 投屏系统、方法、电子设备和存储介质 | |
CN112312221A (zh) | 一种音视频播放方法、存储介质及装置 | |
JP5254401B2 (ja) | リッチアプリケーションベースのマルチスクリーンiptvサービス提供システム、端末、サーバ及び方法 | |
WO2018054349A1 (zh) | 数据发送方法、数据接收方法及其装置和系统 | |
CN109491728A (zh) | 基于有限状态机的软件架构系统 | |
WO2022104638A1 (zh) | 图传数据的处理方法、图传设备、终端设备及存储介质 | |
CN114327317B (zh) | 镜像投屏方法、装置及系统 | |
US20150049208A1 (en) | Method, device and system for video monitoring based on universal plug and play (UPnP) | |
JP2006135982A (ja) | ネットワーク接続装置、映像情報機器、情報送受信機器、及びネットワーク接続プログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 10819851 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 10819851 Country of ref document: EP Kind code of ref document: A1 |