Sorry... I mean the AM type.

Kevin

On 9/6/07, Kevin Klues <[EMAIL PROTECTED]> wrote:
> Open up the java file generated by mig and verify that the AM address
> has the same value you secified in the .h file.
>
> Kevin
>
> On 9/6/07, John Griessen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I followed Lesson 4 to get a good compile of a message class, but I must
> > have something still not matching...  I use the c++ serial forwarder sf
> > and it reports packets flowing from /dev/ttyUSB1 to localhost:9001 and
> > all written none dropped so they are consumed by something(MsgReader), and
> > java net.tinyos.tools.MsgReader -comm [EMAIL PROTECTED]:9002 
> > MoistureSensorsMsg
> > runs and gives no error messages.
> >
> > It gives no output at all...
> >
> > Any ideas why not?   (Probably the type of message doesn't match
> > still... but how?)
> >
> > Should -target=null?
> >
> > The Makefile used to compile the message class was:
> > ================================
> > COMPONENT=ReadMoistureSensorsC
> > SENSORBOARD=a2d12ch
> >
> > BUILD_EXTRA_DEPS=MoistureSensorsMsg.class
> > MoistureSensorsMsg.class:  MoistureSensorsMsg.java
> >         javac MoistureSensorsMsg.java
> >
> > MoistureSensorsMsg.java:
> >         mig java -target=null -java-classname=MoistureSensorsMsg
> > ReadMoistureSensors.h MoistureSensorsMsg -o $@
> >
> > include $(MAKERULES)
> > ==============================
> >
> > The ReadMoistureSensors.h file was:
> > ========================
> > #ifndef READMOISTURESENSORS_H
> > #define READMOISTURESENSORS_H
> >
> > enum {
> >    TIMER_PERIOD_MILLI = 1350,
> > //  AM_TYPE_MOISTURESENSORSMSG = 6,
> >    AM_MOISTURESENSORSMSG = 6,
> >    TOS_NODEID = 22
> > };
> > typedef nx_struct MoistureSensorsMsg {
> >    nx_uint16_t nodeid;
> >    nx_uint16_t adc00; // bank 0, channel 0
> >    nx_uint16_t adc01; // bank 0, channel 1
> >    nx_uint16_t adc02; // bank 0, channel 2
> >    nx_uint16_t adc03; // bank 0, channel 3
> >    nx_uint16_t adc04; // bank 0, channel 4
> >    nx_uint16_t adc05; // bank 0, channel 5
> >    nx_uint16_t adc10; // bank 1, channel 0
> >    nx_uint16_t adc11; // bank 1, channel 1
> >    nx_uint16_t adc12; // bank 1, channel 2
> >    nx_uint16_t adc13; // bank 1, channel 3
> >    nx_uint16_t adc14; // bank 1, channel 4
> >    nx_uint16_t adc15; // bank 1, channel 5
> >    nx_uint16_t timestamp;
> > } MoistureSensorsMsg;
> > #endif
> > ============================
> >
> > Thanks,
> >
> > John Griessen
> > --
> > Ecosensory
> > tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
>
>
> --
> ~Kevin
>


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

Reply via email to