Linux集成下USB Gadget的USB虚拟网口设计  被引量:1

Implementation of USB Virtual Network Port Based on USB Gadget in Linux

在线阅读下载全文

作  者:赵昕 郭恩全[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[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象