I've bought PICDEM Z Demonstration Kit for zigbee (MRF24J40), which includes:
Two PICDEM Z demonstration boards each with an RF transceiver daughter card.
I followed AN1232 - ZigBee 2006 Protocol Stack
I've installed the demo applications for both: Coordinator and RFD and it worked well.
I want to modify the source code and add some functions, but the available codes and functions are a bit complicated.
For example ; underlined codes are new for me
Code:
case '2':
printf("\r\nHow many bytes are you requesting(hex): ");
TxBuffer[TxData++] = GetMACByte();
ZigBeeBlockTx();
params.APSDE_DATA_request.DstAddrMode = APS_ADDRESS_16_BIT
printf("\r\nWhat is the short address of device you want data from: ");
params.APSDE_DATA_request.DstAddress.ShortAddr.v[1] = GetMACByte();
params.APSDE_DATA_request.DstAddress.ShortAddr.v[0] = GetMACByte();
params.APSDE_DATA_request.RadiusCounter = DEFAULT_RADIUS;
params.APSDE_DATA_request.DiscoverRoute = ROUTE_DISCOVERY_SUPPRESS;
#ifdef I_SUPPORT_SECURITY
params.APSDE_DATA_request.TxOptions.Val = 1;
#else
params.APSDE_DATA_request.TxOptions.Val = 0;
#endif
params.APSDE_DATA_request.TxOptions.bits.acknowledged = 1;
params.APSDE_DATA_request.SrcEndpoint = 1;
params.APSDE_DATA_request.DstEndpoint = 240;
params.APSDE_DATA_request.ProfileId.Val = 0x7f01;
params.APSDE_DATA_request.ClusterId.Val = BUFFER_TEST_REQUEST_CLUSTER;
currentPrimitive = APSDE_DATA_request;
break;
/* Request Data From a group of devices */
The programme is made to operate on Hyper Terminal.. How can i change this to another GUI like Visual Basic..[/code]
Two PICDEM Z demonstration boards each with an RF transceiver daughter card.
I followed AN1232 - ZigBee 2006 Protocol Stack
I've installed the demo applications for both: Coordinator and RFD and it worked well.
I want to modify the source code and add some functions, but the available codes and functions are a bit complicated.
For example ; underlined codes are new for me
Code:
case '2':
printf("\r\nHow many bytes are you requesting(hex): ");
TxBuffer[TxData++] = GetMACByte();
ZigBeeBlockTx();
params.APSDE_DATA_request.DstAddrMode = APS_ADDRESS_16_BIT
printf("\r\nWhat is the short address of device you want data from: ");
params.APSDE_DATA_request.DstAddress.ShortAddr.v[1] = GetMACByte();
params.APSDE_DATA_request.DstAddress.ShortAddr.v[0] = GetMACByte();
params.APSDE_DATA_request.RadiusCounter = DEFAULT_RADIUS;
params.APSDE_DATA_request.DiscoverRoute = ROUTE_DISCOVERY_SUPPRESS;
#ifdef I_SUPPORT_SECURITY
params.APSDE_DATA_request.TxOptions.Val = 1;
#else
params.APSDE_DATA_request.TxOptions.Val = 0;
#endif
params.APSDE_DATA_request.TxOptions.bits.acknowledged = 1;
params.APSDE_DATA_request.SrcEndpoint = 1;
params.APSDE_DATA_request.DstEndpoint = 240;
params.APSDE_DATA_request.ProfileId.Val = 0x7f01;
params.APSDE_DATA_request.ClusterId.Val = BUFFER_TEST_REQUEST_CLUSTER;
currentPrimitive = APSDE_DATA_request;
break;
/* Request Data From a group of devices */
The programme is made to operate on Hyper Terminal.. How can i change this to another GUI like Visual Basic..[/code]