检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:赵昕 郭恩全[1,2] 林成文 Zhao Xin;Guo Enquan;Lin Chengwen(The 705th Research Institute of China Shipbuilding Industry Corporation,Xi’an 710075,China;Shanxi Hitech Electronic Limited Liability Company)
机构地区:[1]中国船舶重工集团公司第705研究所,西安710075 [2]陕西海泰电子有限责任公司
出 处:《单片机与嵌入式系统应用》2021年第7期2-6,共5页Microcontrollers & Embedded Systems
摘 要:Linux内核集成的USB Gadget提供了开发USB设备端驱动的支持,因此也可以利用其将USB设备接口虚拟成其他类型接口。本文阐述了USB Gadget原理和总体架构;深入分析了其UDC驱动层和Gadget接口层复杂的数据结构、各类操作函数以及主要工作流程;在Gadget功能驱动层给出了虚拟成网口的具体开发方法;对Linux内核初始的USB Gadget通用模块中UDC层依据平台环境进行修改配置,在S3C2440平台上实现了USB接口虚拟成网口。经测试验证,虚拟后的网口传输正常稳定,为用户在Linux下应用USB Gadget提供了参考。Linux kernel integrated USB Gadget provides support for developing USB device driver,so it can also be used to virtualize USB interface into other interfaces.The principle and overall architecture of USB Gadget are described.The complex data structure,operation function and main workflow of UDC driver layer and gadget interface layer are analyzed.In the Gadget functional driver layer,the concrete development method of virtual network port is given,and the UDC layer in the initial USB gadget general architecture of Linux kernel is modified and configured according to the platform environment.USB interface virtual network interface is implemented on s3c2440 ptatform.The test verifies that the virtual network port communication is normal and stable,which provides valuable reference for the application of USB Gadget in Linux.
关 键 词:LINUX 设备驱动 USB Gadget 网口 S3C2440
分 类 号:TP316.89[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.49