全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 地质学实训报告
- 老年综合评估技术
- 生产部门内控制度设计
- 售后服务方案设计与实施
- 试用期签试用期协议书
- 火箭快船达成协议书
- 伊朗在核协议书
- 中美协议书期货
- 2025年苏课新版三年级化学上册月考考试试题及答案
- 2025版风湿病常见症状及护理建议详解
- 2025年贵州省贵阳市辅警考试真题及答案
- 岩棉硅酸钙板墙施工方案
- 《2025年充电桩项目投资合作协议》
- 2025年6月25日生效的欧盟REACH法规250项SVHC高度关注物质清单
- 学堂在线 大国航母与舰载机 章节测试答案
- 【MOOC】《研究生英语科技论文写作》(北京科技大学)中国大学MOOC慕课答案
- GB/T 30733-2014煤中碳氢氮的测定仪器法
- DB37-T 5026-2022《居住建筑节能设计标准》
- 物料清单(BOM)建立维护管理规范
- 汽车发动机设计,课程设计
- (花三实)2020年乐童计划实施方案
评论
0/150
提交评论