资源描述:
《linux下usb视频设备用户空间驱动研究与开发》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、浙江大学硕士学位论文图目录浙江大学计算机科学与技术学院硕士学位论文Linux下USB视频设备用户空间驱动研究与开发姓名:徐家申请学位级别:硕士专业:计算机应用技术指导教师:陈奇20100308浙江大学硕士学位论文图目录摘要Linux设备驱动一般运行在内核空间,近些年来,为了提高驱动开发效率,浙江大学硕士学位论文图目录一些研究人员提出了在用户空间下开发驱动的概念,相对于内核驱动,用户空间下的驱动有着以下优点:1,调试的方便;2,用户空驱动出错不会引起系统崩溃;3,用户空间驱动可以使用C语言库,简化驱动的开发;4,用户空间驱动对内核依赖性较少,有更好的移植性,并且可以
2、发布封闭源代码的驱动。应用程序可以通过系统调用和内核驱动进行交互,但对于用户空间驱动,需要实现相应的框架来支持应用程序与驱动之间的交互。本文针对视频设备的特性,设计并实现了用户空间的V4L2交互框架,通过该框架,应用程序可以方便的以V4L2标准与用户空间驱动进行交互,并能减少用户空间驱动的开发工作量。视频设备有较复杂的工作机制和数据格式,在用户空间下开发丨能够有效的提高驱动开发效率和降低调试的难度。本文从USB视频设备的共性出发,利用Libusb库设计并实现了USB视频设备的用户空间驱动,并使用C++语言以面向对象的思想来组织驱动的开发,并实现了视频驱动中可重用的
3、传输缓冲区模块,同时C++相对与C语言更强的语言安全性也提髙了驱动的稳定性。关键词:Linux驱动,视频设备,用户空间,V4L2交互框架,传输缓冲区浙江大学硕士学位论文AbstractAbstractLinuxdevicedriversusuallyruninkernelspace.Recentyears,inordertoimprovethedriverdevelopmentefficiency,someresearchersproposetheuserspacedriverdevelopmentconcept.Comparetokernelspacedrive
4、r,user-spacedriverhasthefollowingadvantages:1,convenienceofdebugging;2,theuserspacedrivererrorwillnotcausesystemcrashes;3,theuserspacedriverscanusetheClanguagelibrary,simplifydriverdevelopment;4,user-spacedriversarelessdependentonthekernel,sohavebetterportability,andcanreleaseclosedso
5、urcedrivers.Theapplicationusesthesystemcallstocommunicatewithkerneldriver,whileinuserspacedriver,thereneedsanappropriateframeworktofacilitatetheinteractionbetweenapplicationanddriver.Inthispaper,consideringthecharacteristicsofvideoequipment,itdesignsandimplementstheuserspaceV4L2intera
6、ctionframework.Usingthisframework,theapplicationcancommunicatewithuser-spacedriversunderV4L2standardeasily,andalsoreducestheworkloadoftheuserspacedriverdevelopment.Videodevicehascomplexworkingmechanismsanddataformats,developitsdriverinuserspaceandimprovethedevelopefficiencyandreducede
7、buggingdifficulty.ThisarticleusesLibusblibrarytodesignandimplementauserspaceUSBvideodevicedriver,andusestheC++,withobject-orientedideatotheorganizedriverdevelopment,andrealizesareusedtransmissionbuffermodule.C++'smoresafetyinlanguagecanincreasethedriverstability.iii浙江大学硕士学位论文AbstractK
8、eywor