Hi all, 

I have the same prob with Vijayant. When I call "make
micaz sim" then it can only generate the latest object
that I  declared. I mean in Vijayant's case only the
RadioCountData.py, .java, .class were created. I
havent figure out why it happens like that. 

Right now, my solution is typing those command in the
shell (cygwin window) to have all of those classes. 

I 'd appreciate if anyone can help us solve the prob
of makefile. 

Thanks in advance, 

Phuong.

--- Vijayant Bhatnagar <[EMAIL PROTECTED]>
wrote:

> it seems that there is some problem with our
> makefile. can anyone help us
> please ?
> 
> Regards,
> Vijayant
> 
> On Dec 8, 2007 4:56 AM, Vijayant Bhatnagar
> <[EMAIL PROTECTED]>
> wrote:
> 
> > I am somehow debugging this problem :
> >
> > Basically i have two structs like :
> >
> > typedef nx_struct radio_count_msg {
> >   nx_uint16_t type;
> >   nx_uint16_t data1;
> >   nx_uint16_t data2;
> > } radio_count_msg_t;
> >
> > typedef nx_struct radio_count_data {
> >   nx_uint16_t type;
> >   nx_uint16_t data;
> > } radio_count_data_t;
> >
> >
> >
> > I have made my makefile as :
> > COMPONENT=RadioCountToLedsAppC
> > BUILD_EXTRA_DEPS = RadioCountMsg.py
> RadioCountMsg.class
> >
> >
> > RadioCountMsg.py: RadioCountToLeds.h
> >     mig python -target=$(PLATFORM) $(CFLAGS)
> > -python-classname=RadioCountMsg RadioCountToLeds.h
> radio_count_msg -o $@
> >
> > RadioCountMsg.class: RadioCountMsg.java
> >     javac RadioCountMsg.java
> >
> > RadioCountMsg.java: RadioCountToLeds.h
> >     mig java -target=$(PLATFORM) $(CFLAGS)
> -java-classname=RadioCountMsg
> > RadioCountToLeds.h radio_count_msg -o $@
> > #include $(MAKERULES)
> >
> > BUILD_EXTRA_DEPS = RadioCountData.py
> RadioCountData.class
> > RadioCountData.py: RadioCountToLeds.h
> >     mig python -target=$(PLATFORM) $(CFLAGS)
> > -python-classname=RadioCountData
> RadioCountToLeds.h radio_count_msg -o $@
> >
> > RadioCountData.class: RadioCountData.java
> >     javac RadioCountData.java
> >
> > RadioCountData.java: RadioCountToLeds.h
> >     mig java -target=$(PLATFORM) $(CFLAGS)
> -java-classname=RadioCountData
> > RadioCountToLeds.h radio_count_msg -o $@
> >
> >
> > include $(MAKERULES)
> >
> >
> > But when I saw my .java and .py files,
> RadioCountData has the same
> > structure as that of Radiocountmsg ! Why is it
> like that ?
> > e.g.
> >    
>
/////////////////////////////////////////////////////////
> >     // Accessor methods for field: data1
> >     //   Field type: int, unsigned
> >     //   Offset (bits): 16
> >     //   Size (bits): 16
> >    
>
/////////////////////////////////////////////////////////
> >
> >     /**
> >      * Return whether the field 'data1' is signed
> (false).
> >      */
> >     public static boolean isSigned_data1() {
> >         return false;
> >     }
> >
> >     /**
> >      * Return whether the field 'data1' is an
> array (false).
> >      */
> >     public static boolean isArray_data1() {
> >         return false;
> >     }
> >
> >     /**
> >      * Return the offset (in bytes) of the field
> 'data1'
> >      */
> >     public static int offset_data1() {
> >         return (16 / 8);
> >     }
> >  etc....
> >
> > it should have been offset_data and not
> offset_data1.
> >
> >
> >
> >
> >
> >
> >
> > This is the call that i am doing from my packet.py
> file:
> > msg = RadioCountMsg()
> > msg.set_data2(7);
> > pkt = t.newPacket();
> > pkt.setData(msg.data)
> > pkt.setType(msg.get_amType())
> > pkt.setDestination(2)
> >
> > print "Delivering ", msg, " to 0 at "; #,
> str(t.time() + 3);
> > pkt.deliver (2, t.time() + 3)
> >
> > for i in range(0, 200):
> >   t.runNextEvent();
> >
> >   #RadioCountMsg works well.
> >
> >
> > msg = RadioCountData()
> > msg.set_type(1);
> > msg.set_data(55);
> > pkt = t.newPacket();
> > pkt.setData (msg.data);
> > pkt.setType(msg.get_amType())
> > pkt.setDestination(3);
> > pkt.setSource(6);
> > print "Delivering ", msg, " to 0 at "; #,
> str(t.time() + 3);
> > pkt.deliver(1, t.time() + 3)
> >
> > for i in range(0, 200):
> >   t.runNextEvent();
> >
> >
> >
> >
> >
> >
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Vijayant
> >
> >
> >
> > On Dec 7, 2007 8:43 PM, Vijayant Bhatnagar <
> [EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi Ricardo,
> > > I saw my code and I found that I am indeed
> having this line :
> > > print "Delivering ", msg, " to 3 at "; #,
> str(t.time() + 3);
> > > pkt.deliver(3, t.time() + 10000000000*3). The
> same piece of code works
> > > for RadioCountMsg structure (given in the
> tutorial) but it doesnt work for
> > > my RadioCountData.
> > >
> > > I checked the .java files too. The interface
> calls are good. I am not
> > > getting any warning / error. Is it possible that
> the packet must be getting
> > > dropped ? I guess this shouldnt be true because,
> RadioCountMsg structure is
> > > working perfectly.
> > >
> > > Any help is appreciated.
> > >
> > >
> > > Regards,
> > > Vijayant
> > >
> > >
> > > On Dec 7, 2007 7:17 PM, Ricardo Tiago <
> [EMAIL PROTECTED]> wrote:
> > >
> > > > Add this to the python file:
> > > >
> > > > print "Delivering application packet" +
> str(msg) + " to 3 at " +
> > > > str(t.time() + 10000000000*3);
> > > > pkt.deliver(3, t.time() + 10000000000*3)
> 
=== message truncated ===>
_______________________________________________
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
>
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to