资源描述:
《Android手机控制ZigBee板上LED》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Android手机控制ZigBee板上LED分类:ZigBeeAndroid2013-08-0616:39344人阅读评论(0)收藏举报环境:Windows编译器:IAREW8051-8.1硬件:CC2530协议栈:ZStack-CC2530-2.3.0-1.4.0手机:Android4.1.2又重新开始学习ZigBee技术,摸索了一哈通信流程,本例程没有涉及到ZigBee组网,读者可自行扩展。ZigBee流程如下:从串口接收指令信息,根据指令信息控制相应的LED资源,工作模式为协调器,可用GenericApp工程
2、改编,代码如下[cpp]viewplaincopyprint?1./**************************************************************************************************2.Filename:TESTApp.c3.Revised:$Date:2009-03-1815:56:27-0700(Wed,18Mar2009)$4.Revision:$Revision:19453$5.6.Description:TESTApplic
3、ation(noProfile).7.8.9.Copyright2004-2009TexasInstrumentsIncorporated.Allrightsreserved.10.11.IMPORTANT:YouruseofthisSoftwareislimitedtothosespecificrights12.grantedunderthetermsofasoftwarelicenseagreementbetweentheuser13.whodownloadedthesoftware,his/heremploy
4、er(whichmustbeyouremployer)14.andTexasInstrumentsIncorporated(the"License").Youmaynotusethis15.SoftwareunlessyouagreetoabidebythetermsoftheLicense.TheLicense16.limitsyouruse,andyouacknowledge,thattheSoftwaremaynotbemodified,17.copiedordistributedunlessembedded
5、onaTexasInstrumentsmicrocontroller18.orusedsolelyandexclusivelyinconjunctionwithaTexasInstrumentsradio19.frequencytransceiver,whichisintegratedintoyourproduct.Otherthanfor20.theforegoingpurpose,youmaynotuse,reproduce,copy,preparederivative21.worksof,modify,dis
6、tribute,perform,displayorsellthisSoftwareand/or22.itsdocumentationforanypurpose.23.24.YOUFURTHERACKNOWLEDGEANDAGREETHATTHESOFTWAREANDDOCUMENTATIONARE25.PROVIDED揂SIS?WITHOUTWARRANTYOFANYKIND,EITHEREXPRESSORIMPLIED,1.INCLUDINGWITHOUTLIMITATION,ANYWARRANTYOFMERCH
7、ANTABILITY,TITLE,2.NON-INFRINGEMENTANDFITNESSFORAPARTICULARPURPOSE.INNOEVENTSHALL3.TEXASINSTRUMENTSORITSLICENSORSBELIABLEOROBLIGATEDUNDERCONTRACT,4.NEGLIGENCE,STRICTLIABILITY,CONTRIBUTION,BREACHOFWARRANTY,OROTHER5.LEGALEQUITABLETHEORYANYDIRECTORINDIRECTDAMAGES
8、OREXPENSES6.INCLUDINGBUTNOTLIMITEDTOANYINCIDENTAL,SPECIAL,INDIRECT,PUNITIVE7.ORCONSEQUENTIALDAMAGES,LOSTPROFITSORLOSTDATA,COSTOFPROCUREMENT8.OFSUBSTITUTEGOODS,TECHNOLOGY,SERVICES,O