[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/tkn154/TestStartSync/device TestDeviceC.nc, 1.1, 1.2 TestStartSyncAppC.nc, 1.1, 1.2
Jan-Hinrich Hauer
janhauer at users.sourceforge.net
Wed Mar 4 10:32:02 PST 2009
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/tkn154/TestStartSync/coordinator TestCoordC.nc, 1.1, 1.2 TestStartSyncAppC.nc, 1.1, 1.2
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/mac/tkn154 DebugC.nc, NONE, 1.1 DebugP.nc, NONE, 1.1 SlottedFrameDispatchP.nc, NONE, 1.1 TKN154BeaconEnabledP.nc, NONE, 1.1 TKN154NonBeaconEnabledP.nc, NONE, 1.1 UnslottedFrameDispatchP.nc, NONE, 1.1 AssociateP.nc, 1.4, 1.5 BeaconSynchronizeP.nc, 1.7, 1.8 BeaconTransmitP.nc, 1.6, 1.7 CoordBroadcastP.nc, 1.3, 1.4 CoordRealignmentP.nc, 1.1, 1.2 DataP.nc, 1.2, 1.3 DisassociateP.nc, 1.2, 1.3 FrameDispatchQueueP.nc, 1.1, 1.2 IndirectTxP.nc, 1.3, 1.4 PibP.nc, 1.4, 1.5 PollP.nc, 1.2, 1.3 PromiscuousModeP.nc, 1.2, 1.3 RadioClientC.nc, 1.2, 1.3 RadioControlImplP.nc, 1.2, 1.3 RadioControlP.nc, 1.1, 1.2 README.txt, 1.4, 1.5 RxEnableP.nc, 1.4, 1.5 ScanP.nc, 1.2, 1.3 SimpleTransferArbiterP.nc, 1.2, 1.3 TKN154_MAC.h, 1.3, 1.4 TKN154_PIB.h, 1.2, 1.3 TransferClientP.nc, 1.3, 1.4 FrameDispatchP.nc, 1.3, NONE TKN154_DEBUG.h, 1.4, NONE TKN154P.nc, 1.6, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/tkn154/TestStartSync/device
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv17605/apps/tests/tkn154/TestStartSync/device
Modified Files:
TestDeviceC.nc TestStartSyncAppC.nc
Log Message:
- re-designed the radio driver interfaces, restructured/improved the CC2420 radio driver
- split the main MAC configuration (was TKN154P.nc) in two: one for beacon-enabled mode the other for nonbeacon-enabled mode (this decision has to be made at compile time now)
- added (serial) debugging functions (compile with "TKN154_DEBUG=1 make telosb" and use the java PrintfClient, see tinyos-2.x/apps/tests/TestPrintf/README.txt)
- improved readability, added comments
Index: TestDeviceC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/tkn154/TestStartSync/device/TestDeviceC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestDeviceC.nc 21 Jul 2008 15:18:17 -0000 1.1
--- TestDeviceC.nc 4 Mar 2009 18:31:00 -0000 1.2
***************
*** 59,63 ****
event void Boot.booted() {
! call MLME_RESET.request(TRUE, BEACON_ENABLED_PAN);
}
--- 59,63 ----
event void Boot.booted() {
! call MLME_RESET.request(TRUE);
}
***************
*** 70,74 ****
void startApp()
{
! ieee154_phyChannelsSupported_t supportedChannels;
uint8_t scanDuration = BEACON_ORDER;
--- 70,74 ----
void startApp()
{
! ieee154_phyChannelsSupported_t scanChannels;
uint8_t scanDuration = BEACON_ORDER;
***************
*** 76,80 ****
// as a parameter to make system ("make install,X")
call MLME_SET.macShortAddress(TOS_NODE_ID);
! supportedChannels = call MLME_GET.phyChannelsSupported();
// setting the macAutoRequest attribute to TRUE means
--- 76,81 ----
// as a parameter to make system ("make install,X")
call MLME_SET.macShortAddress(TOS_NODE_ID);
! scanChannels = call MLME_GET.phyChannelsSupported();
! //scanChannels = (uint32_t) 1 << RADIO_CHANNEL;
// setting the macAutoRequest attribute to TRUE means
***************
*** 84,88 ****
call MLME_SCAN.request (
PASSIVE_SCAN, // ScanType
! supportedChannels, // ScanChannels
scanDuration, // ScanDuration
0x00, // ChannelPage
--- 85,89 ----
call MLME_SCAN.request (
PASSIVE_SCAN, // ScanType
! scanChannels, // ScanChannels
scanDuration, // ScanDuration
0x00, // ChannelPage
Index: TestStartSyncAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/tkn154/TestStartSync/device/TestStartSyncAppC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestStartSyncAppC.nc 21 Jul 2008 15:18:17 -0000 1.1
--- TestStartSyncAppC.nc 4 Mar 2009 18:31:00 -0000 1.2
***************
*** 38,55 ****
} implementation {
! components MainC, LedsC, Ieee802154MacC as Ieee802154MacC;
components TestDeviceC as App;
! App.MLME_SCAN -> Ieee802154MacC;
! App.MLME_SYNC -> Ieee802154MacC;
! App.MLME_BEACON_NOTIFY -> Ieee802154MacC;
! App.MLME_SYNC_LOSS -> Ieee802154MacC;
! App.BeaconFrame -> Ieee802154MacC;
MainC.Boot <- App;
App.Leds -> LedsC;
! App.MLME_RESET -> Ieee802154MacC;
! App.MLME_SET -> Ieee802154MacC;
! App.MLME_GET -> Ieee802154MacC;
#ifdef PRINTF_ENABLED
--- 38,55 ----
} implementation {
! components MainC, LedsC, Ieee802154BeaconEnabledC as MAC;
components TestDeviceC as App;
! App.MLME_SCAN -> MAC;
! App.MLME_SYNC -> MAC;
! App.MLME_BEACON_NOTIFY -> MAC;
! App.MLME_SYNC_LOSS -> MAC;
! App.BeaconFrame -> MAC;
MainC.Boot <- App;
App.Leds -> LedsC;
! App.MLME_RESET -> MAC;
! App.MLME_SET -> MAC;
! App.MLME_GET -> MAC;
#ifdef PRINTF_ENABLED
- Previous message: [Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/tkn154/TestStartSync/coordinator TestCoordC.nc, 1.1, 1.2 TestStartSyncAppC.nc, 1.1, 1.2
- Next message: [Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/mac/tkn154 DebugC.nc, NONE, 1.1 DebugP.nc, NONE, 1.1 SlottedFrameDispatchP.nc, NONE, 1.1 TKN154BeaconEnabledP.nc, NONE, 1.1 TKN154NonBeaconEnabledP.nc, NONE, 1.1 UnslottedFrameDispatchP.nc, NONE, 1.1 AssociateP.nc, 1.4, 1.5 BeaconSynchronizeP.nc, 1.7, 1.8 BeaconTransmitP.nc, 1.6, 1.7 CoordBroadcastP.nc, 1.3, 1.4 CoordRealignmentP.nc, 1.1, 1.2 DataP.nc, 1.2, 1.3 DisassociateP.nc, 1.2, 1.3 FrameDispatchQueueP.nc, 1.1, 1.2 IndirectTxP.nc, 1.3, 1.4 PibP.nc, 1.4, 1.5 PollP.nc, 1.2, 1.3 PromiscuousModeP.nc, 1.2, 1.3 RadioClientC.nc, 1.2, 1.3 RadioControlImplP.nc, 1.2, 1.3 RadioControlP.nc, 1.1, 1.2 README.txt, 1.4, 1.5 RxEnableP.nc, 1.4, 1.5 ScanP.nc, 1.2, 1.3 SimpleTransferArbiterP.nc, 1.2, 1.3 TKN154_MAC.h, 1.3, 1.4 TKN154_PIB.h, 1.2, 1.3 TransferClientP.nc, 1.3, 1.4 FrameDispatchP.nc, 1.3, NONE TKN154_DEBUG.h, 1.4, NONE TKN154P.nc, 1.6, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-2-commits
mailing list