Hi to all,
I have tinyOS 2.1 and I use nesc to program telosb mote.I must use usart0 to 
make receive/send from a device  and in the same time I must write on flash and 
I must hear lan radio for receiving packet.I have read TEP 108 about resource 
Arbitration and I know that I have to use arbiter .I am studying the example 
testfcfsarbiter and testroundrobinarbiter in apps/tests/arbiter and I am 
understanding only in part .On telosb uart0 ,flash and radio bus is one bus.
How to connect :
components CC2420ControlP as rete;
components new Msp430Uart0C() as Seriale0;
components Stm25pSectorC as disco;

to arbiter ?
For the moment I do :

#define TEST_ARBITER_RESOURCE   "Test.Arbiter.Resource"
configuration TestFcfsArbiterAppC{
}
implementation {
  components MainC, TestFcfsArbiterC as App,LedsC,
     new TimerMilliC() as Timer0,
     new TimerMilliC() as Timer1,
     new TimerMilliC() as Timer2,
     new FcfsArbiterC(TEST_ARBITER_RESOURCE) as Arbiter;
     
  components CC2420ControlP as rete;
  components new Msp430Uart0C() as Seriale0;
  components Stm25pSectorC as disco;
  
    
  enum {
    RESOURCE0_ID = unique(TEST_ARBITER_RESOURCE),
    RESOURCE1_ID = unique(TEST_ARBITER_RESOURCE),
    RESOURCE2_ID = unique(TEST_ARBITER_RESOURCE),
  };

  


  App -> MainC.Boot;
  
  
  App.Resource0->rete.Resource;
  App.Resource1->Seriale0.Resource;
  App.Resource2->disco.ClientResource[1];
  
 
  App.Resource0 -> Arbiter.Resource[RESOURCE0_ID];
  App.Resource1 -> Arbiter.Resource[RESOURCE1_ID];
  App.Resource2 -> Arbiter.Resource[RESOURCE2_ID];
  
  App.Timer0 -> Timer0;
  App.Timer1 -> Timer1;
  App.Timer2 -> Timer2;
  
  App.Leds -> LedsC;
}


but I have the following error : 

gior...@giorgio-desktop:src$ make telosb
mkdir -p build/telosb                   
    compiling TestFcfsArbiterAppC to a telosb binary
ncc -o build/telosb/main.exe  -O0 -O -mdisable-hwmul -Wall -Wshadow -Wnesc-all 
-target=telosb -fnesc-cfile=build/telosb/app.c -board= -
DDEFINED_TOS_AM_GROUP=0x22 -Ibuild/telosb -DCC2420_DEF_RFPOWER=3  -
DCC2420_DEF_CHANNEL=18 -DIDENT_APPNAME=\"TestFcfsArbiter\" -
DIDENT_USERNAME=\"giorgio\" -DIDENT_HOSTNAME=\"giorgio-desktop\" -
DIDENT_USERHASH=0x39fe26ceL -DIDENT_TIMESTAMP=0x4a4b5583L -
DIDENT_UIDHASH=0xc7bcdc0fL  TestFcfsArbiterAppC.nc -lm
nesc1: warning: calls to Resource2.isOwner in TestFcfsArbiterC fan out, but 
there is no combine function specified for the return type
nesc1: warning: calls to Resource0.isOwner in TestFcfsArbiterC fan out, but 
there is no combine function specified for the return type
nesc1: warning: calls to Resource1.isOwner in TestFcfsArbiterC fan out, but 
there is no combine function specified for the return type
In component `CC2420ControlP':
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc: In function 
`CC2420Config.sync':
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc:308: 
SyncResource.request not connected
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc: In function 
`Resource.release':
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc:181: CSN.set not 
connected
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc:182: 
SpiResource.release not connected
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc: In function 
`Resource.request':
/opt/tinyos-2.1.0/tos/chips/cc2420/control/CC2420ControlP.nc:172: 
SpiResource.request not connected
make: *** [exe0] Errore 1
gior...@giorgio-desktop:src$



what I must to do to use correctly the arbiter to use radio,flash and uart0 in 
multiplexed way ?

Thanks in advance


Giorgio Galassi








_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to