Hey Sarfraz, Thanxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx! Thanx bro. You singlehandedly gave our whole research project a kick start!
Cricket is working and TOSSIM for cricket is also working. Because Blink compiles and typing make pc (compiling for TOSSIM also works). But I have one further query....does TOSSIM simulate for ultrasound components? I know that it compiles for all other components including radio. But for interfaces like "UltrasoundControl" does it compile? So far its giving error messages like below In file included from Transmiter.nc:10: In component `TransmiterM': TransmiterM.nc:15: interface UltrasoundControl not found TransmiterM.nc: In function `StdControl.start': TransmiterM.nc:51: interface has no command or event named `SetGain' TransmiterM.nc: In function `RadioSendCoord.byte': TransmiterM.nc:109: interface has no command or event named `SendPulse' TransmiterM.nc: At top level: TransmiterM.nc:114: `PulseDetected' is not in interface `UltrasoundControl' TransmiterM.nc:119: `DetectorTimeout' is not in interface `UltrasoundControl' In component `Transmiter': Transmiter.nc:11: component UltrasoundControlM not found Transmiter.nc:12: component CC1000RadioIntM not found Transmiter.nc:22: cannot find `RadioSendCoordinator' Transmiter.nc:23: no match make: *** [build/pc/main.exe] Error 1 [EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Cricket/Cricket_buddika/thai/USTransmit$ I greatly appreciate your help. prashan On Mon, Mar 3, 2008 at 5:07 PM, Sarfraz Nawaz <[EMAIL PROTECTED]> wrote: > This is probably due to a missing flag -fnesc-nido-tosnodes in your > cricket_pc.target file under tinyos-1.x/tools/make directory. This is > how my cricket_pc.target file looks like, > > PLATFORM = cricket_pc > SENSORBOARD ?= micasb > OPTFLAGS = -g -O0 > NESC_NIDO_TOSNODES ?= 1000 > PFLAGS += -pthread -fnesc-nido-tosnodes=$(NESC_NIDO_TOSNODES) > -fnesc-simulate > > BUILD_DEPS ?= exe > > > > cricket_pc: $(BUILD_DEPS) > @: > > > I hope it helps. > > On 3/3/08, prashan wanigasekara <[EMAIL PROTECTED]> wrote: > > When I compile for TOSSIM i get the following errors (I am using > > tinyos-1.xand simulating for the Cricket platform) > > > > In file included from /opt/tinyos-1.x > /tos/platform/cricket_pc/hardware.h:43, > > from /opt/tinyos-1.x/tos/system/tos.h:144: > > /opt/tinyos-1.x/tos/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared > here > > (not in a function) > > /opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for > `TOSNODES' > > not integer constant > > In component `Main': > > /opt/tinyos-1.x/tos/platform/pc/Main.nc:55: cannot find `PowerState' > > make: *** [build/cricket_pc/main.exe] Error 1 > > [EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Blink$ > > > > > > These arise when I compile for the Blink application. I am not sure but > I > > think these are general errors that others would encounter for any > platform. > > Can anybody help me to fix these errors. I greatly appreciate your help. > > > > prashan > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
