[Tinyos-help] Boomerang Help With TimeStamping.nc
Hello, I am trying to use TimeStamping.nc in my application to timestamp all the received packets. I have wired this to CC2420TimeStampingC. However, while compiling, i get an error saying that component CC2420TimeStampingC not found. Can anyone help me Naveen ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Who knows how the tinyos-tools package detects the java? and why appear can not find the /usr/local/bin/locate-jre?
Hello, everyone: Anyone who can tell me the how the tinyos-tools package dectects the java path? I have tried the IBM JDK 1.5.0-2 ,IBM JDK 1.4.2-5 and SUN j2sdk-1_4_2_12, I also edit the PATH,CLASSPATH the .bashrc file in the user home directory.But when I run the tinyos-tools-1.2.1-3.i386.rpm, It says that "java not found. not installing jni code". when using the IBM jdk 1.4.2,after install the tinyos-tools, when install the tinyos-1.1.15Dec2005cvs-1.noarch.rpm, It says that "/etc/profile.d/tinyos.sh" line 16 /usr//local/bin/locate-jre :error no file can not find the java and javac!! thanks! __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.com___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Boomerang Help With TimeStamping.nc
Bad bad bad! Do not wire to any CC2420* components! Instead, use SPC.SPSend.sendAdv(). There is a flag you can set for time stamping. See the documentation in /opt/moteiv/doc/nesdoc for the SPSend interface: SP_FLAG_C_TIMESTAMP == adds a timestamp to all outgoing messages. You can then use SPUtil to extract the timestamp on the receiver: command uint32_t getSenderTimestamp(TOS_MsgPtr msg, int8_t offset) If a message is sent with the SP_FLAG_C_TIMESTAMP flag set, the sender will append a timestamp to the end of the message with the sender's local time. This time may be extracted from a received message by passing it to the getSenderTimestamp function and specifying the location of the timestamp. Usually, the timestamp is the last 4 bytes of the data message. The code in /opt/moteiv/tos/lib/NetSync/ uses the TIMESTAMP functions of SP to timestamp sent and received messages. You can look at this code for additional information on how to use the functions. -Joe On 6/3/06, Preethi Naveen [EMAIL PROTECTED] wrote: Hello, I am trying to use TimeStamping.nc in my application to timestamp all the received packets. I have wired this to CC2420TimeStampingC. However, while compiling, i get an error saying that component CC2420TimeStampingC not found. Can anyone help me Naveen ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Who knows how the tinyos-tools package detects the java? and why appear can not find the /usr/local/bin/locate-jre?
Some things to try -- In the bash shell see if you can really find java, i.e.: type java java is /cygdrive/c/JAVA/j2sdk1.4.2_04/bin/java If not, then your path is not setup correctly. If you are on Windows, you can set the path in the MyComputerProperties...Advanced...EnvironmentVariables panel for the system and it should show up everywhere. Also on Windows, if you have loaded Java someplace that has a space in the path, like Program Files, you are basically hosed. Sure there is some way of using stacks of s to get it to work, but only a select few can and nobody does. I use a top level /JAVA directory for everything just to avoid path and classpath issues like this. Finally, just in case you are actually missing the locate-jre file, I'm attaching one from my 1.1.7 tree. It's not as convoluted as many TOS scripts but still not transparent... MS 泽 江 wrote: Hello, everyone: Anyone who can tell me the how the tinyos-tools package dectects the java path? I have tried the IBM JDK 1.5.0-2 ,IBM JDK 1.4.2-5 and SUN j2sdk-1_4_2_12, I also edit the PATH,CLASSPATH the .bashrc file in the user home directory.But when I run the tinyos-tools-1.2.1-3.i386.rpm, It says that java not found. not installing jni code. when using the IBM jdk 1.4.2,after install the tinyos-tools, when install the tinyos-1.1.15Dec2005cvs-1.noarch.rpm, It says that /etc/profile.d/tinyos.sh line 16 /usr//local/bin/locate-jre :error no file can not find the java and javac!! thanks! __ 赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help #!/bin/sh # This script attempts to locate the jre directory of the current # Java installation, even when java is not in the path # We only support it for Sun's Java on Windows and IBM's Java on Linux # We require an option to specify which directory is desired: # --java: directory with java executable # --javac: directory with javac executable # --jni: directory where JNI code is placed if [ $1 = --jni ]; then jni=yes elif [ $1 = --java ]; then java=yes elif [ $1 = --javac ]; then javac=yes else echo Usage: locate-jre --java|--javac|--jni 2 exit 2 fi if [ -f /usr/bin/regtool ]; then # Hopefully this will always work on cygwin with Sun's Java jversion=`regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion'` if [ $? != 0 ]; then exit 1 fi jhome=`regtool -q get '\HKLM\SOFTWARE\JavaSoft\Java Development Kit\'$jversion'\JavaHome'` if [ $? != 0 ]; then exit 1 fi jhome=`cygpath -u $jhome` else # On Linux, we first try to find it from the rpm j=`rpm -ql IBMJava2-SDK | grep -m 1 'bin/javac$'` if [ $? != 0 ]; then # Next we try the path. But a nasty rpm may have removed them, so we # recreate our default path... PATH=`bash --login -c 'echo $PATH'` j=`which javac 2/dev/null` if [ $? != 0 ]; then exit 1 fi fi jbin=`dirname $j` jhome=`dirname $jbin` fi # These are correct for Sun's Window java and IBM's Linux java if [ $jni = yes ]; then dir=$jhome/jre/bin elif [ $javac = yes ]; then dir=$jhome/bin elif [ $java = yes ]; then dir=$jhome/jre/bin fi # Check that what we found actually exists if [ -d $dir ]; then echo $dir else exit 1 fi ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] What causes the following errors when I make the Blink apps under fedora core 4?
Hello,everyone: When I make the Blink apps the following errors occur. Anyone who knows the reasons? I use the fedora core 4 and IBM jdk 1.4.2. The toscheck shows no errors.Thanks!! [EMAIL PROTECTED] apps]# cd Blink[EMAIL PROTECTED] Blink]# lsBlinkM.nc Blink.nc build Makefile README SingleTimer.nc[EMAIL PROTECTED] Blink]# make pcmkdir -p build/pc compiling Blink to a pc binaryncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -I%T/lib/Deluge -I%T/lib/Flash -I%T/lib/Flash/STM25P -DDEFAULT_EEPROM_SIZE=0x10 -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"ma.cs.tyut.edu.\" -DIDENT_USER_HASH=0x129a2e14L -DIDENT_UNIX_TIME=0x4482611dL -DIDENT_UID_HASH=0x0baf1edfL Blink.nc -lmIn file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/packet_sim.h:55, from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/nido.h:84, from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:43, from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'In file included from /home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/hardware.h:116, from /home/ma/TINYOSDIR/tinyos-1.x/tos/system/tos.h:144:/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of `length' shadows global declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of `length' shadows global declaration/home/ma/TINYOSDIR/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed declarationmake: *** [exe0] Error 1 __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.com___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help