



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2002年江苏省连云港市中考数学真题【含答案、解析】
- 考研复习-风景园林基础考研试题必考题附答案详解
- 风景园林基础考研资料试题及答案详解【各地真题】
- 《风景园林招投标与概预算》试题A附参考答案详解【研优卷】
- 2025-2026年高校教师资格证之《高等教育法规》通关题库附参考答案详解(a卷)
- 2024年济南演艺集团有限责任公司人员招聘笔试备考题库及答案详解一套
- 民事检察和解制度研究
- “智能低空·融合创新”2025年智能化测绘无人机技术交流会在南昌召开
- 2025年公基常识试题及答案解析(180题)
- 2024年演出经纪人之演出经纪实务押题练习试卷完整
- 校企合作员工培训协议
- 民族团结主题班会
- 长郡教育集团2025届中考生物适应性模拟试题含解析
- 2025-2030全球自组网芯片行业调研及趋势分析报告
- 2025年异位妊娠诊断与治疗策略研究综述
- DB3301T 0442-2024 非物质文化遗产西湖绸伞制作技艺
- 《社会保障概论》期末考试复习题库(含答案)
- 【MOOC】《研究生英语科技论文写作》(北京科技大学)中国大学MOOC慕课答案
- 人工智能与产业链供应链安全
- 飞行签派员定期复训:签派资源管理
- 智研咨询发布-2024年中国室内定位技术行业市场运行态势及发展趋势预测报告
评论
0/150
提交评论