Skip to content

tomxue/Zigbee_Webee_CC2530

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Code examples:

    (1) light_switch: Webee book page 114~129, and switch between below codes for both ends.
        //appSwitch();      //节点为按键S1      P0_0
        appLight();         //节点为指示灯LED1   P1_0

    (2) per_test: Webee book page 130~145, and switch between below codes for both ends.
        //#define MODE_SEND   1

        //看MODE_SEND,go to definition,找到定义的地方
        //把那行代码注释掉就是接收部分,不注释就是发送
        #ifdef MODE_SEND
            appMode = MODE_TX;
        #else
            appMode = MODE_RX;
        #endif  
	
	(3) SampleApp: UART print out of one kit, page 159~171, one kit is used
		<1> Select CoordinatorEB in IAR
		<2> Use IAR "Download and Debug", and then check the UART monitor's output
		
	(4) SampleApp: key press experiment, page 172~187, one kit is used
		<1> Select CoordinatorEB in IAR
		<2> Use IAR "Download and Debug", and then check the UART monitor's output
		<3> IAR settings change:
		IAR -> Project -> Options -> Linker -> Extra Options:
		-C $PROJ_DIR$\..\..\..\Libraries\TI2530DB\bin\Router-Pro.lib
		-C $PROJ_DIR$\..\..\..\Libraries\TI2530DB\bin\Security.lib
		-C $PROJ_DIR$\..\..\..\Libraries\TIMAC\bin\TIMAC-CC2530.lib
		
		should be changed to like this, and  then works.
		
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TI2530DB\bin\Router-Pro.lib
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TI2530DB\bin\Security.lib
		-C C:\ti\ZStack-CC2530-2.5.1a\Projects\zstack\Libraries\TIMAC\bin\TIMAC-CC2530.lib

		<4> The key is mapped to P0.4, and we should solder a flying wire on it, then touch the wire to GND to trigger the key event.
		
		<4> To generate hex(if not use above "Download and Debug" method), please refer to this link:
			http://blog.csdn.net/liyvhg/article/details/6455403
			And I have save it to my Wiznote.
			

About

TI official Zstack and Webee example codes, just for learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages