Hello Janos Sallai : Today , i reinstall the cygwin and tinyos-2.x , and i also download the cvs tree of tinyos-2.x . the deluge is working now . thank you very much . i find a probem of cvs tree of tinyos-2.x : when i use the mote of mica2 , the mote can't communicate with each other . (i have chaged the frequency fit to my mote) . i don't know why .
2008/5/22 Janos Sallai <[EMAIL PROTECTED]>: > Jiwen, > > > > As I wrote in my previous mail, the git and the CVS versions are now > identical. > > > > Did you run tools/Bootstrap first? Did it give you any error messages? It > should create Makefile.in, and configure should run without errors. > > > > The purpose of the --prefix=/usr parameter of configure is to place the > created files under /usr. By default, they will be placed into /usr/local, > and you end up with two versions of every file, one set shadowing another. > > > > Janos > > > > *From:* jiwen zhang [mailto:[EMAIL PROTECTED] > *Sent:* Thursday, May 22, 2008 6:09 AM > > *To:* Janos Sallai > *Cc:* [EMAIL PROTECTED]; [email protected] > *Subject:* Re: [Tinyos-help] tests/deluge/Blink > > > > Hello Janos Sallai : > > 2008/5/21 Janos Sallai <[EMAIL PROTECTED]>: > > Jiwen, > > > > > 1.Have you tested the application of apps/tests/deluge/Blink on > > > micaz or iris or telesb ? is it ok ? > > Yes, I have tested it on the iris, and it works as it should. Make sure you > have the latest code from the CVS, install tinyos-tools (cd tools; > ./Bootstrap; ./configure --prefix=/usr; make; make install), and then run > the "burn" script in apps/tests/deluge/Blink with the appropriate > parameters. > > i have download the tinyos code from > http://hinrg.cs.jhu.edu/git/tinyos-2.x.git on 2008.5.15 . there are > errors when i use the command ./configure . > > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for gawk... gawk > checking whether make sets $(MAKE)... yes > checking build system type... i686-pc-cygwin > checking host system type... i686-pc-cygwin > checking for gcc... gcc > checking for C compiler default output file name... a.exe > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... .exe > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for style of include used by make... GNU > checking dependency style of gcc... gcc3 > checking for g++... g++ > checking whether we are using the GNU C++ compiler... yes > checking whether g++ accepts -g... yes > checking dependency style of g++... gcc3 > checking for ranlib... ranlib > checking for perl... /usr/bin/perl > checking for python... /usr/local/bin/python > checking for nescc... /usr/bin/nescc > configure: Default ncc build target is mica > configure: ...but using a tos/.default-platform file is a better choice > configure: TinyOS directory is /opt/tinyos-2.x/tos > checking for cygwin... yes > checking for JDK location... /cygdrive/d/Program Files/Java/jdk1.5.0_01 > configure: creating ./config.status > config.status: creating Makefile > config.status: error: cannot find input file: Makefile .in > > > > i have compared the files in /opt/tinyos-2.x/tools/ , there are no much > differences . if i replace the files .cvsignore , Bootstrap , build.xml , > configure.ac,Makefile.am, Makefile.am and the folder of tools/platform > with the corresponding files form cvs version , there are will no errors > when i use ./configure . but deluge can't work as it should . > > what is function of the parameter of '--prefix /usr' ? i add it when i use > ./configure , it has no difference with the result that i don't add it . > -:) > > > i test it according to the way you tell me in last emial . it is as > before > > > when i use the command tos-deluge /dev/ttyS0 micaz -r 1 , the red > > > led flashes quickly and never stop . > > What kind of programming board do you use? Are you certain that /dev/ttyS0 > is the _*communications*_ port? (On the mib520, the programming port and > the communications port are different.) > > i use mib510 . communication over serial port is ok . > > Are you sure that you compile the second blink with -DBLINK_REVERSE added > to CFLAGS? If not, then it will blink red… > > i have tested the ./burn /dev/ttyS0 micaz , after the image of second > application with -DBLINK_REVERSE when compiling has been installed to the > slot 1 of the external flash , i press the ENTER , then the mote should > reboot from the slot 1 and load the second appalication , and the yellow led > should blink . but the result is that the red led flash quickly (it has > difference with the application one which blink red led, it blinks more > quickly . i think maybe when the deluge reprogramme the mote , it falls > across some errors . ) > > > > How about the "burn" and "burn-net" scripts? They should work with the > latest CVS checkout on the iris. > > i don't test "burn-net" , because i have not passed the "burn" . so i > think "burn-net" does't work too. > > > > > 2. what is the version of tinyos you are using ? tinyos-2.x cvs or > > > git (http://hinrg.cs.jhu.edu/git/tinyos-2.x.git) ? i have tested cvs > > > version (2008.04.28) , it has the problem as i say before. i also tested > > > git version . when i use ./configure in the directory of > /opt/tinyos-2.x/tools, > > > it has some problems . > > I tested both, and both work. What problems did you have with configure? > What --prefix parameter did you use? What is the output of "which > tos-deluge" on your system? > > i have asked Razvan Musaloiu-E , he say it is ok on his computer and > yours is ok too. the difference between ours is the version of cygwin , i > use cygwin-1.2a.tgz . > > the output of "which tos-deluge" is "/usr/local/bin" > > > > > > > 3.what are the tools you have installed in cygwin ? > > > what is the version of cygwin ? cygwin-1.2a.tgz ? > > It's cygwin 1.5.25. My python is version 2.5 (cygwin). > > maybe it is the key . > > Janos Sallai , you know the cygwin is very large and include many files . i > don't know which files must be installed . can you give me a description > about how to install tinyos-2.x in the latest cygwin ? because i have tried > , > > firstly i installed the cygwin-1.2a.tgz , then i download the latest > cygwin and update the files i have installed . > > when i install the tinyos tools , it give the warning like "<package> is > intended for a cygwin_nt-5.1 operating system" . so i use the parameter > "--ignoreos" , then it can continue. > > after i have installed all the tools , i copy the tinyos tree of cvs to > /opt/ and go to /opt/tinyos-2.x/apps/blink. > > i use the command "make mica2" , but it give errors "No such file or > directory" and there are also some chinese words . i don't know why . > > > > can you help me ? thank you very much . > > > > Janos > > > > *From:* jiwen zhang [mailto:[EMAIL PROTECTED] > *Sent:* Wednesday, May 21, 2008 2:46 AM > > > *To:* Janos Sallai > *Cc:* [EMAIL PROTECTED]; [email protected] > *Subject:* Re: [Tinyos-help] tests/deluge/Blink > > > > Hello Janos Sallai : > > > > thak you for your reply !! > > I want to ask some question : > > 1.Have you tested the application of apps/tests/deluge/Blink on micaz > or iris or telesb ? is it ok ? > > i test it according to the way you tell me in last emial . it is as before > . when i use the command tos-deluge /dev/ttyS0 micaz -r 1 , the red led > flashes quickly and never stop . > > 2. what is the version of tinyos you are using ? tinyos-2.x cvs or git > (http://hinrg.cs.jhu.edu/git/tinyos-2.x.git) ? > > i have tested cvs version (2008.04.28) , it has the problem as i say > before. > > i also tested git version . when i use ./configure in the directory of > /opt/tinyos-2.x/tools, it has some problems . > > 3.what are the tools you have installed in cygwin ? what is the > version of cygwin ? cygwin-1.2a.tgz ? > > thank you very much!! > > 2008/5/20 Janos Sallai <[EMAIL PROTECTED]>: > > Jiwen, > > > > Here's the list of commands you need to enter to get > apps/tests/deluge/Blink work on the iris (I have a mib250 on com3 and > com4=/dev/ttyS3, I'm using cygwin): > > > > Go to the directory > > $ cd /opt/tinyos-2.x/apps/tests/deluge/Blink/ > > > > Compile and install the deluge-enabled blink (TINYOS_NP=bnp tells the make > system to intall the bootloader, CFLAGS=-DELUGE_BASESTATION tells deluge to > listen on the UART) > > $ TINYOS_NP=bnp CFLAGS=-DELUGE_BASESTATION make iris install.0 mib520,COM3 > > > > Compile yellow-blinking blink that is going to be uploaded. The > -DBLINK_REVERSE macro is the one that makes it blink the yellow led, not the > red one. > > $ CFLAGS=-DELUGE_BASESTATION\ -DBLINK_REVERSE make iris > > > > Inject the new image with tos-deluge. > > $ tos-deluge /dev/ttyS3 57600 -i 1 build/iris/tos_image.xml > > > > Reboot the mote. > > $ tos-deluge /dev/ttyS3 57600 -r 1 > > > > Janos > > > > *From:* jiwen zhang [mailto:[EMAIL PROTECTED] > *Sent:* Saturday, May 17, 2008 8:11 AM > *To:* Janos Sallai > *Cc:* [EMAIL PROTECTED]; [email protected] > *Subject:* Re: [Tinyos-help] tests/deluge/Blink > > > > Hell all : > > when i tried the /apps/tests/deluge/blink , it is all right except > that "after the sencond the second version of blink has been downloaded to > the volume 1", *the red led blink ceaselessly. (the mote should reboot** * > *with new blink existing in ** **volume 1** **and then the yellow led > blink periodically** **)* i can ping the mote , there is no response , > what is reason ? > > > > later , i find that when i use the command "tos-deluge /dev/ttyS0 micaz > -r 1" , the mote will blink the red led ceaselessly . i don't know why . > does any one has the same puzzle . > > 2008/5/16 Janos Sallai <[EMAIL PROTECTED]>: > > Reema, > > > > Try to use tos-deluge directly. Apparently, the helper scripts under > /apps/test/deluge haven't been updated yet. The baud rate of the iris is the > same as that of the micaz (57600bps). > > > > Janos > > > > *From:* Reema Mathew - Michael [mailto:[EMAIL PROTECTED] > *Sent:* Friday, May 16, 2008 5:48 AM > *To:* Janos Sallai > *Cc:* [email protected] > > > *Subject:* RE: [Tinyos-help] tests/deluge/Blink > > > > I am able to make iris > > > > when i run ./burn /dev/ttyUSB0 iris > > the following error is displayed "Wrong baudrate" at Uploading image > section > > > > Reema > > > > --- On *Fri, 16/5/08, Janos Sallai <[EMAIL PROTECTED]>* wrote: > > From: Janos Sallai <[EMAIL PROTECTED]> > Subject: RE: [Tinyos-help] tests/deluge/Blink > To: [EMAIL PROTECTED], [email protected] > Date: Friday, 16 May, 2008, 1:06 AM > > Reema, > > > > Please make sure that you have the latest sources from the CVS. You need to > update your entire tinyos-2.x tree, not only the iris specific directories. > > > > I have verified that it does compile with the latest sources. > > > > Janos > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Reema Mathew - > Michael > *Sent:* Thursday, May 15, 2008 4:22 AM > *To:* [email protected] > *Subject:* [Tinyos-help] tests/deluge/Blink > > > > Hi All, > > > > I am trying *deluge* for iris motes with tinyos2.0.2 > > I am able to compile *tosboot* > > When I try to *make iris* for Blink in apps/tests/deluge/Blink > > > > > ------------------------------ > > Sent from Yahoo! > Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52418/*http:/uk.docs.yahoo.com/nowyoucan.html>. > > A Smarter Email. > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > > -- > zhang jiwen > > > > > -- > zhang jiwen > > > > > -- > zhang jiwen > -- zhang jiwen
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
