Suppose you have the header file RadioCountToLeds.h (RadioCountToLeds pgm in
apps)

you have the structure


typedef nx_struct radio_count_msg {
nx_uint16_t counter;
}* radio_count_msg_t*;


then follow the command

*$ mig java -target=null -java-classname -o filename.java  headerfilename.h msg
structurename*
*
*
where
headerfilename -> *RadioCountToLeds.h**
*

msg structure name -> *radio_count_msg_t*


then

$ javac *filename.java*
*
*
The above command will create a class file in the same folder*
*
*
*
*$ java net.tinyos.tools.MsgReader filename.class -comm serial@
/dev/ttyUSB1:iris**
*

where
filename.class-> denotes the class file name


you will get the output if you follow above steps properly.




On Thu, Jan 13, 2011 at 1:30 AM, <
[email protected]> wrote:

> Send Tinyos-help mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tinyos-help digest..."
>
>
> Today's Topics:
>
>   1. Re: Problem with MIG (Mitii)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 12 Jan 2011 07:23:08 -0800 (PST)
> From: Mitii <[email protected]>
> Subject: Re: [Tinyos-help] Problem with MIG
> To: [email protected]
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
>
> Hi,
> I have same problem. im going through lesson6 and when I run % java
> net.tinyos.tools.Listen
> it just shows the below and wait foe packets.
> serial@/dev/ttyUSB0:57600: resynchronising
> I cant find where is the problem.
>
> Thanks in advance.
>
>
>
> Jordi Soucheiron wrote:
> >
> > Do you have the BlinkToRadioMsg class in the directory where you're
> > running the command?
> >
> > 2010/2/8  <[email protected]>:
> >> Hi All,
> >>
> >> I am new to Tinyos, and trying the tutorial of Mote-PC serial
> >> communication and SerialForwarder.
> >>
> >> $ java net.tinyos.tools.Listen -comm ser...@com4:telos ran fine. And I
> >> followed all the procedures for MIG, but when I try:
> >>
> >> $java net.tinyos.tools.MsgReader BlinkToRadioMsg -comm ser...@com4
> :telos
> >> I got:
> >> java.lang.ClassNotFoundException:BlinkToRadioMsg
> >> ser...@com4:115200:resyncronising
> >> -
> >> nothing has been displayed.
> >>
> >> Does anyone has a clue for this problem? Thanks a lot!
> >> Sharon
> >>
> >>
> >> _______________________________________________
> >> Tinyos-help mailing list
> >> [email protected]
> >>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >>
> >
> >
> >
> > --
> > Jordi Soucheiron
> > Software Engineer
> >
> > DEXMA
> > Parc Tecnol?gic la Salle
> > Sant Joan de la Salle, 42
> > 08022 Barcelona
> > t/f: [+34] 93 181 01 95
> > www.dexmatech.com
> > [email protected]
> >
> > _______________________________________________
> > Tinyos-help mailing list
> > [email protected]
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Problem-with-MIG-tp27504998p30654163.html
> Sent from the TinyOS - Help mailing list archive at Nabble.com.
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> End of Tinyos-help Digest, Vol 93, Issue 29
> *******************************************
>



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

Reply via email to