[Tinyos-devel] broken SensirionSht11C
Razvan Musaloiu-E.
razvanm at cs.jhu.edu
Mon Nov 6 13:45:27 PST 2006
Hi!
The error looks like this:
tinyos2auto at bluephase:~/local/src/tinyos-2.x/apps/MultihopOscilloscope$ make telosb
mkdir -p build/telosb
compiling MultihopOscilloscopeAppC to a telosb binary
ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I/home/tinyos2auto/local/src/tinyos-2.x/tos/lib/net/ -I/home/tinyos2auto/local/src/tinyos-2.x/tos/lib/net/ctp -I/home/tinyos2auto/local/src/tinyos-2.x/tos/lib/net/le -I. MultihopOscilloscopeAppC.nc -lm
In component `HplSensirionSht11C':
/home/tinyos2auto/local/src/tinyos-2.x/tos/platforms/telosa/chips/sht11/HplSensirionSht11C.nc:81: cannot find `Init'
make: *** [exe0] Error 1
tinyos2auto at bluephase:~/local/src/tinyos-2.x/apps/MultihopOscilloscope$
The changes I made to the MultihopOscilloscope are:
tinyos2auto at bluephase:~/local/src/tinyos-2.x/apps/MultihopOscilloscope$ cvs diff -u
cvs diff: Diffing .
Index: MultihopOscilloscopeAppC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/MultihopOscilloscope/MultihopOscilloscopeAppC.nc,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 MultihopOscilloscopeAppC.nc
--- MultihopOscilloscopeAppC.nc 2 Nov 2006 16:23:11 -0000 1.1.2.5
+++ MultihopOscilloscopeAppC.nc 6 Nov 2006 21:42:18 -0000
@@ -19,13 +19,14 @@
configuration MultihopOscilloscopeAppC { }
implementation {
components MainC, MultihopOscilloscopeC, LedsC, new TimerMilliC(),
- new DemoSensorC() as Sensor;
+ new SensirionSht11C() as Sensor;
+// new DemoSensorC() as Sensor;
//MainC.SoftwareInit -> Sensor;
MultihopOscilloscopeC.Boot -> MainC;
MultihopOscilloscopeC.Timer -> TimerMilliC;
- MultihopOscilloscopeC.Read -> Sensor;
+ MultihopOscilloscopeC.Read -> Sensor.Temperature;
MultihopOscilloscopeC.Leds -> LedsC;
//
cvs diff: Diffing java
tinyos2auto at bluephase:~/local/src/tinyos-2.x/apps/MultihopOscilloscope$
--
Razvan ME
More information about the Tinyos-devel
mailing list