Re: [Tinyos-help] TinyOS on Linux AMD64 OS
converting from RPM to DEB is not a very clean way... look for alternative installation methods. Regards; Peizhao Kevin Klues wrote: What sort of problems? On Feb 5, 2008 1:40 PM, Joey Wilson [EMAIL PROTECTED] wrote: I am having a lot of problems installing tinyOS on my linux (Ubuntu 7.10) AMD 64-bit operating system. I have tried using the stanford repositories, converting the RPMs to DEB files, and a lot of other things, but nothing is working. Any suggestions or help? Thanks. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Simultaneous Serial and Radio Communication
depending on what you mean simultaneously, I guess. TinyOS is a single-thread program, so if you are looking for multi-threads kind of simultaneous behavior, I guess you can't. regards; Peizhao Hu Sha Liu wrote: Hi, I noticed the GenericComm component in TinyOS 1.x does not allow sending packets to both radio and serial port simutaneously. Is it due to restrictions in hardware or simply the restriction of this component? Thanks, Sha ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] about time synchronization in tinyos2.x
What do you mean by time synchronization? Check AntiTheft example, nodes exchange counter number to keep their sensing data synchronized. regards; Peizhao Hu jiwen zhang wrote: hello all: I want to know whether time synchronization is supposed in tinyos2.x. thank you!! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] serial communication
Please make sure that you have . in your classpath; such as export CLASSPATH=$CLASSPATH:. regards; Peizhao Hu Michael Schippling wrote: The first, NoClassDefFoundError, problem is probably due to not having your CLASSPATH set correctly or perhaps needing to specify a full name for the TestSerial class (like you did for Listen). The CP needs to include the root directory that leads to the TestSerial.class file. Google CLASSPATH for a lot of explanations. The Listen problem could be due to using the wrong port number, are you sure your MIB is connected to USB0? Also, what program are you running on the micaz to send messages? Unfortunately I don't have T2, nor linux, so I can't help with actual details for your setup... MS bayu anggorojati wrote: Hi, I am a newbie in tinyOS and WSN stuff. Perhaps my question is a silly question. So, I was trying to make communicate the PC with the mote through serial-USB connection. I am using Linux Xubuntu and mib510 serial gateway. I followed the tutorial #4 by typing: java TestSerial but i got this error: Exception in thread main java.lang.NoClassDefFoundError: TestSerial I've compiled the application many times but still it didnt work. I also tried to execute this command: java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:micaz but it didn't show any packet being sent or received. It just showing that it is being resynchronized. Does anybody what was wrong with this? I appreciate any help concerning this issue in advance. Regards, Bayu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] avr-libc failure
Hi all; well, I don't have any problem with compiling TinyOS application. However, I don't know where to get sha1sum. In Tiger, I can install textutil package using fink, but NOT in Leopard. Antonio: Have you following the instructions about installing NesC? It seem to me there is problem with your NesC installation. regards; Peizhao Hu Antonio wrote: Hi Kevin, Thank you for considering this case. After the new instructions, I am still not able to compile any mica application. For example, the blink application, which works fine for telos (make telos), for mica it gives the following: dhcp-892b9a83:~/tinyos-2.x/apps/Blink antonioruzzelli$ make mica2 mkdir -p build/mica2 compiling BlinkAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb --param max-inline-insns-single=10 -DIDENT_APPNAME=\BlinkAppC\ -DIDENT_USERNAME=\antonioruzzelli\ -DIDENT_HOSTNAME=\ dhcp-892b9a83.u\ -DIDENT_USERHASH=0x1eae90c5L -DIDENT_TIMESTAMP=0x47975b91L -DIDENT_UIDHASH=0x205a37faL -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/mica2/wiring- check.xml BlinkAppC.nc -lm /opt/local/stow/nesc-1.2.9/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory commandline: failed to preprocess /opt/local/stow/nesc-1.2.9/lib/ncc/nesc_nx.h /Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:5:22: error: inttypes.h: No such file or directory /Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:13:20: error: string.h: No such file or directory /Users/antonioruzzelli/tinyos- 2.x/tos/system/tos.h:14:20: error: stdlib.h: No such file or directory /Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:15:18: error: math.h: No such file or directory /Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h:17:19: error: ctype.h: No such file or directory commandline: failed to preprocess /Users/antonioruzzelli/tinyos-2.x/tos/system/tos.h In file included from /Users/antonioruzzelli/tinyos-2.x/tos/system/TinySchedulerC.nc:36: In interface `Scheduler': ... ...and many other errors Do you have any clue? regards, Antonio On 23/01/2008, *Peizhao Hu * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Kevin, I have had the MSP430 package installed. so stow: CONFLICT: /opt/local/stow/msp430/lib/libiberty.a vs. /opt/local/lib/libiberty.a when I tried to stow the MSP430 binary. regards; Peizhao Hu Kevin Klues wrote: Does it work now with the new instructions? kevin On Jan 22, 2008 4:42 PM, Peizhao Hu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Kevin; My MacBook is Intel Core2Duo. and I followed your comments last time to install TinyOS on my Tiger 10.4 without any problem. but I recently upgraded to Leopard 10.5, then I experienced the same problem that other people suggested. regards; Peizhao Hu Kevin Klues wrote: I've compiled binaries for intel based macs and updated the tutorial appropriately. I dont have a power pc based mac, and for some reason I'm having problems compiling a universal binary, so for now I only have the avr tools for intel based macs up on the site. If anyone has a power pc mac and has time to build the tools, let me know and I'll send the scripts over for building them. Kevin On Jan 19, 2008 5:58 PM, Peizhao Hu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: similar problem in Leopard regards; Peizhao Hu NICTA http://www.nicta.com.au Kevin Klues wrote: I've heard other people complaining about this recently as well. Either darwin ports has come out with a newer version of avr-libc that doesnt compile correctly, or your version of X-Code isnt compatible with it. Either way, the best solution is to just provide a precompiled set of binaries for now. I'll update the tutorial later today with instructions on how to get ahold of them. Kevin On Jan 19, 2008 1:28 AM, Spongebob Squarepants [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I am having a problem installing TinyOS 2 on my MAC OS X Tiger. The error happens when I try to install the avr tools (sudo port install avr-libc) I am following Klues' steps. The error is following reported. I am not sure which path and how I have to change it. Please, let me know if you have any clue how to solve the problem. cheers, Antonio ... --- Cleaning binutils --- Fetching avr-libc --- Attempting to fetch avr-libc-1.4.4.tar.bz2 from
Re: [Tinyos-help] tinyOS problem
It is not really a big problem, you just need to configure the path for tinyos. please check the mailing list for further assistance. regards; Peizhao Hu 詹閔超 wrote: Hello,my name is Jan,I come from Taiwan. I got some troble when i install the tinyOS. Could you tell me how can i install the rpm file? and i got lots of warning when i keyin tos-check-env. please teach me how to solve these problem, thank you! -- 電子三甲 詹閔超 努力目標: 台清交成 或者直接當兵後到國外讀碩士XD ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] avr-libc failure
Hi Kevin; My MacBook is Intel Core2Duo. and I followed your comments last time to install TinyOS on my Tiger 10.4 without any problem. but I recently upgraded to Leopard 10.5, then I experienced the same problem that other people suggested. regards; Peizhao Hu Kevin Klues wrote: I've compiled binaries for intel based macs and updated the tutorial appropriately. I dont have a power pc based mac, and for some reason I'm having problems compiling a universal binary, so for now I only have the avr tools for intel based macs up on the site. If anyone has a power pc mac and has time to build the tools, let me know and I'll send the scripts over for building them. Kevin On Jan 19, 2008 5:58 PM, Peizhao Hu [EMAIL PROTECTED] wrote: similar problem in Leopard regards; Peizhao Hu NICTA http://www.nicta.com.au Kevin Klues wrote: I've heard other people complaining about this recently as well. Either darwin ports has come out with a newer version of avr-libc that doesnt compile correctly, or your version of X-Code isnt compatible with it. Either way, the best solution is to just provide a precompiled set of binaries for now. I'll update the tutorial later today with instructions on how to get ahold of them. Kevin On Jan 19, 2008 1:28 AM, Spongebob Squarepants [EMAIL PROTECTED] wrote: Hi, I am having a problem installing TinyOS 2 on my MAC OS X Tiger. The error happens when I try to install the avr tools (sudo port install avr-libc) I am following Klues' steps. The error is following reported. I am not sure which path and how I have to change it. Please, let me know if you have any clue how to solve the problem. cheers, Antonio ... --- Cleaning binutils --- Fetching avr-libc --- Attempting to fetch avr-libc-1.4.4.tar.bz2 from http://savannah.nongnu.org/download/avr-libc/ --- Verifying checksum(s) for avr-libc --- Extracting avr-libc --- Configuring avr-libc Error: Target org.macports.configure returned: configure failure: shell command cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-libc-1.4.4 ./configure --prefix=/opt/local --prefix=/opt/local --host=avr --build=`./config.guess` returned error 1 Command output: checking build system type... i686-apple-darwin8.11.1 checking host system type... avr-unknown-none checking if configuring for cross compile... yes checking if target host is avr... yes checking for a BSD-compatible install... /usr/bin/install checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for avr-strip... avr-strip checking for avr-gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc- 4.0... gcc3 checking for avr-as... avr-as checking for avr-ranlib... avr-ranlib checking for avr-ar... avr-ar configure: error: Wrong C compiler found; check the PATH! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] avr-libc failure
Sorry Kevin; I didn't know there an updated instruction. so now it is not using MacPort. I will try now and let you know soon. regards; Peizhao Hu Kevin Klues wrote: Does it work now with the new instructions? kevin On Jan 22, 2008 4:42 PM, Peizhao Hu [EMAIL PROTECTED] wrote: Hi Kevin; My MacBook is Intel Core2Duo. and I followed your comments last time to install TinyOS on my Tiger 10.4 without any problem. but I recently upgraded to Leopard 10.5, then I experienced the same problem that other people suggested. regards; Peizhao Hu Kevin Klues wrote: I've compiled binaries for intel based macs and updated the tutorial appropriately. I dont have a power pc based mac, and for some reason I'm having problems compiling a universal binary, so for now I only have the avr tools for intel based macs up on the site. If anyone has a power pc mac and has time to build the tools, let me know and I'll send the scripts over for building them. Kevin On Jan 19, 2008 5:58 PM, Peizhao Hu [EMAIL PROTECTED] wrote: similar problem in Leopard regards; Peizhao Hu NICTA http://www.nicta.com.au Kevin Klues wrote: I've heard other people complaining about this recently as well. Either darwin ports has come out with a newer version of avr-libc that doesnt compile correctly, or your version of X-Code isnt compatible with it. Either way, the best solution is to just provide a precompiled set of binaries for now. I'll update the tutorial later today with instructions on how to get ahold of them. Kevin On Jan 19, 2008 1:28 AM, Spongebob Squarepants [EMAIL PROTECTED] wrote: Hi, I am having a problem installing TinyOS 2 on my MAC OS X Tiger. The error happens when I try to install the avr tools (sudo port install avr-libc) I am following Klues' steps. The error is following reported. I am not sure which path and how I have to change it. Please, let me know if you have any clue how to solve the problem. cheers, Antonio ... --- Cleaning binutils --- Fetching avr-libc --- Attempting to fetch avr-libc-1.4.4.tar.bz2 from http://savannah.nongnu.org/download/avr-libc/ --- Verifying checksum(s) for avr-libc --- Extracting avr-libc --- Configuring avr-libc Error: Target org.macports.configure returned: configure failure: shell command cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-libc-1.4.4 ./configure --prefix=/opt/local --prefix=/opt/local --host=avr --build=`./config.guess` returned error 1 Command output: checking build system type... i686-apple-darwin8.11.1 checking host system type... avr-unknown-none checking if configuring for cross compile... yes checking if target host is avr... yes checking for a BSD-compatible install... /usr/bin/install checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for avr-strip... avr-strip checking for avr-gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc- 4.0... gcc3 checking for avr-as... avr-as checking for avr-ranlib... avr-ranlib checking for avr-ar... avr-ar configure: error: Wrong C compiler found; check the PATH! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] avr-libc failure
Hi Kevin, I have had the MSP430 package installed. so stow: CONFLICT: /opt/local/stow/msp430/lib/libiberty.a vs. /opt/local/lib/libiberty.a when I tried to stow the MSP430 binary. regards; Peizhao Hu Kevin Klues wrote: Does it work now with the new instructions? kevin On Jan 22, 2008 4:42 PM, Peizhao Hu [EMAIL PROTECTED] wrote: Hi Kevin; My MacBook is Intel Core2Duo. and I followed your comments last time to install TinyOS on my Tiger 10.4 without any problem. but I recently upgraded to Leopard 10.5, then I experienced the same problem that other people suggested. regards; Peizhao Hu Kevin Klues wrote: I've compiled binaries for intel based macs and updated the tutorial appropriately. I dont have a power pc based mac, and for some reason I'm having problems compiling a universal binary, so for now I only have the avr tools for intel based macs up on the site. If anyone has a power pc mac and has time to build the tools, let me know and I'll send the scripts over for building them. Kevin On Jan 19, 2008 5:58 PM, Peizhao Hu [EMAIL PROTECTED] wrote: similar problem in Leopard regards; Peizhao Hu NICTA http://www.nicta.com.au Kevin Klues wrote: I've heard other people complaining about this recently as well. Either darwin ports has come out with a newer version of avr-libc that doesnt compile correctly, or your version of X-Code isnt compatible with it. Either way, the best solution is to just provide a precompiled set of binaries for now. I'll update the tutorial later today with instructions on how to get ahold of them. Kevin On Jan 19, 2008 1:28 AM, Spongebob Squarepants [EMAIL PROTECTED] wrote: Hi, I am having a problem installing TinyOS 2 on my MAC OS X Tiger. The error happens when I try to install the avr tools (sudo port install avr-libc) I am following Klues' steps. The error is following reported. I am not sure which path and how I have to change it. Please, let me know if you have any clue how to solve the problem. cheers, Antonio ... --- Cleaning binutils --- Fetching avr-libc --- Attempting to fetch avr-libc-1.4.4.tar.bz2 from http://savannah.nongnu.org/download/avr-libc/ --- Verifying checksum(s) for avr-libc --- Extracting avr-libc --- Configuring avr-libc Error: Target org.macports.configure returned: configure failure: shell command cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-libc-1.4.4 ./configure --prefix=/opt/local --prefix=/opt/local --host=avr --build=`./config.guess` returned error 1 Command output: checking build system type... i686-apple-darwin8.11.1 checking host system type... avr-unknown-none checking if configuring for cross compile... yes checking if target host is avr... yes checking for a BSD-compatible install... /usr/bin/install checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for avr-strip... avr-strip checking for avr-gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc- 4.0... gcc3 checking for avr-as... avr-as checking for avr-ranlib... avr-ranlib checking for avr-ar... avr-ar configure: error: Wrong C compiler found; check the PATH! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] avr-libc failure
similar problem in Leopard regards; Peizhao Hu NICTA http://www.nicta.com.au Kevin Klues wrote: I've heard other people complaining about this recently as well. Either darwin ports has come out with a newer version of avr-libc that doesnt compile correctly, or your version of X-Code isnt compatible with it. Either way, the best solution is to just provide a precompiled set of binaries for now. I'll update the tutorial later today with instructions on how to get ahold of them. Kevin On Jan 19, 2008 1:28 AM, Spongebob Squarepants [EMAIL PROTECTED] wrote: Hi, I am having a problem installing TinyOS 2 on my MAC OS X Tiger. The error happens when I try to install the avr tools (sudo port install avr-libc) I am following Klues' steps. The error is following reported. I am not sure which path and how I have to change it. Please, let me know if you have any clue how to solve the problem. cheers, Antonio ... --- Cleaning binutils --- Fetching avr-libc --- Attempting to fetch avr-libc-1.4.4.tar.bz2 from http://savannah.nongnu.org/download/avr-libc/ --- Verifying checksum(s) for avr-libc --- Extracting avr-libc --- Configuring avr-libc Error: Target org.macports.configure returned: configure failure: shell command cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_avr-libc/work/avr-libc-1.4.4 ./configure --prefix=/opt/local --prefix=/opt/local --host=avr --build=`./config.guess` returned error 1 Command output: checking build system type... i686-apple-darwin8.11.1 checking host system type... avr-unknown-none checking if configuring for cross compile... yes checking if target host is avr... yes checking for a BSD-compatible install... /usr/bin/install checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for avr-strip... avr-strip checking for avr-gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc- 4.0... gcc3 checking for avr-as... avr-as checking for avr-ranlib... avr-ranlib checking for avr-ar... avr-ar configure: error: Wrong C compiler found; check the PATH! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] about sensor
they are sensorboards, for individual sensors, you have to look into these directories for their drivers. regards; Peizhao jiwen zhang wrote: Hello all: As we know , there are many kinds of sensors which tinyos supposes . For example , in tinyos2.02 , in the directory sensorboards/ , there are basicsb/,im2sb,mda100/,mts300/ folders 。 i know little about sensors.i don't know what kind sonsors do these folders respond to . now i have some mts310 and mts400 and mts420 . dose these sensors have driver in tinyos ? thank you !! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] one question about motelist
try other usb ports. regards; Peizhao Chris Yao wrote: Hi, I run motelist under TinyOs 2.0.2 Cygwin/Windows XP. I got the following errors: error, could not open key HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_0403Pid_6001 why is that? Thanks very much, Chris Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS-2.x post-Install and Configuration
it looks like the make can't locate the some files. have you tried to run tos-* command, for example: tos-check-env regards; Peizhao antonio gonga wrote: Hey All, I was upgrading TinyOS-1.x to TinyOS-2.x in Windows. But I did not understand how to configure the environment, so I changed the file under /etc/profile.d/tinyos.sh with the new TinyOs-2.x environment variables. My problem is that when I tried to compile the Blink App i got the following message: mkdir -p build/telosb compiling BlinkAppC to a telosb binary ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -DIDENT_PROGRAM_NAME=\BlinkAppC\ -DIDENT_USER_ID=\antoniogonga\ -DIDENT_HOSTNAME=\aogobg\ DIDENT_USER_HASH=0x6655b8adL -DIDENT_UNIX_TIME=0x477c429aL -DIDENT_UID_HASH=0x993ab617L BlinkAppC.nc -lm Unknown target telosb Known targets for TinyOS directory /opt/tinyos-2.x/tos and the specific include directories are: none make: *** [exe0] Error 2 If someone knows/can help me how to configure TinyOS-2.x I'd be very grateful thanks in advance. Express yourself instantly with MSN Messenger! MSN Messenger http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Tmote sky
This is a $10 Billion question. haha... I guess more than 20 threads in this mailing list on this topic. please do a search with keyword RSSI. happy new year to you all.~~ regards; Peizhao Edmund J wrote: hi, I'm developing java application for tmote sky. How do i find the RSS value or LQI value from tmote sky? is there any example, e.g java codes for me to refer to? thank you. Regards, Edmund Search. browse and book http://sg.rd.yahoo.com/spirit/fea/travel/*http://sg.travel.yahoo.com your hotels and flights through Yahoo! Travel ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Listen program and statistics ?
the best way is to follow one of the example provided by TinyOS and write a small java program to collect this data in text files and import them to Excels. other way is to connect the sensor outputs to MatLab. Search the mailing list for an answer. regards; Peizhao Mona.baher wrote: Hi All, As you know that Listem program create a packet source and prints out every packet coming from the mote like: 00 FF FF 02 33 09 00 A0 A0 B2 34 90 33 02 So my question is how to break this fields of date into 2 bytes each and store each 2 bytes into separate xls files for analyses ? Is there any tool for statistics which does that? or what do you think ? I want to achieve the following : Store the 33 02 in file A and 34 90 in file B and so on for all the packets. Thank you for any help Mona ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS 2 Routing Protocols
be aware that Collection and Dissemination are two complement services provided by TinyOS. In terms of doing a survey on routing protocols, I will suggest you to search some research papers from IEEE or ACM. regards; Peizhao Daniel Galvin wrote: Hi all, Is there a list of all available routing protocols for TinyOS 2 somewhere? I'd like to write a paper that suggests what routing protocol most compliments what topology. From what I can see, there are only four available: Collection Tree, Collection (is this the same as CTP?), Dissemination and TYMO. I've had a look at the Network Protocol Working Group but didn't find anything conclusive. Google didn't return anything conclusive either. I realise that TinyOS 2 was only released in early 2006 but surely there must be more protocol implementations available. Am I wasting my time writing this paper? Any help or suggestions appreciated. Cheers, Dan. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] SerialForwarder
Well, you really need to make your question to be more specific. The cause of your problem can be many. so if you see any error message, please describe it as well. Suggestions: 1. check your TinyOS environment, see whether you have it installed properly. regards; Peizhao Abdullah Kadri wrote: Hello, I need to test if SerialForwarder works fine or not. I tried Lesson 7 from the tutorial. I connected one mote to the laptop’s USB and run SerialForwarder. I saw nothing at all in the SF window. I tried also using SF for the Oscilloscope application and saw nothing also in SF window. Any one can help me in this problem? Thanks in advance. Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How can I measure the SNR using telosb motes?
please search the mailing list with keyword RSSI, I did post some related question about this. To be brief, RSSI from the CC2420 chip tell you about the Noise ratio surrounding, where RSSI value from the received packet tell you about the quality of the wireless medium. in your packet you should be able to get thing like rssi() from Message data msg.rssi(); but please check on the mailing list. regards; Peizhao sergio mena doce wrote: I'm working with tinyOS-2.x under Ubuntu using telosb motes and I would like to measure the SNR. In the folder apps/tests/cc2420/ there is an application called RssiToSerial that allows me take samples of the Rssi. What do you advice me to measure the Signal To Noise ratio when I'm receiving packets? Is there some application for that goal? How can I obtain the util signal power or the noise signal power separately? Express yourself instantly with MSN Messenger! MSN Messenger http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TSR reading in Oscilloscope application
it looks like TinyOS 2.X is slightly better. :-) regards; Peizhao Michael Schippling wrote: The tmote Oscilloscope program strikes me as another of the expertly obfuscated TOS demo apps that is nearly impossible to follow or modify...IMHO. I think the business end of the data collection/aggregation happens in the tinyos-1.x/tos/lib/Oscope/OscopeM.nc file, and you may be able to reverse-engineer how it works in order to save yourself. Or you might find it easier to go back to the 'standard' Oscilloscope demo app in the TOS 1.1.x tree. There you only need to reverse-engineer the DemoSensor thing, which is a wrapper-upon-wrapper-upon-ADCC interface and can be found in tinyos-1.x/tos/platform/msp430/DemoSensorC.nc for the tmote. MS Saif A. Al-Hiddabi wrote: Hi, I need some help to modify the Oscilloscope application so that it reads only the TSR sensor and not the entire set of sensors. I also need to have one reading per packet sent. The current Oscilloscope application sends 10 readings per packet for the six sensors and this makes the application slow. I tried to see where this can be modified in “OscilloscopeTmoteSkyM.nc” and “OscilloscopeTmoteSky.nc” but no luck and things looks complicated in the code. Thanks in advance for any help. Regards, SAIF ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] compile error
it is a common problem with the nesC binary. Make sure you have it installed. please check on mailing list archive for more information. regards; Peizhao 汪付强 wrote: tinyos forum: hello! When I compile blink code in tinyos, I got the error message that ncc is not found: mkdir -p build/micaz compiling Blink to a micaz binary ncc -o build/micaz/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\Blink\ -DIDENT_USER_HASH=0xf607f9eaL -DIDENT_UNIX_TIME=0x473121deL -DIDENT_UID_HASH=0xeccaF51cL -I/opt/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm make: ncc: Command not found make: *** [exe0] Error 127 Hope this helps, ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TSR reading in Oscilloscope application
To achieve what you want to do in TinyOS. You just need to modify the following for single reading per packet. // Oscilloscope.h typedef nx_struct oscilloscope { nx_uint16_t version; /* Version of the interval. */ nx_uint16_t interval; /* Samping period. */ nx_uint16_t id; /* Mote id of sending mote. */ nx_uint16_t count; /* The readings are samples count * NREADINGS onwards */ nx_uint16_t reading; } oscilloscope_t; // OscilloscopeC.nc event void Timer.fired() { if (!sendbusy sizeof local = call AMSend.maxPayloadLength()) { memcpy(call AMSend.getPayload(sendbuf), local, sizeof local); if (call AMSend.send(AM_BROADCAST_ADDR, sendbuf, sizeof local) == SUCCESS) sendbusy = TRUE; } if (!sendbusy) report_problem(); /* Part 2 of cheap time sync: increment our count if we didn't jump ahead. */ if (!suppress_count_change) local.count++; suppress_count_change = FALSE; if (call Read.read() != SUCCESS) report_problem(); } event void Read.readDone(error_t result, uint16_t data) { if (result != SUCCESS) { data = 0x; report_problem(); } local.reading = data; } /* delete all uint8_t reading, the counter for number of sensor reading */ not sure what you mean by TSR? temperature sensor? the original code only wire the sensor reading to DemoSensor, which is a voltage sensor available on most of sensor platforms. if my guess is right, you only need to check the Sensor component you are using and wire OscilloscopeC.Read to it. for example, you will wire OscilloscopeC.Read - new TempC() /* for temperature on MTS300/310 */ OscilloscopeC.Read - new SensirionSht11C().Temperature /* for temperature on Tmote Sky */ regards; Peizhao Saif A. Al-Hiddabi wrote: Hi, I need some help to modify the Oscilloscope application so that it reads only the TSR sensor and not the entire set of sensors. I also need to have one reading per packet sent. The current Oscilloscope application sends 10 readings per packet for the six sensors and this makes the application slow. I tried to see where this can be modified in “OscilloscopeTmoteSkyM.nc” and “OscilloscopeTmoteSky.nc” but no luck and things looks complicated in the code. Thanks in advance for any help. Regards, SAIF ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] About MoteIV support information
Dear All Tmote Sky Users; Anyone has a backup of all moteiv support information from the web site? As the sudden shutdown of MoteIV support web site, we lost all this information. It will be really graceful to have a copy for future reference. :-) -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS2.x - reading data from PIR
if your PirC() from PirC.nc is correct for your PIR sensor, the Oscilloscope application should run fine without any changes. regards; Peizhao yvonne er wrote: Hi everyone, I am using TinyOS 2.x and MicaZ to acquire data readings from my passive infra-red (PIR) sensor. I used this command line z=TOSH_READ_PIR1_PIN() to get sensor reading with OscilloscopeC.nc. However, I get this error in cygwin: implicit declaration of function 'TOSH_READ_PIR1_PIN'. In addition, I have written a new PirC.nc to replace the DemoSensorC.nc (files attached), modifying the OscilloscopeApp.nc program as well: { components OscilloscopeC, MainC, ActiveMessageC, LedsC, new TimerMilliC(), new PirC() as Sensor, new AMSenderC(AM_OSCILLOSCOPE), new AMReceiverC(AM_OSCILLOSCOPE); OscilloscopeC.Boot - MainC; OscilloscopeC.RadioControl - ActiveMessageC; OscilloscopeC.AMSend - AMSenderC; OscilloscopeC.Receive - AMReceiverC; OscilloscopeC.Timer - TimerMilliC; OscilloscopeC.Read - Sensor; OscilloscopeC.Leds - LedsC; } Please Assist. Thanks and Regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Could anyone suggest a resolution for my problem?
answer to my own question, for future reference, problem is due to the change of TinyOS application, mainly message format. sorry to everyone. :-) regards; Peizhao Peizhao Hu wrote: Hi All, I have a strange problem with my Java program and TinyOS application. I have two application A(working version) and B(modification based on A). they both use the same set of codes to received message from Mote with a base station running on it. synchronized public void messageReceived(int dest_addr, Message msg) { // method content } and the MoteIF are instantiated in the same way: void initMote(){ mote = new MoteIF(PrintStreamMessenger.err); mote.registerListener(new FwdDataMsg(), this); } the problem is that when I debug my java program, the messageReceived method is never invoked. When I tried to run application A, everything works just fine. so all program logic for receiving message from tmote are the same in both applications. but application B does nothing in invoking the messageReceived method. anyone have suggestion?? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Could anyone suggest a resolution for my problem?
Hi All, I have a strange problem with my Java program and TinyOS application. I have two application A(working version) and B(modification based on A). they both use the same set of codes to received message from Mote with a base station running on it. synchronized public void messageReceived(int dest_addr, Message msg) { // method content } and the MoteIF are instantiated in the same way: void initMote(){ mote = new MoteIF(PrintStreamMessenger.err); mote.registerListener(new FwdDataMsg(), this); } the problem is that when I debug my java program, the messageReceived method is never invoked. When I tried to run application A, everything works just fine. so all program logic for receiving message from tmote are the same in both applications. but application B does nothing in invoking the messageReceived method. anyone have suggestion?? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] A Note from Sentilla
HI Joe, Sorry to say that, but the recent changes of MoteIV.com is way too quick. Giving our (old Tmote family customers) with nothing (all supporting martial). Could you migrate all supporting information for old Tmote products to TinyOS.net or other open source site? Also, what are the differences between Tmote (JavaVM or JavaME) and SunSPOT (JavaVM)? regards; Peizhao Joe Polastre wrote: There has been some confusion surrounding our change to Sentilla on the TinyOS mailing lists. Let me clarify a few items so that we are all on the same page. We at Sentilla (formerly Moteiv) are extremely excited about the use of Java technology in our products. We fully support the academic and research communities, and we expect that there will be a tremendous amount of innovation in applications and services that come directly from this community and are built with Java technology. Why Java? There's a lot of reasons. Most students are now learning Java at their universities rather than C or C++. There's also over 6 million Java developers out there today, who can now use, develop, deploy, and manage small computers that we refer to as motes. Opening pervasive technology to the masses, including classrooms and research labs where Java software has already been adopted, is tremendously exciting. We hope that all of you will continue with the great work that you're doing and will consider Sentilla as a great alternative to the embedded, low-level systems of the past. About our hardware products: Please note that Sentilla is not going to completely stop making motes, and we are not exiting the market -- rather we are providing an alternative based on open standards and familiar interfaces. We're moving the market for pervasive computing forward by making the software easy and familiar. As of February 1, 2008, all of our new motes will now come with Sentilla Point -- our Java runtime, application frameworks, networking, and APIs -- pre-loaded.As such, we're excited that everyone in this community will have the ability to use Java software to build applications. If you'd like to get a bare mote with only TinyOS support, those are still available too until January 31, 2008. All of Sentilla's new products that are coming in 2008 are backwards compatible with Tmote Sky and Tmote Mini, so you can remove Sentilla Point and load TinyOS if you choose. With a full software platform for development, deployment, integration, and management, our customers -- both academic and commercial -- now have the necessary infrastructure to quickly build intelligence into embedded systems. No longer do you need to install cygwin, configure gcc packages, learn a new language, or hack embedded code. You can now use all the tools you know and love to write Java applications -- including Eclipse and soon NetBeans. As for details on the technical capabilities provided by our software platform, I'll be writing up a blog post later in the week at http://blog.sentilla.com that addresses a number of the questions raised this list. If you have any questions, do not hesitate to contact us here at Sentilla. Our transformation to a software business and a Java product is an overall win, and we're committed to working with our loyal customers so that their business, research, and work are not interrupted. Best, -Joe Joe Polastre // co-founder and CTO // [EMAIL PROTECTED] Sentilla Corporation // 201 Marshall St // Redwood City, CA 94063 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Re: Help with MICAz Motes
From your message, it seems to me that you are using TinyOS-1.x. I am not sure about TinyOS-1.x, but a good direction to start is to search in this mailing list. http://www.tinyos.net/scoop/special/support#mailing-lists here is a search http://www.google.com/search?as_sitesearch=mail.millennium.berkeley.eduhs=kN1hl=enlr=rls=org.mozilla%3Aen-US%3Aofficialq=packet+sizebtnG=Search regards; Peizhao Chan Beng Weng wrote: Hi, I flashed 1 of my MICAz motes with OscilloscopeRF and the base with TOSBase. However, the output I got appears to be a pile of rubbish. May I know how can I edit it and what can I do to increase the number of packets sent over? And Peizhao, thanks for the prompt reply previously. However, I can’t find the msg_length that you mentioned, were you referring to buffer_size instead? Regards, Willie ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Using tasks
Ok, I will try, here. I am using TinyOS-2.x, so I will only comment on this version. Correct me if I have misunderstood. a normal C function is really like a private function to your TinyOS application (thread return until a function is finished), while a task (you can post it, thread return immediately) is a special function that add a process to the processor scheduler for later execution. Note: In TinyOS 2.x, a basic post will only fail if and only if the task has already been posted and has not started execution. And there will be fewer than 255 tasks in the system. for more info, please refer to http://www.tinyos.net/tinyos-2.x/doc/html/tep106.html regards; Peizhao Roberto wrote: Hi all, I read the tutorials on tinyos-2.x but i still haven't understood the difference between a function (in C style) and a task Does anyone explain me this difference, please? Thanks in advance -- Platform: Linux Fedora TinyOS version: 2.x Programmer: MIB510 Device(s): Micaz, Stargate ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tos-check-env problem
check your CLASSPATH carefully. in your CLASSPATH, you should have at least something like CLASSPATH=$CLASSPATH:.:$TOSROOT/support/sdk/java/tinyos.jar where $TOSROOT of course pointing to your TinyOS root directory. regards; Peizhao Derek Tarm wrote: when I run tos-check-env in Ubuntu 7.04, it says: Classpath: use of uninitialized value in concatenation . or string at /usr/bin/tos-check-env line 319. /opt/tinyos-2.x/support/sdk/java/tinyos.jar . So, is there a problem? How could I solve it? Thank you! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Python problem on Mac OSX can't find subprocess module
Hi when I try to use the tinyos command tos-storage-stm25p in command line, I got the following error: Traceback (most recent call last): File /sw/bin/tos-storage-stm25p, line 51, in ? from subprocess import Popen, PIPE ImportError: No module named subprocess I found the subprocess.py module is located in /sw/python2.5/lib/ anyone know how to resolve this issue? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Python problem on Mac OSX can't find subprocess module
I found the problem myself. to use subprocess module, you will need to have = python2.4 to verify your python. 1. open a terminal 2. run python 3. run import subprocess, if you have python installed properly you shouldn't see any error message. in my case, I have python2.4 and python2.5 installed into different location to /usr/bin, and by default /usr/bin/python is referring to python2.3. so correcting it to fix the problem regards; Peizhao Peizhao Hu wrote: Hi when I try to use the tinyos command tos-storage-stm25p in command line, I got the following error: Traceback (most recent call last): File /sw/bin/tos-storage-stm25p, line 51, in ? from subprocess import Popen, PIPE ImportError: No module named subprocess I found the subprocess.py module is located in /sw/python2.5/lib/ anyone know how to resolve this issue? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Need Help
depends on what you are trying to do. 1) let say if you want to track a person's location, you can apply location tracking algorithm using native RSSI value from the CC2420 radio or by detecting radio signal strength difference, you can say that an object go pass two Tmotes. 2) if you want to detect something moved in front of a sensor, maybe the infrad sensor is enough. Lookup proximity sensors. From a research point of view, detecting RF field strength different is an interesting research topic (BUT some WSN research groups have done the same thing using RFID) :-) regards; Peizhao Deepesh Jain wrote: Hi, In my academic project I want deploy a WSN to track a moving object. Please anybody can tell me which sensors are useful to track a moving object. I have tested easysen's SBT80 sensor , but still I am not able to understand the output of the program ListenSBT80vs.java which is available on easysen website. Also if anybody knows any other sensors please tell me. Is there any open source code or tutor is available for this project? Please reply as soon as possible, Thanks in anticipation Deepesh Jain Travelling to a new city? Search for ATMs in that city. Click here. http://in.rd.yahoo.com/tagline_maps_1/*http://in.maps.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] needed Help urgently
there is readme.txt and manual you can lookup. you will need to load apps/BaseStation to your base station tmote which will be used to connect to a PC. and then load the Oscilloscope to your sensor node. then in the apps/Oscilloscope/java, there is a run script. if you want to run it in Eclipse, you can import all *.java file into your eclipse project and import tinyos-2.x/support/sdk/java/tinyos.jar into your project classpath. now you should be able to resolve all tinyos variables. regards; Peizhao Edmund J wrote: Hi, I have bought the tmote sky sensors. It comes along with this oscilloscope java application for me to try out with the sensors. How can i use eclipse program to run this java application? so that it can read the commands like import net.tinyos.util.*? do i need to set any classpath variables? pls help me. Thank you. Regards, Edmund http://answers.yahoo.com.sg *Real people. Real questions. Real answers. Share what you know http://answers.yahoo.com.sg*. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help on MTS300
within my memory, you can have as large of the packet size as you wanted, just need to add/change the MSG_SIZE=(your desired packet size) variable in your Makefile. This means you can accumulate 10 group of whatever data before sending it off. However, there are discussions about packet size v.s. packet loss during transmission. some people suggest MSG_SIZE=256 (can not remembered, please do a search in the mailing list) :-) regards; Peizhao Chan Beng Weng wrote: Hi, I’d like to know if I can gather a larger group of data for e.g 10 groups before transmitting it on my MTS300 transmitter. Presently I’m only collecting a single group of data and transmitting 1 group at a time. If possible, how do I do it? Many thanks. Regards, Willie Chan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] compiling issues
please check whether you have avr-gcc compiler installed regards; Peizhao JON GORZITZE wrote: Hi, I have just purchased a new laptop with Windows XP. I have dowloaded the TinyOS software and am running into problems when I try to compile the Blink program. I get the following message: Couldn't execute avr-gcc make: *** [exe0] Error 2 I am new to TinyOS and am not familiar with the error message. Can anyone help me out on what I need to do to fix this issue? Thanks. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] PhoenixSource, BuildSource and MoteIF
you have to at least cut paste your error message here. also do you mean having two parallel serialforwarder running on different port or programmatically change the port number? regards; Peizhao José Manuel Sánchez-Matamoros Pérez wrote: Hi all! I'm developing an application for storing the data adquisition of a WSN. The programming language is java, so i need to use MIG application. I have made a program that reads messages from serial forwarder in port 9001; the code for initialize the object moteIF is the next: MoteIF mote = new MoteIF(); mote.registerListener(new LogMsg(), this); On this way my program run correctly and i can read every message sends by the WSN. I have the next problem: i want to configure my program for listenning serial forwarder on another TCP port, for example 1. How can i do it? I had thought on using the next code: PhoenixSource source = BuildSource.makePhoenix(BuildSource.makeSF(serial@/dev/ttyS0:57600, 1), PrintStreamMessenger.err); source.start(); MoteIF mote = new MoteIF(source); When i execute this code, i have an error and i don't know where is the problem. What can i do? Thanks!! -- José Manuel Sánchez-Matamoros Pérez ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How do I calculate RSSI value from received message
Hi all, as suggested in the mailing list, I retrieved the received RSSI value from the message structure and showed it in my application. the value is captured and stored into a struct of the basestation node and forward to my application through a nx_uint16_t type variable. fwdSensData-rssi = call CC2420Packet.getRssi(msg); and, in the message java class generated by TinyOS, it has message like below to get back this RSSI /** * Return the offset (in bits) of the field 'rssi' */ public static int offsetBits_rssi() { return 16; } /** * Return the value (as a int) of the field 'rssi' */ public int get_rssi() { return (int)getUIntBEElement(offsetBits_rssi(), 16); } however, when I output this reading from my application as System.out.println(Mote +Integer.toString(moteID)+ has RSSI =+Integer.toBinaryString(rssi)+ and Temperature= +df.format(tempDegreeC)); I got the following readings: Mote 7 has RSSI =110 and Temperature= 24.3 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =110 and Temperature= 24.31 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.31 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.31 Mote 7 has RSSI =11 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.31 Mote 7 has RSSI =11 and Temperature= 24.32 Mote 7 has RSSI =101 and Temperature= 24.31 Mote 7 has RSSI =101 and Temperature= 24.32 Mote 7 has RSSI =11 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.31 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.31 Mote 7 has RSSI =101 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =101 and Temperature= 24.28 Mote 7 has RSSI =101 and Temperature= 24.28 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =100 and Temperature= 24.29 Mote 7 has RSSI =101 and Temperature= 24.29 Mote 7 has RSSI =100 and Temperature= 24.28 Mote 7 has RSSI =101 and Temperature= 24.3 Mote 7 has RSSI =11 and Temperature= 24.29 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.29 Mote 7 has RSSI =100 and Temperature= 24.3 Mote 7 has RSSI =11 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.3 Mote 7 has RSSI =11 and Temperature= 24.31 Mote 7 has RSSI =10 and Temperature= 24.31 Mote 7 has RSSI =10 and Temperature= 24.31 Mote 7 has RSSI =11 and Temperature= 24.32 Mote 7 has RSSI =11 and Temperature= 24.33 Mote 7 has RSSI =11 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =110 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =10 and Temperature= 24.31 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =11 and Temperature= 24.32 Mote 7 has RSSI =100 and Temperature= 24.32 Mote 7 has RSSI =101 and Temperature= 24.32 Mote 7 has RSSI =101 and Temperature= 24.32 Mote 7 has RSSI =11 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.29 Mote 7 has RSSI =10 and Temperature= 24.29 Mote 7 has RSSI =1 and Temperature= 24.29 Mote 7 has RSSI =10 and Temperature= 24.28 Mote 7 has RSSI =10 and Temperature= 24.29 Mote 7 has RSSI =10 and Temperature= 24.29 Mote 7 has RSSI =10 and Temperature= 24.3 Mote 7 has RSSI =10 and Temperature= 24.32 Mote 7 has RSSI =10 and Temperature= 24.31 as suggested by some people that I need to do a two's complement on this binary value and add a -45 to get the input power (dBm). I knew something is wrong with my conversion, so can anyone figure me out how I should approach to the right RSSI value from these received packets? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Price of 500 Motes
you can directly contact them for an accurate quote! :-) It looks like you need computational intensive motes. regards; Peizhao Michael Collett wrote: Hi, I'm trying to get a ball park figure for the cost of a relatively large (100, 500 or 1000) network of motes, but don't particularly want to have to contact a salesman. Has anyone got experience of putting together networks of this size? How much would it cost? Do you get much of a discount from e.g. XBow for buying in large volumes? The platforms I'm probably interested in are: IMote2 SunSpot Anything else you may recommend Thanks, Mike --- This e-mail and any attachments may contain confidential and/or privileged material; it is for the intended addressee(s) only. If you are not a named addressee, you must not use, retain or disclose such information. NPL Management Ltd cannot guarantee that the e-mail or any attachments are free from viruses NPL Management Ltd. Registered in England and Wales. No: 2937881 Registered Office: Serco House, 16 Bartley Wood Business Park, Hook, Hampshire, United Kingdom RG27 9UY --- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help needed... how to set up the hardware??
With regard to your first question: To my understanding, MicaZ or Mica2 is battery powered. so you have access to the 51 Pin connector for your sensor board. The reasons you want to connect your Micaz/Mica2 to the MIB500 programming board are either you want to reprogram the TinyOS application or to use the serial communication just like a server/client kind communication. Overall, I will suggest you to follow the Official TinyOS tutorials. Thinking what you are trying to do. I will say Lesson 4 and 5 are what you are looking for at http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/index.html Enjoy :-) regards; Peizhao jothi jothi wrote: Dear sir, I am a student developing a system in wirelsess sensor nodes.Recently i am doing some work with the crossbow products..(micaz2,MIB5100,MIB600,TMS300,,,) At first i use MIB510,usg the serial connector...i just install the micaz to mib 510(just fix it on the top of it,using the 51 pin..).But then i dont know how to install the sensor bodes onto micaz2.When i refer to the guideline which was in the pdf format,sensor boards have to connect/install with the micaz...But how? So what i did it is,i saw there is another 51 pins at another side of MIB510,so i just install the sensor to it...Is that correct?? Second ,i use the the MIB600...i am having the same problem here...i dont know how the sensor boards have to be installed with micaz...there are housing provided for the sensor boardswhere the housing have battery on bottom of the housing...sensor boards have to installed with mote assembly board an dthen only placed it in the housingBut i couldnt find the mote assembly...??we bought the hardware as one full set... Sir ,can u explain in brief,how i can use the MIB600,Micaz,sensor boards.I really need help...since here in my college nobody have used these tool before..my project is basically about detecting the environmental changeslike temperature,humidity...now the main problem is i dont know about the setup of the tool...and how it works??By the way i am using Mote view,to collect and view data... I had been sending mails to quite number of peoples who involved in this ,but until now there is no reply... Hope that i will ger a reply...Your explaination very much appreciated Thank you... Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://us.rd.yahoo.com/evt=48246/*http://autos.yahoo.com/green_center/;_ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2VudGVy ___ 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] My tiny tutorial
My suggestion is for TinyOS community to start a WIKI where people can contribute their experiences. It will be hard for a person to summarize all information for different hardware platforms. Personally, I would like to help as well. Another thing is that the Mailing list is getting a bit mess, a good wiki pages will clear out a lot of obvious problem posts to this mailing list. regards; Peizhao Urs Hunkeler (TinyOS) wrote: Hi Bernardo, Looks promising. Would it be possible to make this a wiki? It would be interesting to have a section with all the different sensors available on the different mote platforms (for instance first sorted by mote families, then by sensor boards). This section could state the TinyOS modules required for reading a given sensor as well as how to convert the readings to common data formats. Cheers, Urs Bernardo Avila Pires schrieb: Greetings! I have recently written a tutorial, putting together some of the experience I gathered while trying to set up a WSN. I tried not to repeat what can be easily found. I would much appreciate all help and feedback, so as to improve the material to a level I consider satisfactory. Here it is: http://homepages.dcc.ufmg.br/~bpires/tutorials/tutorial/ Some datasheets can be found in: http://homepages.dcc.ufmg.br/~bpires/tutorials/manuals/ Please alert me if you find something whose distribution is restricted (I downloaded it from the official websites). For those of you who understand Portuguese, please read also http://homepages.dcc.ufmg.br/~bpires/tutorials/dossie I will eventually translate this last one to English. I thank you all in advance for your help. Regards, Bernardo Platform: MacOS X (Tiger) TinyOS version: 2.x Programmer(s): MIB600 Device(s): Mica2, MicaZ Sensor board(s): MTS300, MTS310 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] My tiny tutorial
Another thing with the TinyOS wiki is about its content management, I strongly recommend to separate it into sections (i.e.: TinyOS version 1.x, 2.x and future beta x.x :-) and related topic). I guess many people who use Ubuntu will agree that http://ubuntuguide.org/wiki/Ubuntu_Edgy wiki is somehow useful because you can find what you are after in a clear and relatively short description, rather than going through the entire page of documentation similar to TEP-XXX. Also, is it possible to divide the mailing list according to the version of TinyOS? It is a bit annoying that you have to look into which version people is using when you try to answer people's questions or search for an answer. I guess this will be a good starting point to make this mailing list to be more effective. regards; Peizhao Philip Levis wrote: On Aug 13, 2007, at 8:14 AM, Ákos Maróy wrote: Urs Hunkeler wrote: The TinyOS gentoo-wiki is a valuable resource for installing TinyOS on gentoo. However I think its scope is limited to gentoo. So the question yes, you're right - I just sent it as an example... we shouldn't post non-gentoo information on the gentoo wiki.. would be, where would we start a general-purpose TinyOS wiki? How about a wikibook http://en.wikibooks.org/wiki/Main_Page ? or be hosted on tinyos.net servers? Matt Welsh and I have been talking about doing exactly that. He's set up an initial page, which people are welcome to use: http://www.eecs.harvard.edu/~mdw/tinyosdocs/index.php/Main_Page He's currently in Ecuador deploying a network; the hope was to start to get things rolling when he returns. Our goal was that the wiki would be hosted at Harvard. The tinyos.net site is hosted by Berkeley, and the Debian packages are hosted by Stanford, so we thought that further distributing the administration would make it easier for new resources to join and also make it clear that it's a group effort. Phil ___ 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] SerialForwarder doesn't show messages.
Please refer to http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-May/016654.html you need to use the higher number of USB port for UART communication. well, I don't have the MIB520, so I am not sure whether it helps. regards; Peizhao Hemanth wrote: Hi, I have a TinyOS-1.x installation in Ubuntu . The hardware platform is MICA2 MIB520. In a test case, I have CntToLedsAndRfm uploaded on one mote A and the TOSBase uploaded on the mote B mounted at the base station. The LEDs on mote A blink at different frequencies as specified in the CntToLedsAndRfm application. Then, I started net.tinyos.sf.SerialForwarder with the options -comm serial@/dev/ttyUSB0:57600 and have successfully started the serialport monitor server but couldn't see the messages being received by TOSBase @ Mote A. Does anybody have any suggestion to resolve this problem? Thanks, Hemanth ___ 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] Tmote Sky Sensors for TinyOS 2.0
The best example application is AntiTheft demo that came with TinyOS-2.x. For retrieving different sensors readings, you will need to check on the MoteIV support page. There you can find excellence NesC codes for getting access to sensors and interpreting sensor readings. regards; Peizhao Hassan Naqvi wrote: Hi all, I am trying to port my application of sensing Hunidity, temperaure and PAR light and send it to the radio to TinyOS 2.0 I am getting problem in it. Any body could help me in this regard. If possible please send me some example application. Regards, -Hassan Got a little couch potato? Check out fun summer activities for kids. http://us.rd.yahoo.com/evt=48248/*http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz ___ 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] Query!
I suggest to use TinyOS-2.x for it robustness. I shouldn't need to change too much between hardware platforms. My TinyOS-2.X codes switched from Mica2 to Tmote Sky by switching Sensor modules. good luck regards; Peizhao Chen Bleed wrote: Hi I am also using tmote sky. TinyOS 1.x tutorial Lesson 4 is about radio communication. But I suggest you go from Lesson 1. http://www.tinyos.net/tinyos-1.x/doc/tutorial/ Chen, Chien Mao Date: Fri, 3 Aug 2007 14:48:40 -0700 From: [EMAIL PROTECTED] To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] Query! Hi, I am new to tinyOS. Right now I am working with tmote Sky mote to develop a simple wireless sensor network. I need to know how can I make radio on and off through software? I would be thankful for any prompt reply. Regards, -Hassan Looking for a deal? Find great prices on flights and hotels http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20- with Yahoo! FareChase. 下載最新版本的 Windows Live Messenger 8.1,分享音樂、共用搜尋,和即時傳 訊好友線上同樂!— 立即下載 http://get.live.com/messenger/overview ___ 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] Debugging radio layer
http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html please refer to the middle of the page regards; Peizhao Thamilarasu, Geethap wrote: Hi everyone, Is it possible to debug the radio layer using TOSSIM or other means? I can use the Leds to trace the functions, but if I need to check the actual packet contents at radio level, is there any method of doing it ? Please let me know Thanks Geetha ___ 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
[Tinyos-help] Location Detection using sensor's RSSI values
Hi Just wandering whether anyone has success in implementing location services/detection using RSSI values obtained from sensors, in particular, Tmote Sky ZigBee RSSI. -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS 2.x Tmote Sky RSSI value and node distance relation
Hi I know there is a long discussion about location service using RSSI value of CC2420 chip. But when I tried to measure the RSSI values from received packets sent every second, it seems very instable even in a range of less than 1 meter. // configuration components CC2420PacketC; NRCMSRootC.CC2420Packet - CC2420PacketC; // actual application fwdSensData-Rssi_value = call CC2420Packet.getRssi(msg); so what is the meaning of gathered RSSI value from these received packets? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How can I receive message of two different types?
Hi I have three motes: Mote(Base) - receive sensing data from Mote(Sensor) nodes and forward them to PC. Mote(Sensor) - sense temperature readings, and listen to Mote(Base) for changing of sampling rate, etc; and listen to Mote(Reference) for location reference points to calculate its current position. Mote(Reference) - periodically broadcast its location. So, how can I implement the Mote(Sensor) to receive two different message types when they arrived? My current TinyOS application is a modification of AntiTheft app, but not sure how I can distinguish these different message types. -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Latest CVS tinyos-2.x incompatible with Mac OS X (Intel)
Hi, I know that tinyos-2.x for Mac OS X is not supported by WG. But I would like to know whether some Darwin statements have been added to the source codes. Before, I was able to install tinyos-2.x according to http://docs.google.com/View.aspx?docid=ajjph9mvqk3z_bchp66xkmgk6n but now when I use the latest CVS version, I have whole bunch of problems. I failed to apply the patch as a start. http://userfs.cec.wustl.edu/%7Ekak1/tinyos2_mac_install/tinyos-2.x-tools-intel-mac.patch so anyone can tell me why? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] About DemoSensorC implementations
Hi Farhana, There are a lot of threads talked about this problem, you can just do a google search. regards; Peizhao Farhana Khan wrote: Hello I am working in Tinyos 2.0 using TOSSIM and needs some information regarding the DemoSensorC component. Each time when I run the Sense and radiosensetoLeds application under TOSSIM, it returns me same constant values for no matter how long I run the application. Can you please guide me how can I get random values while working in TOSSIM as getting with the ADC and |ADCControl| interfaces and component photo in TinyOS 1.x. Regards Farhana Ready for the edge of your seat? Check out tonight's top picks http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/ on Yahoo! TV. ___ 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] send value to file .txt
what Michael means is if you already have the values output to a terminal windows, in Linux you can redirect the values to a file, for writing a collection program, please check my early reply. CASTEL Myriam wrote: I'm sorry but I don't really understand what I have to do. I have understood that I have to write a program in Java to do the acquisition of the port COM and send the values in a file .txt. But how can I do that? Is there some examples of such programs? Where did you post the necessary stream open method sequence ? Thanks Michael Schippling [EMAIL PROTECTED] a écrit : If you have a program that is writing the values to the console window, you can redirect it's output into a file like this: program file.txt See the bash man page or info for more details on redirection. And you can of course add a file write to any java program for which you have the source. I posted the necessary stream open method sequence (which is not entirely transparent) some time ago. MS CASTEL Myriam wrote: Hi, In the end of my application (with the mica2 and mib520), I need to store some values (but not all) send by the motes because I want to read them with Matlab. At the moment, I am using XSniffer. I can read the packets and put them manually in Matlab.But it is too long and I prefer to do it manually. Therefore sending the value to a file .txt seems to be good. Is it possible to do that with Moteworks or cygwin? and how? Thanks for your advise. ___ 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 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] send value to file .txt
Hi, You can implement your own data collection program using the AntiTheft example, shipped with TinyOS-2.X. Having a basic station to listen or collect all broadcast data, you can store this data in any form you like. any other useful example is the Osilloscope. Good Luck CASTEL Myriam wrote: Hi, In the end of my application (with the mica2 and mib520), I need to store some values (but not all) send by the motes because I want to read them with Matlab. At the moment, I am using XSniffer. I can read the packets and put them manually in Matlab.But it is too long and I prefer to do it manually. Therefore sending the value to a file .txt seems to be good. Is it possible to do that with Moteworks or cygwin? and how? Thanks for your advise. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Monitoring neighbor
maybe implementing a listening node, which discards all received data, can help you Thamilarasu, Geethap wrote: Hi, Is there a way to monitor neighbor nodes packet transmission/reception without any explicit feedback from the neighbor node? Thanks Geetha ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tinyos (help) oscilloscope help
yeah, it is common, because it is the ADC value I guess. refer to the sensor data sheet for data conversion. you will need to convert it from engineering value to scientific value. [EMAIL PROTECTED] wrote: Hi All can anybody reply please, I am new to tinyos regards Hi I am running the Oscilloscope program on a TelosB Mote as described in the manual and I succesfully connected it to the java oscilloscope. Now I wonder what I am getting on a TelosB Mote. My results are all around 3200, is that normal? Is there any specific documentation available on using the TelosB sensors in tinyos? Please help in understanding the results. Thanks for your help Nazish Irfan ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CC2420 sleep mode
I guess by saying sleep mode, people is referring to two types: (a) turn on all power management features for radio, MCU, etc; (b) simply, implement your own sleep mode schema, turn on/off the radio according to timer fired. mona zima wrote: Hello, I am new in tinyos 2 and I have a question. I would like to let the tmote sky mote to go to sleep mode,I have read that the msp430..microcontroller does the job automatically! is that true? What about the C2420? How is it possible to switch it off and on. Many thanks for any help. mona ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help with DemoSensorC..doesnt work on my system
firstly, make sure that your MTS300 sensor board is connected probably to the Mica2 wireless module. I experienced a constant result last time when my MTS300 is not connected probably. :-) secondly, change back to DemoSensorC to see whether you got different value over time, as I remembered, the DemoSensorC component is for measuring voltage draw, so you will see the changes. you are right, to use Temperature Sensor just change DemoSensorC to TempC, it will work. for conversion of ADC values to appropriate DegreeC value please search the mailing list. there is a java example shows how to do it. Murtuza wrote: Hi friends, The sensor and ADC related part is really confusing to me. According to the tutorial we can change the DemoSensorC file and make it work as we intend. Right? I changed it to measure the temperature by doing this components new TempC() as Sensor; I want to measure the temperature using a mica2 with mts300 sensorboard. I wrote an application which calls the Read.read interface provided. Should this not return the temperature reading. But whatever I do i.e whether i use TempC or PhotoC I always get the same values. I get a value of 01 97 irrespective of what I use. Why is this so? Why is it that the sensorboard is not working. Is it sth related to my Tinyos-2.x installation? Plz help me out. Thanking You MMA ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [Broadcast and tree graph]
It sounds like the Collection and Dissemination services. vazoumana fofana wrote: hello, i want to implement an appliaction where a basestation broadcast a message wich contains its id and distance ( 0 for the sink). When a mote receive its message, it acks by sending its id end distance by incrementing distance. It does recursively until all motes have acked messages. It looks like to CPT. At the end, the base station can have a tree of all motes. Have you ever programmed it ? Can you help me ? _ Windows Live Spaces : créez votre blog à votre image ! http://www.windowslive.fr/spaces ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [TinyOS-2.x]TestPrintf example doesn't compile
Hi David, I tried to compile the TestPrintf example, but I got error: sah224:~/TinyOS/tinyos-2.x/apps/tests/TestPrintf phu$ make mica2 mkdir -p build/mica2 mig java -target=mica2 -I/Users/phu/TinyOS/tinyos-2.x/tos/lib/printf -DIDENT_PROGRAM_NAME=\TestPrintfAppC\ -DIDENT_USER_ID=\phu\ -DIDENT_HOSTNAME=\sah224.bne.nict\ -DIDENT_USER_HASH=0xa1b7bbefL -DIDENT_UNIX_TIME=0x466a5b3cL -DIDENT_UID_HASH=0xeab956a8L -java-classname=PrintfMsg /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/printf.h printf_msg -o PrintfMsg.java javac PrintfMsg.java javac PrintfClient.java compiling TestPrintfAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -fnesc-separator=\never1096WritE -I/Users/phu/TinyOS/tinyos-2.x/tos/lib/printf -DIDENT_PROGRAM_NAME=\TestPrintfAppC\ -DIDENT_USER_ID=\phu\ -DIDENT_HOSTNAME=\sah224.bne.nict\ -DIDENT_USER_HASH=0xa1b7bbefL -DIDENT_UNIX_TIME=0x466a5b3cL -DIDENT_UID_HASH=0xeab956a8L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/mica2/wiring-check.xml TestPrintfAppC.nc -lm In file included from /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /Users/phu/TinyOS/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') make: *** [exe0] Error 1 also, do I need to have a specific JTAG ICE pod? or any thing I can buy with JTAG ICE support? David Gay wrote: On 6/8/07, Peizhao Hu [EMAIL PROTECTED] wrote: thanks David, I tried to modify your example AntiTheft application to implement control of sensor node from the root: 1. node notify its appearance to the base station and wait for further instructions (either into low power waiting mode or start sampling) 2. base station can inactive a node by disseminate the operation mode with the target ID. However, I finished everything and deployed onto the motes, I have no idea how I can debug the application. so is there any debugging tool that I can use rather than 3 low bits leds? Some options: - http://www.tinyos.net/tinyos-1.x/doc/nesc/nesc-debugging.html - tossim - tinyos-2.x/tos/lib/printf - send some of your own radio or serial messages for debugging Personally, I tend to mostly use avarice/gdb and the leds... David -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Is there anyone know how to use java to get the data from motes?
check the latest CVS tinyos2.x source code, there are lots of examples. Hover Dong wrote: hi, I am doing a application. I should use java to get the data from motes thought serial port on PC. I think there some source code about it. Is there any one has done it or know which source code about it. If so, please tell me. I will appreciate ur helps!!! BTW, I am using TinyOS2.0. Live Earth is coming. Learn more about the hottest summer event - only on MSN. Check it out! http://liveearth.msn.com?source=msntaglineliveearthwlm ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [TOS-2.x] Testing of Collection and Dissemination Services in TOSSIM
Dear all, anyone know how i can test my Collection and Dissemination services under TOSSIM? I separated motes into Root and Nodes just like the AntiTheft example provided by TinyOS2.x, but I have no idea how I can debug this decoupled network. any better documentation for TOSSIM? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [TinyOS-2.x]Documentation for all components and interfaces
thanks David, I tried to modify your example AntiTheft application to implement control of sensor node from the root: 1. node notify its appearance to the base station and wait for further instructions (either into low power waiting mode or start sampling) 2. base station can inactive a node by disseminate the operation mode with the target ID. However, I finished everything and deployed onto the motes, I have no idea how I can debug the application. so is there any debugging tool that I can use rather than 3 low bits leds? David Gay wrote: On 6/7/07, Peizhao Hu [EMAIL PROTECTED] wrote: Hi David, so which version of tinyos your example application antiTheft is based on? It cant find the DisseminationC component from the documentation Philip suggested, but it is in my tinyos2.x directory, under lib/net/ The AntiTheft demo is for 2.0.1. The online documentation should soon be updated to match 2.0.1... David Gay -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [TinyOS-2.x]Documentation for all components and interfaces
Dear TinyOS developers, Is there any API kinds of documentation for all available interfaces and components? hard to know what is available from which component or interface by searching the tos directories. also, a suggestion to keep the mailing list tidy, can you create separate mailing list for tinyos 1.x and tinyos 2.x, or enforce people to put version number in front of their messages, since most of replies are asking what version number they are having trouble with. -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [TinyOS-2.x]Documentation for all components and interfaces
Hi David, so which version of tinyos your example application antiTheft is based on? It cant find the DisseminationC component from the documentation Philip suggested, but it is in my tinyos2.x directory, under lib/net/ David Gay wrote: On 6/7/07, Philip Levis [EMAIL PROTECTED] wrote: On Jun 7, 2007, at 9:31 AM, Peizhao Hu wrote: Dear TinyOS developers, Is there any API kinds of documentation for all available interfaces and components? hard to know what is available from which component or interface by searching the tos directories. http://www.tinyos.net/tinyos-2.x/doc/html/nesdoc/ has most of them. Note that this is currently the 2.0 doc, not 2.0.1. Should be fixed soon. David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] [lesson 4 with tinyOs2.0]
A common problem that have to be mentioned in the documentation. possible reasons: 1. if you are using SerialForwarder, make sure your problem is pointing to the same port number, which SerialForwarder is outputing to. you can start your SerialForwarder as java net.tinyos.sf.SerialForwarder -port 9003 -comm serial@/dev/ttyS0:mica2 then you use use [EMAIL PROTECTED]:9003 2. if you tried to connect from other host rather than localhost, you have to make sure the System-wide Environment Variable for MOTECOM is set to whatever you desired to use. i.e.: [EMAIL PROTECTED]:PORT if you look into the TinyOS source code, you will found the JNI function tries to get this variable using ENV.getenv(MOTECOM). It binds to default value ([EMAIL PROTECTED]:9002) when it can't resolve the variable. for Mac Users, there is a tool, called RCEnvironment, which allows you to add system-wide environment variable (require reboot/logout to take effect). Benjamin Madore wrote: On Tue, June 5, 2007 10:26 am, vazoumana fofana said: i try to compile the lesson 4 Mote Pc serial Communication and Serial Forwarder : When i execute java TestSerial, there is an error message wich appears : [EMAIL PROTECTED]:9002 died - exiting (java.net.ConnectException: Connection refused). What platform? (Windows, Linux, Mac) Do you have a firewall? Have you set up your motecom variable? What commands are you using to execute TestSerial? Are you using the serial forwarder or not? What version of TinyOS? -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Question with regard to the Oscilloscope example
Hi All, I modified the Oscilloscope example that came with TinyOS 2.X to log temperature data using Mica2 and MTS300 Sensorboard. I have a few questions related to the example and the temperature data I got. 1. I am using SerialForwarder with port 9002. But I can't find this definition in the Oscilloscope example. so is port 9002 a default port number for serialforwarder and the example just bind to this default port 9002? 2. the second question is related to the temperature readings: Mote 2 reading at count 0: 513.8 Mote 2 reading at count 2: 513.1 Mote 2 reading at count 4: 513.1 Mote 2 reading at count 6: 513.0 Mote 2 reading at count 14: 511.8 Mote 2 reading at count 17: 511.3 Mote 2 reading at count 19: 511.2 Mote 2 reading at count 22: 511.1 Mote 2 reading at count 24: 511.2 Mote 2 reading at count 27: 511.0 Mote 2 reading at count 29: 511.0 Mote 2 reading at count 32: 510.0 Mote 2 reading at count 34: 510.1 Mote 2 reading at count 37: 510.0 Mote 2 reading at count 39: 510.1 Mote 2 reading at count 43: 510.0 Mote 2 reading at count 46: 510.2 ... from the above dataset, it seems like the mote is not reporting data at every count (I only have one mote running, so shouldn't have jump ahead). Also, how can I convert these values into degree C temperature value? -- Regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] mac os x (intel) installation
try this, so far I don't have any problem with it. http://docs.google.com/View.aspx?docid=ajjph9mvqk3z_bchp66xkmgk6n :-) let me know whether you got it working. Antonio wrote: Hi Guys, I am trying to install tinyos on mac os x (intel based, ver 10.4.9) and I am getting a compiler error (unable to generate executable). I have already installed xcode from the utility CD but I am not sure whether the version is not supported by tinyos. I have been trying several tinyos installation instructions for Apple and did not still get a reliable one (from the beginning step to the end step). I am now following the instructions in http://www.mis.informatik.tu-darmstadt.de/People/kristof/notes/tinyos-on-mac with troubles :(. The error I am getting: processing BINUTILS download BINUTILS: found archive/binutils-2.17.tar.bz2, skipping download found build/binutils-2.17, skipping decompress building BINUTILS loading cache ./config.cache checking host system type... i386-apple-darwin8.9.1 checking target system type... msp430-unknown-none checking build system type... i386-apple-darwin8.9.1 checking for a BSD compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for gcc... /usr/bin/gcc-3.3 checking whether the C compiler (/usr/bin/gcc- 3.3 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. I have been using built-in specs. Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc- 5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5367) I thought some problem of incompatibility, then I selected the gcc 3.3 compiler with: sudo gcc_select 3.3 but I got the same error. I also tried the website http://www.ee.ucla.edu/~ram/misc.html http://www.ee.ucla.edu/%7Eram/misc.html I would appreciate greatly any suggestions Greetings Antonio -- _ Antonio Ruzzelli UCD Dublin ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Question with regard to the Oscilloscope example
Dear Philip, after that I realized the TinyOS 2.X environment generated a build source as BuildMachineName, and inside it, there is a environment variable checking before it binds to default value, [EMAIL PROTECTED]:9002, by using Env.getenv(MOTECOM). how can I change the ENV setting to override this default behavior? I tried with export option, but it seems not right. I guess the reading dropping happened is because the synchronized public void messageReceived(int dest_addr, Message msg) {} please correct me if I am wrong. The code I used to convert temperature (in Java): // readings contain N samples void temperatureADC2Celsius(int moteID, int count, int[] readings){ double avgTemp = 0.0; for(int temp : readings){ avgTemp += temp; } avgTemp /=readings.length; double a=0.00130705; double b=0.000214381; double c=0.00093; double R1 = 1.0; double ADC_FS = 1023.0; double adc = avgTemp; double Rthr = R1 * (ADC_FS-adc) / adc; double tempKelvin = 1 / (a + b * Math.log(Rthr) + c * Math.pow(Math.log(Rthr),3)); double tempDegreeC = tempKelvin - 273.15; System.out.println(Mote +Integer.toString(moteID)+ reading at count +count+: +Double.toString(tempDegreeC)); } the values I got from this function is similar to the outputs from a temperature meter. It is according the Crossbow's documentation. Philip Levis wrote: On Jun 3, 2007, at 11:36 PM, Peizhao Hu wrote: 1. I am using SerialForwarder with port 9002. But I can't find this definition in the Oscilloscope example. so is port 9002 a default port number for serialforwarder and the example just bind to this default port 9002? Yes. Please read tutorial 4. 2. the second question is related to the temperature readings: Mote 2 reading at count 0: 513.8 Mote 2 reading at count 2: 513.1 Mote 2 reading at count 4: 513.1 Mote 2 reading at count 6: 513.0 Mote 2 reading at count 14: 511.8 Mote 2 reading at count 17: 511.3 Mote 2 reading at count 19: 511.2 Mote 2 reading at count 22: 511.1 Mote 2 reading at count 24: 511.2 Mote 2 reading at count 27: 511.0 Mote 2 reading at count 29: 511.0 Mote 2 reading at count 32: 510.0 Mote 2 reading at count 34: 510.1 Mote 2 reading at count 37: 510.0 Mote 2 reading at count 39: 510.1 Mote 2 reading at count 43: 510.0 Mote 2 reading at count 46: 510.2 ... from the above dataset, it seems like the mote is not reporting data at every count (I only have one mote running, so shouldn't have jump ahead). Also, how can I convert these values into degree C temperature value? You're dropping packets? I'm not sure how you got floating point numbers, so it's hard to say how to convert them to temperature... Phil -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Does Mica2 2003 version works with TinyOS 2.x?
Hi, All, I just received a mote kit from my supervisor she bought in year 2003. I have setup TinyOS 2.X on my ubuntu machine. And I tested it will the Blink application without any problem. However, when I got to Lesson 3 that require one of the mote to receive packet from over the radio. It didn't do anything. I confirmed it triggered the AMSend.send command with call Leds.led0Toggle(); just after the send command. and it does blink. but the toggling of Led1 in my receive never occurs. I also tested it with the RadioCountToLeds example, which came with TinyOS 2.x package, but it is the same, no luck. so my question is whether my hardware compatible with TinyOS 2.x. The hardware specification I can see on the board: MPR400CB 2003 CrossBow C29 with 900MHZ -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Does Mica2 2003 version works with TinyOS 2.x?
Dear Philip, I searched through the archives and found this CFLAGS = -DCC1K_DEFAULT_FREQ=9 I add to the RadioCountToLeds example. and installed to two motes. doesn't help. I also tried different Frequency suggested like 91670. no luck. it appears the Led0 is on and nothing else, I tried java net.tinyos.tools.Listen, nothing is coming through. well the label said 900MHz, so I assumed it supports 9 setting. please help! Philip Levis wrote: On Jun 2, 2007, at 2:51 AM, Peizhao Hu wrote: Hi, All, I just received a mote kit from my supervisor she bought in year 2003. I have setup TinyOS 2.X on my ubuntu machine. And I tested it will the Blink application without any problem. However, when I got to Lesson 3 that require one of the mote to receive packet from over the radio. It didn't do anything. I confirmed it triggered the AMSend.send command with call Leds.led0Toggle(); just after the send command. and it does blink. but the toggling of Led1 in my receive never occurs. I also tested it with the RadioCountToLeds example, which came with TinyOS 2.x package, but it is the same, no luck. so my question is whether my hardware compatible with TinyOS 2.x. The hardware specification I can see on the board: MPR400CB 2003 CrossBow C29 with 900MHZ Yes, it is compatible. But you need to tell TinyOS that you are using a 900MHz radio, not a 433MHz radio (the default). If you search through the archives there are a lot of messages on how to do this. Phil -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Does Mica2 2003 version works with TinyOS 2.x?
Sorry to my previous reply. just realized in TinyOS 2.X is using constants to set freq. however when I tried this: /opt/tinyos-2.x/apps/RadioCountToLeds$ CFLAGS=-DCC1K_DEFAULT_FREQ=CC1K_915_998_MHZ make mica2 install mkdir -p build/mica2 compiling RadioCountToLedsAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c -board=micasb -DCC1K_DEFAULT_FREQ=CC1K_915_998_MHZ0 -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/mica2/wiring-check.xml RadioCountToLedsAppC.nc -lm In file included from /opt/tinyos-2.x/tos/chips/cc1000/CC1000CsmaRadioC.nc:72, from /opt/tinyos-2.x/tos/chips/cc1000/CC1000ActiveMessageC.nc:57, from /opt/tinyos-2.x/tos/platforms/mica2/ActiveMessageC.nc:60, from /opt/tinyos-2.x/tos/system/AMQueueP.nc:43, from /opt/tinyos-2.x/tos/system/AMSenderC.nc:50, from RadioCountToLedsAppC.nc:48: In component `CC1000ControlP': /opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc: In function `CC1000Control.init': /opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282: `CC1K_915_998_MHZ0' undeclared (first use in this function) /opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282: (Each undeclared identifier is reported only once /opt/tinyos-2.x/tos/chips/cc1000/CC1000ControlP.nc:282: for each function it appears in.) make: *** [exe0] Error 1 why it changes my constant to CC1K_915_998_MHZ0 ?? Philip Levis wrote: On Jun 2, 2007, at 2:51 AM, Peizhao Hu wrote: Hi, All, I just received a mote kit from my supervisor she bought in year 2003. I have setup TinyOS 2.X on my ubuntu machine. And I tested it will the Blink application without any problem. However, when I got to Lesson 3 that require one of the mote to receive packet from over the radio. It didn't do anything. I confirmed it triggered the AMSend.send command with call Leds.led0Toggle(); just after the send command. and it does blink. but the toggling of Led1 in my receive never occurs. I also tested it with the RadioCountToLeds example, which came with TinyOS 2.x package, but it is the same, no luck. so my question is whether my hardware compatible with TinyOS 2.x. The hardware specification I can see on the board: MPR400CB 2003 CrossBow C29 with 900MHZ Yes, it is compatible. But you need to tell TinyOS that you are using a 900MHz radio, not a 433MHz radio (the default). If you search through the archives there are a lot of messages on how to do this. Phil -- regards; Peizhao ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help