



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- DB14-T 3319-2025 中药材产地趁鲜切制技术规程 赤芍
- 中医的体质与养生小清新
- 机动车抵押债权转让与支付协议范本
- 国际劳务输出企业派遣海外销售代表合同
- 墓地迁移项目招投标合作协议
- 茶园茶叶种植与茶叶茶具销售承包管理合同
- 房屋租赁市场分析合同范本
- 2025年房产评估师职业资格考试试题及答案
- 2025年法律职业资格考试题库及答案
- 2024年合金管资金筹措计划书代可行性研究报告
- 解除终止劳动合同证明书适用基层、管理同用
- GB/T 10810.5-2025眼镜镜片第5部分:表面耐磨试验方法
- 2025年山西华阳新材料科技集团有限公司招聘笔试参考题库含答案解析
- 2025届山东省青岛市高三一模考试地理试题(原卷版+解析版)
- 2025年中职建筑cad技能比赛试题及答案
- 2025年中考语文文言文古诗词默写(含答案)
- 2025年汽车维修工(技师)职业技能鉴定理论考试题库(含答案)
- 【高中英语】2025年高考英语作文预测(10大主题+55篇范文)下
- 主播签约合同范本
- 精神科门急诊的管理
- 《复杂系统理论》课件
评论
0/150
提交评论