基于USBCDC的虚拟以太网接口研究与设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IUSBCDCCDCECMEEMUSBUSBPANUSBUSBUSBUSBCDCCDCECMEEMPXA27xUSBLinux2.6PXA27xUSBCDCLinuxECMEEMUSBCDCUSBUSBPANUSBUSBIIAbstractThekeymechanismsandprocedureofUSBCommunicationDevicesClass(CDC)Specificationareanalyzedinthisthesis,andtheframeworkandinterfaceofEthernetNetworkingControlModel(ECM)andEthernetEmulationModel(EEM)inCDCarefocusedonyet.BasedontheECMandEEMofCDC,thevirtualEthernetnetworkinterfaceofUSBcanbeappliedtosmartphoneproject,soitistheeasywaytoPAN(PersonalAreaNetwork).ComparingwithphysicalEthernetnetworkinterface,thecharactersofvirtualEthernetnetworkinterfacearepointedtoo.WithtestingtheirperformancestheimportantfeaturesontheSpecificationofUSBCDCforthefutureresearchstrategiesandtrendsaregiven.Thechapteroneispreface.Inthechapteraconciseintroductionismadetothebackgroundofthisthesis.Inthechapter2,USBCDCSpecificationincludingECM&EEMisanalyzedinthisthesis,basedonunderstandingofUSBArchitecture.Inthechapter3,theprincipleofUSBinterfacechipPXA27xanditsUSBdevicecontrollerandtheframeworkofLinuxUSBmodelarestressed.TherealizationofECMandEEMarediscussedindeals.Inthechapter4,theprocedureofaccessingtheinternetwiththeUSBvirtualEthernetnetworkinterfacefromproxyinsmartphoneisdescribed.ThatmakeitclearthatUSBvirtualEthernetnetworkinterfacecanbeusedforPAN.Inthechapter5,comparingwithphysicalEthernetnetworkinterface,theperformanceofUSBvirtualEthernetnetworkinterfacearegiven.Keyword:USB;CDC;ECM;EEM;PAN_____111.1PDAMP3/4PocketPCPersonalAreaNetwork)[1]USBUSBUSB(TCP/IP)USBPAN1.2USBUSBPCMP3/4PSPUSBUSB[2]USB3GUSBIPPCPCPCIP2USBUSBCDCCommunicationDevicesClassSpecificationUSBECM(EthernetNetworkingControlModel)EEMEthernetEmulationModel[3][4]USBCDCUSBCDCUSBISDNATMMicrosoftWINXPCDCRNDISWINXPRNDISUSBLinux2.6CDCusbnetLinuxusbnetUSBIPUSBusbnetUSBpingIPDHCPHTTPNFStelnetftp[5]USBUSB1.3USBUSBCDCPXA27xUSBUSBIPDHCPHTTPNFStelnetftpUSBCDCCDCECMEEMUSBCDC3PXA27xUSBUSBCDCCDCUSBUSBPAN42USBUSBCDC2.1USB(UniversalSerialBus)2.1.1USBUSBUniversalSerialBusPCUSBIntel,MicrosoftIBMCompaq1994USB1998(12M/)USB1.0480M/USB2.0[6][7]2003OTG1.0USBUSBPC(host)PC100%USB(device)USBUSB1PCIPCUSB2USB40GUSBIDEUSB3IDEUSBPCUSBUSBUSB4USBPC54USBHUB4USBPC(127)lUSBUSBendpointUSBUSBUSBEndpoint0USBUSB”(packet)”(protocol)4[8][9]Ø(Control)USBUSB10USB0USBUSBUSB[10][11]Ø(Interrupt)USBUSBUSBUSBUSBØ(Bulk)6()USBØ(Isochronous)USBlUSBUSBUSBUSBUSBUSBUSBUSBUSBGetDescriptorUSBUSBUSBUSB5USBUSBUSBUSBUSBUSBUSB1.11.USBUSB;072.USBUSB3.USB4.0/USBUSB015.lUSBUSBDATA0USB11852-1bmbwbRequestbmRequestTypewvaluewIndexwIndexwLength1bit1bit2bit2bit2bit2-1USBbmRequestTypebRequestwValuewIndexwLength(2-1)82-1USB2-2USBbRequestUSBUSB2-22-2bRequest1.GetStatus(00H)Ø[ToDevice]0(019)1(0;1)2~15USBCDC0x0000Ø[ToInterface]160x0000Ø[ToEndpoint]0Halt(0;1)1~15(0)2.ClearFeature(01H)Ø[ToDevice]Ø[ToEndpoint]3.SetFeature(03H)Ø[ToDevice]Ø[ToEndpoint]4.SetAddress(05H)Ø5.GetDescriptor(06H)Ø[ToDevice]USB0FIFOUSBIDØ[ToConfiguration]USBØ[ToInterface]0Ø[ToEndpoint]0(IN/OUT)6.()SetDescriptor(07H)7.GetConfiguration(08H)8.SetConfiguration(09H)10Ø[ToConfiguration]Ø[ToInterface]Ø[ToEndpoint]9.GetInterface(0AH)10.SetInterface(0BH)11.SYNCH_FRAME(0CH)lUSBUSBUSBUSBUSB1.2.()3.4.5.Unicode2.2USBCDCUSBClassClassUSBAudioClassCommunicationsDeviceClassHIDClassVideoClassUSB[12]USBCDCUSBCDCUSBCommunicationDeviceClassSpecificationUSBCDCUSBISDNCDCCDC11USBPOTSUSBISDNUSB[13](2-2)USBCDCCDCPOSTISDNATM2-2USBCDCCDCCommunicationDevicesClassCommunicationInterfaceClass(DataInterfaceClass)USBCDCECMEEM2.2.1USBECMUSB2-3ECMCDCCDCCDCUSBUSB12USBECM2-3ECMECMlECMUSBUSBECM(2-3)USB2-3RequestCodeDescriptionSEND_ENCAPSULATED_COMMAND00hGET_ENCAPSULATED_RESPONSE01hSET_ETHERNET_MULTICAST_FILTERS40hSET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER41h13GET_ETHERNET_POWER_MANAGEMENT_PATTERN_FILTER42hSET_ETHERNET_PACKET_FILTER43hGET_ETHERNET_STATISTIC44hECMCDCSET_ETHERNET_PACKET_FILTER166(2-4)ECMSET_ETHERNET_PACKET_FILTER2-4ECM14lECMECM(2-5)ECMNETWORK_CONNECTIONRESPONSE_AVAILABLECONNECTION_SPEED_CHANGENETWORK_CONNECTIONCONNECTION_SPEED_CHANGECDC2-5ECM2.2.2EEMUSB(CRC)USBECMECMUSBUSB2-415MACMACUSB2-4EEMlEEMUSBEEMEEMEEM(2-5)EEMUSBEEM#2EEM#1USBEEM#2PART1EEM#1EEM#3EEM#2PART2EEMPART1USB#1EEMPARTN-1EEMPARTNUSB#N-1USB#NUSB#1USB#1EEMUSBEEMUSBEEMUSBEEMEEMUSB2-5EEM16EEM2-6EEMEEMbmTypebmType1bit15bitEEMbmType01EEMEEM2-6EEMUSBEEMEEMEEMEEMbmTypebmType0EEMbmType1EEM1.EEMbmCRC01bit1bit14bits2BytesbmType0EEMbmCRC01CRCCRC0xdeadbeefCRCCRC1bit1bit2-7EEMEEMbmTypebmCRCbmType0bmCRC0CRCCRC0xdeadbeef1CRCCRCUSB(2-7)USB0CRC172.EEMbmReserved0bmEEMCmdbmEEMCmdParam1bit1bit3bits11bitsbmType0EEM822-8EEMEEMEEMUSBEEMbmTypebmReservedbmEEMCmd(2-8)EEMEEMbmEEMcmd6EchoEchoresponseSuspendHintResponseHintResponseCompleteHintTickle(2-6EEM)2-6EEMØ(2-8)EEMEchoUSBEchoEEMEchoUSBEEMEchoEchoResponseEEMEchoResponse18USBUSB2-7Echo2-8EchoResponseØ2-9Ø2-102-112-12USB()EEMSuspendHintResponseHintResponseCompleteHintUSBUSBTickleUSBUSBSuspendHintResponseHintResponseCompleteHint19Tickle2-9SuspendHint2-10ResponseHint2-11ResponseCompleteHint2-12Tickle20lUSBCDCEEMEEMEEMUSBUSBUSB(2-9)USBCDCEEM2-9EEM1USB2USBUSBEEM213USBEEMUSB4USBUSBBUSUSB5USBUSB6USBUSBEEM

1 / 64
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功