外文翻译原文-德克萨斯仪器MSP430单片机协议:乌尔合作模型发展的行业赞助的项目在红外数据协会实施的成功应用_第1页
外文翻译原文-德克萨斯仪器MSP430单片机协议:乌尔合作模型发展的行业赞助的项目在红外数据协会实施的成功应用_第2页
外文翻译原文-德克萨斯仪器MSP430单片机协议:乌尔合作模型发展的行业赞助的项目在红外数据协会实施的成功应用_第3页
外文翻译原文-德克萨斯仪器MSP430单片机协议:乌尔合作模型发展的行业赞助的项目在红外数据协会实施的成功应用_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

SessionS1B0-7803-8552-7/04/$20.002004IEEEOctober2023,2004,Savannah,GA34thASEE/IEEEFrontiersinEducationConferenceS1B-6ImplementingIrdaOnTheMsp430:AProjectDevelopmentUnderTheUndergraduateResearch/Co-OpEducationModelManuelJimenez1,andMelisaNunez-Arzuaga21ManuelJimenez,UniversityofPuertoRicoatMayaguez,ECEDepartment,Mayagez,PR00681-9042,2MelisaNunez-Arzuaga,UniversityofPuertoRicoatMayaguez,ECEDepartment,Mayagez,PR00681-9042,402004670Abstract-Thecombinationofundergraduateresearchandco-opeducationhasbeenfoundtobeaneffectivewayofbuildingsuccessfulrelationsbetweenacademiaandindustry,asreportedbytheapplicationoftheundergraduateresearch/co-opeducationalmodel(UR/Co-op)developedattheUniversityofPuertoRicoatMayagez.ThispaperillustratesthesuccessfulapplicationoftheUR/Co-opmodelfordevelopinganindustry-sponsoredprojectintheimplementationoftheInfraredDataAssociation(IrDA)protocolontheTexasInstrumentsMSP430microcontroller.Thisprotocolhasbecomethede-factoindustrystandardforshort-rangeinfrareddataexchangebetweenportablecomputingandcommunicatingdevices.WedescribehowthestructureoftheUR/Co-opeducationalmodelwasusedinthedevelopmentoftheproject,whileprovidingsometechnicaldetailsoftheprotocol,whichhighlightthestudentlearningprocess.Thediscussionillustrateshowtheapplicationofthemodelprovidedaframeworkforasymbioticrelationwhereboththesponsoringcompanyandthestudentsinvolvedbenefitintheexercise.IndexTermsCo-opexperiences,undergraduateresearch,industrycollaboration,educationalmodel.INTRODUCTIONForoverfouryears,theElectricalandComputerEngineeringDepartmentoftheUniversityofPuertoRicoatMayagezhasheld,incollaborationwithrenownedengineeringcompanies,aprogramthatcombinestraditionalcooperativeeducation(co-op)withundergraduateresearchexperiences1.Thismodelcombinestheresultsindependentlyobtainedthrougheachmechanismtoprovidestudentswitharoundedexperiencewhereresearchoutcomes,eitherintermsoflearningexperienceorparticularprojectsareappliedtoproblemsandactivitiesintheco-oppractice.Theintegrationofthesetwomodelshasproducedseveralinterestingprojects,whichunderlinethevaluablelearningexperienceitprovidestoparticipatingstudents,whileemployersandinvolvedfacultyalsobenefit.TheexperiencereportedinthispaperillustratesoneoftheprogramprojectsthewheretheaddressedproblemwasthatofimplementingtheInfraredDataAssociation(IrDA)protocolasamemoryandpowerefficientsoftwarestackforembeddedapplications.ThetargetplatformwastheMSP430,anultra-low-powermicrocontrollerunit(MCU)developedbyTexasInstruments2.TherestofthisdocumenthasbeenorganizedtoprovideanoverviewoftheUR/co-opmodel,adescriptionoftheprojectorganization,anddetailsoftheprogramlogistics.AbriefdescriptionoftheIrDAprotocolisincludedtohighlightthestudentslearningprocess.Projectimplementationandvalidationdetailsprovideinsightintothecleversolutionsprovidedbythestudentsinthehardwareandsoftwareaspects.Finally,concludingremarkssummarizetheachievementsandoutcomesfortheinvolvedparties.UNDERGRADUATERESEARCH/CO-OPMODELOVERVIEWTheUR/Co-opmodelstructureconsistsofthreestages,namelyPre-Co-op,Co-op,andPost-Co-op,organizedasillustratedinFigure1.Inthepre-co-opstage,studentsentertheprogramasundergraduateresearchassistantstoworkinafacultyassignedproject.Inthisfirststage,facultyguidancehelpsstudentstofocusontheparticularworktobedevelopedandtogaininsightintotheresearcharea.Formostparticipants,usuallyintheirsophomoreyear,thisistheirfirstundergraduateresearchexperiencewheretheybegintodevelopself-learningskills,abilitytoperformindependentwork,andtodeepentheirtechnicalbackgroundintotheproblembeingdealtwith.Intheco-opstage,secondinthemodel,studentsparticipateofaco-opexperience.Here,moststudentscontinuetoworkintheprojectstheyinitiatedbackatschooleitheraspartoftheirregularco-opassignment,orasanactivityasidefromtheirco-opduties.Inthepostco-op,thelaststageinthemodel,studentsreturntoschoolasundergraduateresearchassistants,wheretheycompletethedocumentationoftheirprojectsanddisseminatetheoutcomesoftheirwork.Activitiesintheprogramtypicallyspanforaperiodofthreeregulartermsplussummer,sincetheco-opstageisstructuredtolastforoneregularsemesterandthesummerSessionS1B0-7803-8552-7/04/$20.002004IEEEOctober2023,2004,Savannah,GA34thASEE/IEEEFrontiersinEducationConferenceS1B-7immediatelybeforeorafterit.Thisallowsstudentstofullyadapttotheirnewenvironmentbothinthecorporateandsocialaspects,tobecomefamiliarwiththeirprojects,toapplyanddeepentheirknowledgeinthechosenfield,andtofulfillmostoftheobjectivessetforthbytheirco-opsupervisors.Moreover,theprogramstructuretakesthestudentsthrougharoundedlearningexperiencebyallowingthemtodevelopbasicresearchskillsinstageone,torefineandapplythoseskillsinstagetwo,andfinallytodeveloptheircommunicationskillthroughpresentationsandtechnicalreportsinthelaststage.Co-opGeneraleducationTechnicalbackgroundFacultymentoringCompanypresenceCo-opexperienceSideprojectUndergraduateresearchUndergraduateresearchSideprojectpresentationIndustrial&academicmentorsCo-opsupervisorPre-Co-opPost-Co-opFIGURE1UR/CO-OPMODELSTRUCTURETHEIRDASTACKPROJECTTheproblemaddressedinthisprojectwasthatofdevelopingapowerandmemoryefficient,IrDAcompliantsoftwarestack,portabletoanymemberoftheMSP430family.AlthoughseverallevelsofimplementationhavebeenreportedfortheIrDAprotocol,eitherasindependentASICsorassoftmodulesfordifferentmicrocontrollerfamilies34,portingtotheMSP430hasbeenhardlyaddressed.Besidesanearlyattempttoimplementthephysicallayeroftheprotocol5,nocompleteimplementationhasbeenfoundfortheMSP430,thatincludesdiscovery,negotiation,andexchangebetweenIrDAcompliantdevices.Moreover,therequirementsofashortcodecapableofco-existingwithotherapplicationsintheMSP430memory,ofbeingportabletoallmembersofthefamily,andabletotakeadvantageofthelowpowerfeaturesavailableinthehostMCU,madetheprojectparticularlychallenging.Theserequirementsmadeitnecessaryforthestudentstodeepentheirknowledgenotonlyinembeddedsystemsprogrammingandinterfacing,butalsoondatacommunicationsprotocols,thetechnicalspecificationsoftheIrDAprotocol(over200pagesofdetails),theMSP430architecturalandprogrammingspecifications,andthecriteriaforpowermanagementwithintheMCU.ProjectLogisticsInthefirststageofthisproject,ateamofthreestudentswasassembledtoworkontheproblem.However,shortlyafter,oneofthemwithdrewfromtheproject,leavingtwostudentstocompletethework.ThesestudentsmadeanoutstandingworkinunderstandingtheIrDAprotocol,theMCUspecifications,andprototypingthestackinClanguage.Atthispoint,thepreliminaryresultswerepresentedinalocalworkshopfortheIndustrialAffiliatesProgram6.Inthisinitialphase,thecollaborationwithindustryprovidedtechnicalinformationaboutboththeIrDAstandardandtheMSP430.Inthesecondstage,onestudentwenttothesponsoringcompanyforcontinuingtotheCo-opphase.ThisstudentcontinuedtoworkintheIrDAstackprojectforherco-op,allowinghertotakeadvantageoftheknowledgegainedinthefirststage.TheCprototypeofthestack,althoughfunctional,didnotmeetthememoryrequirementsneitherfullyexploitthelow-powermodesoftheMSP430.Therefore,animplementationinassemblylanguagewasrequired.Inaccomplishingthistask,mentoringbyanindustryadvisorwasakeyfactorforsuccessoftheproject.Thenextsectionsprovideanoverviewoftheprotocolrequirementsandthedetailsofitshardwareandsoftwareimplementations.PROJECTIMPLEMENTATIONThestructureofanIrDAstackisshowninFigure2.Thefirstthreelayersbottom-upabovetheIRAdapteraremandatory,whilethoseinthoseontopofIrLMPexceptIASareoptionalprotocolsrequiredonlyforspecificapplications.DetailsofthestructureandfunctionsofeachlayerareavailableintheIrDAprotocolspecification7.IRAdapterIrPHY(PhysicalLayer)IrLAP(LinkAccessProtocolLayer)IrLMP(LinkManagementLayer)IAS(InformationAccessServices)TTP(TinyTransportProtocol)IrCOMM,OBEX,IrLAN,IrFM,etc.FIGURE2STRUCTUREOFTHEIRDASTACKDuetothememorylimitationsimposedbytherequirementofco-existencewithotherapplications,theimplementedversionoftheprotocolwastheIrDALite8.Thisspecificationisasub-setofthefullIrDAprotocol,whichprovidestheminimumrequirementsforanydevicetobeIrDAcompliant.SomeofthestrategiesusedintheSessionS1B0-7803-8552-7/04/$20.002004IEEEOctober2023,2004,Savannah,GA34thASEE/IEEEFrontiersinEducationConferenceS1B-8developmentofthisspecificationlimittheperformanceofthestack.Forexample,speedisrestrictedto9600bpsandLAPpacketsizeislimitedto64bytes.Thefollowingsubsectionsdescribethehardwareandsoftwaredesignaspectsoftheprotocol.ThehardwarecomponentsaredesignedtocomplywiththeIrPHYspecificationsandregulations,whilethesoftwarecomponentsspanoveralltheremainingstacklayers.HardwareDesignThehardwaredesignforthisapplicationfocusesontheinterfacingoftheTIMSP430F149andSHARPGP2W004YPIrDATransceiver.Figure3showsaconnectiondiagramofthehardwarecomponents.ThestackhardwarewasprototypedaroundanMSP430F149,whichprovides60KBofflashmemoryand2KBofRAM,enoughforprogramadditions,bufferingspace,andforstoringandmanipulatingtheframessentbackandforthduringdialog.Italsohassixgeneral-purpose,8-bitI/OportsandprovideswithtwoUARTsthatenablecommunicationswithacompatibleserialportinordertodevelopapplicationsforpersonalcomputers.TESTVCCP2.5/ROSCXOUTXINRSTP2.0P2.1P2.2P1.7P1.6/TA1P1.5P1.4P1.3/TA2P1.2/TA1P1.1P1.0P2.4P2.3MSP430F149GP2W004YP327683VLEDAnodeTXRXSDGndVcc3V22u0.1uVSSFIGURE3HARDWARESCHEMATICFORMCU-IRPORTCONNECTION.TheSHARPsGP2W004YPinfraredtransceiverprovidedadherencetotheIrDAv1.0ISOspecifications9.Thispartcanbepoweredfroma3.0Vsupply,allowingdirectainterfacetotheMSP430withoutadditionalexternalcircuitry.Moreover,ittakesonlythreeMCUI/Opinsfortransmit,receive,andshutdownfunctions.SoftwareDesignAllsoftwarecomponentswerewritteninMSP430assemblylanguage.ServiceprimitivesforIrPHY,IrLAPandIrLMPwereimplementedaccordingtotheIrDALitespecifications.TinyTPandIrCOMM3-Wirewereimplementedinordertoprovidewithademonstrationoftheworkingstack.Aneighty-byteFIFObufferwasimplementedtostoreincomingandoutgoingbytesintransitthroughtheIRchannel,residinginaddress0x250hthrough0x29Fh.Table1showstheRAMmemory-mapforthedataareainthisapplication.TABLE1APPLICATIONMEMORYMAP(RAM)MSP430F149RAM(2kB)09FFh-0200hBytevariables0232h-0200h50bytesforbytevariablesWordvariables0248h-0234h11wordsforwordvariablesBufferpointerIR_BUFFER029Fh-0250hStoresbytesjustreceivedortobesentinthenextframeTheimplementationofthephysicallayerwasperformedusingTimer_A.TheapproachwastodesignaunitthatwouldbehaveasaUARTbutwouldprocessdatareceivedfromandsenttotheIRtransceiver.Thedutycycleis3/16thofapulseasspecifiedintheIrPHYdocumentation.Thetransmissionandreceptionschemesareverysimilar.TheIrLAPlayerwasimplementedasasetoffunctionsperformingallthetasksdescribedbytheprimitivesandstatetablesoftheIrDALitespecification.Thehandlingofframesbeginsbyidentifyingtheframetype.Threetypesofframesaresupported:supervisory(S),information(I)orunnumbered(U).Identificationisperformedbyparsing.Oncetheframeisidentified,programcontrolistransferredtothecorrespondinghandlingroutines.TheimplementationoftheIrLMPlayeradherestotheIrDALitespecificationsaswell.Thislayerverifiesthecorrectnessofallfieldsandensuresthatservicesrequestedbythepeerarecorrectlysupported.Italsoprovidestheframeformatthatcarriesthedatatobeexchangedbythetwocommunicatingdevices.TheIASservicesprovideatypeofyellowpagesthatstoreinformationaboutotherdevices.Italsoprovidesinformationabouttheservicessupportedbytheimplementation.TheoperationofTinyTPinvolvestheexchangeofProtocolDataUnits(TTP-PDUs)fornegotiationandflowcontrol.ThiseffectivelyaddsasingleoctetofheadertotheIrLMP-MUXdatausedtoconveyincrements(credits)tothenumberofTTP-PDUsframesthatmaybeexchangedineachdirectionusingtheunderlyingLM_Dataservice.ConnectTTP-PDUsexchangedduringconnectionestablishmentarenotregardedasrequiringorconsumingcredit.Segmentationandreassemblyarenotimplemented.SincetheIrLAPwindowsizeisequaltoone,asingleTinyTPconnectioncantakefulladvantageoftheunderlyingIrLAPwindow.Forthepurposeofthisparticularimplementation,whentheinitialTinyTPconnectionframeisidentified,acreditisissuedsothatthepeerentitycantransferitsdata.AftertheMSP430respondsandhasreceivedanRRcommandfromtheprimary,itthenissuesmorecreditforthepeerentitytocontinuetransmittingdata.SessionS1B0-7803-8552-7/04/$20.002004IEEEOctober2023,2004,Savannah,GA34thASEE/IEEEFrontiersinEducationConferenceS1B-9IrCOMMsservicesarethesameasthoseprovidedbytheIrLMPlayer.IrCOMMcallstheservicesprovidedbytheservicelayer,andthiscallpropagatesdownthestack.IrCOMMusesthedataPDUsfromIrLMPtotransmitalldataandcontrolchannelinformation.TestingtheStackGiventhenatureoftheapplication,theIrDAstackneededtobetestedforcompatibilitywiththeoperatingsystemsthatmakethemostuseofIrDA,namelyLinux,Windows,andPalmOS.InordertoassessthecompatibilitywiththeLinuxplatformthedriverIrCOMM2kwasused.Thisdriver,developedbyJanKiszka,portstheLinuxIrDAstacktoWindows10.AnotherimportantelementwasthenetworkanalyzerEthereal.Etherealcountswithplug-inswiththecapabilityofparsingIrDAframesinordertosimplifythedebuggingprocess.Thecombinationofthesetwoelementswascrucialforthetestanddebugphaseoftheproject,allowingtoverifythecompatibilitythroughtheuseoftheIrCOMM2kdriver.AnapplicationwasdevelopedusingtheIrCOMMsocketsprovidedbyWindows.ThisapplicationdidnotrequiretheuseofIrCOMM2kandfunctionsexclusivelywiththeservicesprovidedbyWindows.Inordertotestthisapplication,abufferinRAMstoredtheframesexchangedbythedevices.Thisallowedthedebuggertoseetheframesandcheckforerrors.SomeproblemswerefoundbutsolutionswereimplementedwhichallowedsimultaneousfunctionalityfortheLinuxandWindowsIrDAstacks.ThePalmOSstackwastestedinthesamewayastheWindowsstack.ThetestsweresuccessfulcorroboratingcompatibilityoftheIrDAstack.CONCLUSIONANDFUTUREWORKAprojectdevelopmentintheimplementationoftheIrDAprotocolontheMSP430hasbeenpresented,illustratingthetypesofprojectsthatcanbecarriedunderacombinedco-opundergraduateresearcheducationalmodel.Theparticularapplicationofthemodelallowedtheparticipatingstudentstohavearoundedexperiencewhichincludedstudyandbackgrounddevelopment,identifyingopportunitiestoimprovepreviousproblemapproaches,implementing,finetuning,andtestingtheirsolutions,applyingtheminacorporateenvironment,andlaterdisseminatingtheirknowledge.ThesponsoringindustrypartnerwasabletodocumenttroughtheprojectanapplicationreportonthetaskofimplementingacompleteworkingversionoftheIrDAprotocolonthetargetMCUfamily,andproducedapotentialin-jobtrainedrecruit.Thestudentsworkingintheprojectsurelygainedanexperiencethatwilllivewiththemforever.CurrentlytheyarestillatschoolcompletingtheirbachelorsdegreesinEEandCE,consideringthedevelopmentofthetestingset-uptoobtainanofficialIrDAcertificationfortheprotocolimplementation,andenjoyingthesatisfactionofhavingcompletedajobwelldone.ACKNOWLEDGMENTSTheauthorswouldliketothankMarkBucciniandMikeMitchellattheASPDivisioninTexasInstruments,Dallas,TXfortheirvaluablehelpinthedevelopmentofth

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论