Re: [Tinyos-help] Using JAVA techniques for Programming Real Sensor Nodes

2013-02-10 Thread Urs Hunkeler
Hi, For Java on motes, you might want to look at: - Sun SPOT: http://www.sunspotworld.com/ - IBM Mote Runner: http://www.zurich.ibm.com/moterunner/ Cheers, Urs On 02/10/2013 04:52 PM, idrees hussein wrote: I am newbie student in the field of sensor nodes, I am wondering if it is possible to

Re: [Tinyos-help] Sht11 sensors and TOSSIM

2012-12-05 Thread Urs Hunkeler
Hi, I don't think you can simulate the Sht11 with TOSSIM. As far as I remember, in TinyOS 2.x you can only simulate the micaz, which doesn't have the Sht11. The command make telosa works because it compiles the code for the TelosA platform, but you won't be able to simulate it with TOSSIM.

Re: [Tinyos-help] Simulator

2012-10-02 Thread Urs Hunkeler
Hi, 1) As far as I know, and unless there were major improvements that were not discussed on the mailing list, TOSSIM does not support TelosB (yet). I have extended the Avrora simulator to also simulate the TelosB platform (at least partially, but including some sensors and the radio

Re: [Tinyos-help] Simulator

2012-10-02 Thread Urs Hunkeler
/2012 09:16 AM, Anandghan W wrote: Hi Urs, Which simulator should i use since there is no standard simulator ? It is necessary for me to simulate the code . I found a simulator Wsim http://wsim.gforge.inria.fr/tutorial.html , have you worked on it? On Tue, Oct 2, 2012 at 12:25 PM, Urs

Re: [Tinyos-help] Telosb Simulator in TinyOS.

2012-09-19 Thread Urs Hunkeler
(copy for mailing list without attachment, as it is too big for the mailing list) Hi Lukas, I've implemented preliminary support for TelosB in Avrora. As far as I know it has not been integrated into the official version. I haven't worked on it for quite a while, so I am not sure what does

Re: [Tinyos-help] errors in 'make telosb sim'

2011-12-22 Thread Urs Hunkeler
Hi, I have an experimental extension of the Avrora hardware simulator to support the TelosB platform. Why do you need to simulate TelosB? Cheers, Urs On 12/22/2011 01:13 AM, Tao Zheng wrote: And is there any simulation tools supporting telosb platform? Thanks -Original Message-

Re: [Tinyos-help] Telosb light sensor specification

2011-11-25 Thread Urs Hunkeler
Hi, I remember getting values close to 0 ( 50) when it is dark and values just slightly greater than 1000 when it is very bright (without any conversion). If your values don't change much, I think there is a problem with the sensor. You should see a clear drop (50%?) when you cover the light

Re: [Tinyos-help] Cannot receive packets from serial port

2011-11-21 Thread Urs Hunkeler
Hi, Thanks for the detailed explanation why you posted off list. I think the list server is having a problem. Could you program the TestSerial test application on the mote, and then try the following command on Ubuntu? screen /dev/ttyUSB0 115200 This would just open the serial port and show

Re: [Tinyos-help] Question about tmote sky flash storage

2011-11-21 Thread Urs Hunkeler
Hi David, If I have a tmote sky mote (telosb), then: 1. How much storage space is there in flash? 1 MB in the external (i.e., not on the microcontroller, but on the PCB) flash. If I remember correctly, this is actually 1024*1024 bytes.

Re: [Tinyos-help] need help in tossim

2011-11-18 Thread Urs Hunkeler
Hi, There is a tutorial for this: http://docs.tinyos.net/tinywiki/index.php/TOSSIM Cheers, Urs On 11/17/11 8:04 AM, Shaloo Dadwal wrote: Sir, Please help me in writing and running nesC codes on TOSSIM version 2.x. thank you ___ Tinyos-help

Re: [Tinyos-help] MDA300/320 and TelosB

2011-11-18 Thread Urs Hunkeler
Hi, There is a document about an adapter that you can build. Essentially, you can get the hardware to communicate, but you would have to adapt the software by yourself. http://www.tinyos.net/hardware/telos/telos-legacy-adapter.pdf Cheers, Urs On 11/18/11 5:12 AM, Rakshitha GB wrote: hi

Re: [Tinyos-help] need help in tossim

2011-11-18 Thread Urs Hunkeler
it with make command. Thank You On Fri, Nov 18, 2011 at 3:08 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi, There is a tutorial for this: http://docs.tinyos.net/tinywiki/index.php/TOSSIM Cheers, Urs On 11/17/11 8:04 AM, Shaloo Dadwal

Re: [Tinyos-help] Java Problem using Telosb nodes

2011-11-16 Thread Urs Hunkeler
it works if you install when are in two different application, do the new one erase the previous one ? make telosb install,1 make telos reinstall,2 is used in the tutorial and I don't understand the difference. Thank you for you help once again. On Wed, Nov 16, 2011 at 1:48 AM, Urs Hunkeler

Re: [Tinyos-help] Java Problem using Telosb nodes

2011-11-16 Thread Urs Hunkeler
to combine a lot of applications I need to put them in the same directory with the makefile rules which fits to get one unique source code ? On Wed, Nov 16, 2011 at 8:29 AM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi again :-), make install compiles

Re: [Tinyos-help] Java Problem using Telosb nodes

2011-11-15 Thread Urs Hunkeler
Hi, It looks like the TinyOS Java libraries are not in your classpath. There should be a tinyos.jar file somewhere, and the CLASSPATH environmental variable should point to it. You can try something like: export CLASSPATH=.:$TOSROOT/support/sdk/java/tinyos.jar java net.tinyos.tools.Listen

Re: [Tinyos-help] Java Problem using Telosb nodes

2011-11-15 Thread Urs Hunkeler
for the help. On Tue, Nov 15, 2011 at 2:10 AM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi, It looks like the TinyOS Java libraries are not in your classpath. There should be a tinyos.jar file somewhere, and the CLASSPATH environmental variable

Re: [Tinyos-help] tinyos to .NET serial communication

2011-11-14 Thread Urs Hunkeler
Hi, Sorry, I have never worked with C# or .NET. Cheers, Urs On 11/10/11 3:19 PM, i080253 Ahsan Javed wrote: Hi, I was searching net for telosb to .NET serial communication. i came across an archive where you performed serial communication. Can you tell me how you import tinyos.jar library

Re: [Tinyos-help] tinyos to .NET serial communication

2011-11-14 Thread Urs Hunkeler
Hi, Sorry, I have never worked with C# or .NET. Cheers, Urs On 11/10/11 3:19 PM, i080253 Ahsan Javed wrote: Hi, I was searching net for telosb to .NET serial communication. i came across an archive where you performed serial communication. Can you tell me how you import tinyos.jar library

Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-14 Thread Urs Hunkeler
know if I am doing something wrong. Thanks Regards, Jenis -Original Message- From: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Urs Hunkeler Sent: Friday, November 04, 2011 12:10 AM To: tinyos-help

Re: [Tinyos-help] designing full feature Tinyos Application with simulator ?

2011-11-14 Thread Urs Hunkeler
Hi, To answer your second question: I don't know how you could do this with TOSSIM. Avrora simulates the hardware devices and allows you to create virtual serial ports to which you can connect your back-end applications with the user interface. http://compilers.cs.ucla.edu/avrora/

Re: [Tinyos-help] Conflicting conversion formulas of telosb internal temperature sensor

2011-11-14 Thread Urs Hunkeler
Hi, The formula in the internal temperature sensor module might refer to the value you'd get when sampling the temperature sensor internal to the msp430 microcontroller. For the two SHT11 formulas, I have no idea what the second formula refers to, the first one seems to be the one from the

Re: [Tinyos-help] Simulation of client/server cluster model

2011-11-06 Thread Urs Hunkeler
Hi TOSSIM doesn't have the memory limitations of real WSN hardware, so you could write a single big application that contains the code for both the special cluster and the rest of the WSN. You then activate one or the other code in a simple if() statement testing the nodeID of the motes.

Re: [Tinyos-help] Error while running net.tinyos.tools.Listen -- URGENT

2011-11-04 Thread Urs Hunkeler
Hi Jenis, From what I read I think you are using the MIB600 programming board originally from Crossbow? The connection-refused message means that the program tried to establish a TCP connection to the given IP address and port number, and the device refused it. Maybe the programming of the

Re: [Tinyos-help] Run tinyos specific commands from a java program.

2011-11-02 Thread Urs Hunkeler
Hi Ashish, When executing a process from Java, the process is executed as a binary, or at least without any environmental variables set. You could run the shell program (e.g., /bin/bash) with the script to execute as an argument. In addition, you might want to use absolute paths for the

Re: [Tinyos-help] tinyos help

2011-11-01 Thread Urs Hunkeler
Hi Amit, Please don't contact people directly, send your messages to the mailing list. The description of the problem that you have given is not accurate enough to really claim that your problem is similar to problems I might have had in the past. Which hardware are you using? Do you check

Re: [Tinyos-help] Simulation tool for TinyOs 2.x?

2011-10-31 Thread Urs Hunkeler
Hi Salahadin, Depending on your needs you might also be interested in Avrora: http://compilers.cs.ucla.edu/avrora/ Avrora is a Mote hardware simulator written in Java and simulates the behavior of the actual hardware (thus it also runs applications written with a different framework than

Re: [Tinyos-help] Problem with serial communication using telosa

2011-10-27 Thread Urs Hunkeler
Hi Luís, These are interesting findings. I don't think it is a problem related to Java as a language. It appears to me that the microcontroller is reset as soon as the serial port is opened. Maybe the Java programs that you have tried set some handshaking lines that cause a reset. If you look

Re: [Tinyos-help] Problem with serial communication using telosa

2011-10-27 Thread Urs Hunkeler
I? Well I could make some C/C++ program to do what I want. Luís Pereira On Thu, Oct 27, 2011 at 07:39, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi Luís, These are interesting findings. I don't think it is a problem related to Java

Re: [Tinyos-help] Problem with serial communication using telosa

2011-10-26 Thread Urs Hunkeler
Hi Luís, The FTDI drivers actually only create one serial port (the others were probably thinking of the X-Bow MIB520 programming boards for the Mica-series of motes). The telosa platform is distinct from the telosb / tmote platform. If you really have a telosa platform, maybe you could try

Re: [Tinyos-help] Problem with serial communication using telosa

2011-10-26 Thread Urs Hunkeler
Hi Luís, I just had a look. It appears that telosa, telosb and tmote all use the same baud rate, and that the platform name for telosa on TinyOS is just telos (not tmote). TelosA and TelosB/Tmote are similar, but not identical. It is entirely possible that if you compile your programs for the

Re: [Tinyos-help] Regarding Tiny os Java

2011-10-18 Thread Urs Hunkeler
Hi, TinyOS is based on C. Java is only used on the back-end (e.g., computer). With TinyOS you cannot use Java on the sensor platforms (e.g., motes) themselves. If you are interested in using Java on the sensor nodes, you might want to look into IBM's moterunner project:

Re: [Tinyos-help] IPv6 tunneling

2011-10-17 Thread Urs Hunkeler
Hi Marios, Have you asked in the Sixxs forums? I don't see why Sixxs would need to be able to ping your hosts on the IPv4 network. As long as your IPv6-tunnel agent (aiccu) is receiving and answering the server's replies, it should work. Sixxs is indeed pinging your end-point, but, as far as

[Tinyos-help] PacketTim

2011-07-22 Thread Urs Hunkeler
Hi Nihsad, Unfortunately, I am not a specialist for time synchronization. I am sure there are people much more experienced in this area on the mailing list (which is why it's always a good idea to send messages to the mailing list). I can only point you to the PacketTimeStamp interface

Re: [Tinyos-help] Sensor node Programming guidance for beginners

2011-07-20 Thread Urs Hunkeler
Hi, Have you looked at the tutorials? http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials In my opinion, the tutorials are very well done to get you started actually using TinyOS to program real devices. To actually do the tasks described in the tutorials, you'll also need to install

Re: [Tinyos-help] Compiling toscomm and getenv

2011-07-05 Thread Urs Hunkeler
Hi Rodrigo, You would need to compile the tools in $TOSROOT/tools directory. If I remember correctly, this directory is not installed by default on Windows. You can find the contents of this directory in the subversion repository. I am not too familiar with Windows and I have never worked on

Re: [Tinyos-help] create file

2011-07-05 Thread Urs Hunkeler
Hi, Why do you want to write to a text file? TinyOS on embedded sensor hardware currently does not really support file systems. You might want to have a look at writing to Flash: http://docs.tinyos.net/tinywiki/index.php/Storage Cheers, Urs On 7/5/11 11:02 AM, Akila Kiki wrote: Hi, I want

Re: [Tinyos-help] create file

2011-07-05 Thread Urs Hunkeler
list about how others would implement this. Cheers, Urs On 7/5/11 12:13 PM, Akila Kiki wrote: what do you want to say by writing to flash,can you give me some explanation, have you documentation about mobility models;thank you --- En date de : *Mar 5.7.11, Urs Hunkeler /urs.hunke...@epfl.ch

Re: [Tinyos-help] getenv JNI libray

2011-05-13 Thread Urs Hunkeler
Hi, Not all functionality can be implemented in Java, and in TinyOS access to operating system variables (getenv) and to the serial port (toscomm) are implemented as native libraries. Why getenv is necessary, I don't know. In any case, if you do not want to install the TinyOS environment, you

Re: [Tinyos-help] about getting battery-level of telosb mote

2011-04-05 Thread Urs Hunkeler
Hi, Use the VoltageC component: components new VoltageC(); It offers a Readuint16_t interface. The calculate the actual voltage, divide the value by 4096 and multiply by 3. E.g., if the read(..) event gives you the value rawVolt: realVolt = rawVolt * 3 / 4096. Cheers, Urs On 04/05/2011

Re: [Tinyos-help] Toscomm JNI library was not found

2011-03-30 Thread Urs Hunkeler
Hi Rafelia, Which of the approaches in the many posts on this list have you tried? What operating system are you using? Which tutorial did you follow when installing TinyOS? What is the output from the following commands on your system (when you type them in a terminal)? echo $CLASSPATH java

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-30 Thread Urs Hunkeler
Hi Yusnaidi, Thanks for the information. The approach that I am suggesting is not very clean, normally it would be better to try to fix the problems that you are having, but since my PowerBook is too old for the newest Mac OS X, I cannot reproduce your errors or compare with my system. I

Re: [Tinyos-help] Toscomm JNI library was not found

2011-03-30 Thread Urs Hunkeler
Hi Rafelia, This was the output I was looking for. It says that you have installed the TinyOS Java native libraries just fine and they are loading ok. Now we have to figure out why it's not working when you try to run the TestSerial application. It could be that somehow there are different

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-25 Thread Urs Hunkeler
and libgetenv.jnilib. Is this is what I should do? Then, where can I copy them? because when I issue command tos-locate-jre --jni, I got ths error: -bash: tos-locate-jre: command not found. How can I solve this? Many thanks for your kind help. Yusnaidi On Thu, Mar 24, 2011 at 4:44 PM, Urs Hunkeler

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-25 Thread Urs Hunkeler
or directory. What that suppose to mean? Thanks. Yusnaidi. On Fri, Mar 25, 2011 at 10:45 AM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi Yusnaidi, You need to add the tinyos.jar file in the class path. If you do not specify the .jar file, Java

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-25 Thread Urs Hunkeler
Hi Yusnaidi, Yes, you should have nesc installed. And yes, this probably means there is a problem with the installation somewhere. On my Mac the ncc binary is in /stow/bin. If it's not there, check whether the compiled version is in /stow/repository/nesc-1.3.0/bin. If it's not there, then

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-25 Thread Urs Hunkeler
. Is there any other files or system wide files I need to change so the environment variables takes effect? thank you... Yusnaidi On Fri, Mar 25, 2011 at 4:00 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi Yusnaidi, Yes, you should have nesc

Re: [Tinyos-help] Installation error on Mac OS X

2011-03-24 Thread Urs Hunkeler
Hi Yusnaidi, I don't know about your problem, as I currently don't have a Mac OS X system with the latest OS to play with. However, I did compile the libraries for different systems, and the libraries included in the latest tinyos.jar should support Mac OS X on PPC, Intel 32-bit and Intel

Re: [Tinyos-help] Java CLASSPATH problem again

2011-03-15 Thread Urs Hunkeler
Hi, Unless you need to be compatible with older versions of Java you do not need to compile for version 1.4 (simply remove the -target and -source options). How did you install TinyOS? Clearly, your installation seems to be missing some files for the TinyOS Java libraries and tinyos.jar seems

Re: [Tinyos-help] TinyOS Simulator

2011-03-02 Thread Urs Hunkeler
Hi Parisa, I'm not aware of a simulator for the shimmer platform. I have added support for the TelosB platform to the Avrora project. As they have some hardware in common (cc2420, msp430), maybe you can take this as a basis and add/modify the things you need and which are specific to the

Re: [Tinyos-help] Problem calling an external interrupt INT1 tinyos-2.x

2011-02-02 Thread Urs Hunkeler
Hi Sofia, Have you tried to use the Int1 interface provided by the HplAtm128InterruptC component? This might not be the recommended way (I think you should not use Hpl* components), but I think it works much better than trying to access the interrupt vectors directly. Cheers, Urs On

Re: [Tinyos-help] CFLAGS Changes during make command

2011-01-26 Thread Urs Hunkeler
Hi, Try CFLAGS=-DTOSH_DATA_LENGTH=102 make micaz (btw, you need to recompile an application for the modification of the message length to take effect, reinstalling it won't change the program) Cheers, Urs On 1/26/11 2:14 PM, laptop...@gmx.de wrote: Hallo together, here comes perhaps a quit

[Tinyos-help] On TelosB, are interrupts used for CCA?

2011-01-25 Thread Urs Hunkeler
Hi, I'm currently implementing the TelosB platform on the Avrora simulator. Their code for the radio simulation makes it difficult to trigger interrupts when the channel becomes clear. From my current work I can tell that the TinyOS 2.x code on the TelosB waits for an interrupt when turning

Re: [Tinyos-help] application compilation error

2011-01-17 Thread Urs Hunkeler
Hi, Usually, that's more like a problem with a version mismatch of Java itself. It's even possible that you compile your programs with one version and try to run it with a different version. Are you running Linux or Windows? Which version? What versions of javac and java do you have? (javac

Re: [Tinyos-help] application compilation error

2011-01-17 Thread Urs Hunkeler
,i am very new in this field, as i dont have any background on computer science. On Mon, Jan 17, 2011 at 12:11 AM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi, Usually, that's more like a problem with a version mismatch of Java itself. It's even

Re: [Tinyos-help] How to send a message bigger than 2kb

2011-01-17 Thread Urs Hunkeler
Hi Loïc, If you use a high-level protocol there might be some support there, otherwise you'll have to implement splitting the message yourself. Cheers, Urs On 01/17/2011 10:09 AM, Pfister Loic wrote: Hi, I need to send a message of 2560 bits -- 320 bytes. From what I read in the mailing

Re: [Tinyos-help] application compilation error

2011-01-17 Thread Urs Hunkeler
which is 1.5, as the tinyos only for 1.4 and 1.5. On Mon, Jan 17, 2011 at 5:20 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi, Please try to run the commands on the command line to find the version that is actually used (as stated

Re: [Tinyos-help] Compilation problem

2011-01-12 Thread Urs Hunkeler
Hi, I don't know what version is recommended, but mine here is 4.1.2. Maybe you should update :-) Cheers, Urs On 01/12/2011 09:12 AM, trilok i wrote: Hi , Yes, I am using linux and my avr-gcc version is 3.4.3 Date: Tue, 11 Jan 2011 22:22:09 +0100 Subject: Re: [Tinyos-help]

Re: [Tinyos-help] JNI Library not found, Lesson 4

2011-01-05 Thread Urs Hunkeler
Hi, The library file should be called libgetenv.so on Linux. Which operating system are you using? The TinyOS Java libraries in the SVN repository contain the native libraries for the most common operating systems (Linux, Mac, Windows) and no additional installation is necessary. If you don't

Re: [Tinyos-help] problem with java tool

2011-01-05 Thread Urs Hunkeler
Hi, I'm not familiar with this problem. The error message might mean that the serial port is already in use. Is there anything already accessing the serial port? Maybe you have another program trying to communicate with the same mote at the same time? You could try to see whether the serial

Re: [Tinyos-help] on TOSSIM

2010-12-14 Thread Urs Hunkeler
Hi, The reason you did not get any answer from me is that I simply don't know. I am not very familiar with TOSSIM (and certainly not Python), and I don't even use Windows (I use Mac and GNU/Linux). Instead of TOSSIM you could try Avrora. The documentation is a bit outdated and I recommend you

Re: [Tinyos-help] Compile TestSerial application error!

2010-12-13 Thread Urs Hunkeler
Hi, Sorry, your error messages appear with what looks like Chinese symbols, which I don't understand. Therefore I really have no idea what the error is. Cheers, Urs On 12/13/2010 03:41 AM, hongliping7123 wrote: Yes, I have change the CLASSPATH as you said, and when I type the command *echo

Re: [Tinyos-help] Ask for help [[Errno 84] Invalid or incomplete multibyte or wide character]

2010-12-11 Thread Urs Hunkeler
Hi, I don't actually know what happens there, I've never had any similar problems. From the expression multi-byte character I would guess it has to do with unicode. Do you use any extended character sets for your default environment (e.g., is the system language something else than English)?

Re: [Tinyos-help] compile TestSerial application error!

2010-12-11 Thread Urs Hunkeler
Hi, The Java libraries have some problems compiling on a clean system. Is there a precompiled tinyos.jar file in your directory (/opt/tinyos-2.x/support/sdk/java/tinyos.jar)? If so, you could try to change your classpath to this directory. Your classpath should also include the current

Re: [Tinyos-help] CCA on

2010-12-09 Thread Urs Hunkeler
Hi, My bad, I mixed CCA (clear channel assessment) up with random back-off time. I think that the original question was rather about the random back-off time (used for the CSMA in the default MAC protocol used by TinyOS), during which (please correct me if I'm wrong here) the channel is

Re: [Tinyos-help] CCA on

2010-12-09 Thread Urs Hunkeler
Hi Miklos, Thanks for the clarification. Cheers, Urs On 12/09/2010 09:50 AM, Miklos Maroti wrote: Hi Urs, During the random back-off time we do nothing. After the timer expires, then we do CCA and if the channel is free, then we send the message. If the channel is busy, then we go another

Re: [Tinyos-help] Hi, something about transmission power

2010-12-08 Thread Urs Hunkeler
Hi, It depends on the type of radio you use. E.g., with the CC2420 (MicaZ, TelosB) there is a CC2420Packet interface which has a function called setPower(..). With the RF230 (Iris) the RF230ActiveMessageC component offers an interface of type PacketField called PacketTransmitPower which

Re: [Tinyos-help] CCA on

2010-12-08 Thread Urs Hunkeler
From my tests on a TelosB (CC2420 radio) it varies linearly between 1ms and 10ms (when the channel is free, in principle the radio is already in receive mode while the message is being copied to the radio's memory, but I don't think this is used as the CCA). The duration on an Iris mote

Re: [Tinyos-help] Hoe to find TinyOS version

2010-12-08 Thread Urs Hunkeler
Hi, If you installed Moteworks, you're using TinyOS 1.x. I don't know how to determine the exact version, but in any case it might well be a special version provided by Crossbow. Cheers, Urs On 12/09/2010 04:48 AM, SHIVASANKAR GANESAN wrote: Hi How to find TinyOS version. I installed

Re: [Tinyos-help] compile TestSerial application error!

2010-12-08 Thread Urs Hunkeler
Hi, This means that the TinyOS Java libraries are not found. Maybe the classpath is not set correctly, or the libraries are not compiled. Usually, the libraries are in $TOSROOT/support/sdk/java/ or $TOSROOT/support/sdk/java/tinyos.jar (you can use either). What is the output of the command

Re: [Tinyos-help] Duplicate data from EasyCollection

2010-12-08 Thread Urs Hunkeler
Hi, I think your two questions might be related. I had a similar problem once where it turned out that the ACKs were received too late. In my case it helped to enable hardware acknowledgments. You can try this by adding the following line to your Makefile: CFLAGS+=-DCC2420_HW_ACKNOWLEDGEMENTS

Re: [Tinyos-help] a basic question of tossim working

2010-12-08 Thread Urs Hunkeler
Hi, I'm not too familiar with TOSSIM myself, but I think it should all be explained in the tutorials: http://docs.tinyos.net/index.php/TOSSIM Cheers, Urs On 12/09/2010 08:18 AM, niraj nake wrote: Hello all, I jst want to run blink application using tossim simulator... on ubuntu 10.1 I hv

Re: [Tinyos-help] Reg:Std Deviation of Gaussian Noise

2010-12-07 Thread Urs Hunkeler
, SHIVASANKAR GANESAN wrote: Hi That module is not available in my system.I searched my system.What to do. ** *With regards* *Sivasankar* --- On *Tue, 7/12/10, Urs Hunkeler /urs.hunke...@epfl.ch/* wrote: From: Urs Hunkeler urs.hunke...@epfl.ch Subject: Re: [Tinyos-help] Reg:Std Deviation

Re: [Tinyos-help] (no subject)

2010-12-07 Thread Urs Hunkeler
Hi Vino, Have you correctly setup your TinyOS environment (does your shell call tinyos.sh on launch)? What is the output of: echo $TOSROOT Cheers, Urs On 12/08/2010 05:30 AM, vino . wrote: Hi I'am getting the following error while typing in simple blink application make micaz

Re: [Tinyos-help] Power saving on TelosB

2010-12-06 Thread Urs Hunkeler
Hi, You can turn off the radio with the stop() function of the SplitControl interface provided by AcitveMessageC (and similarly turn the radio on with the start() function of the same interface). Make sure you do not enable low-power operation of the radio stack, as otherwise TinyOS will use

Re: [Tinyos-help] Power profiling for MicaZ nodes

2010-12-06 Thread Urs Hunkeler
? Regards 06 Aralık 2010 08:52 tarihinde Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch yazdı: Hi, The Avrora project does cycle-accurate simulations of programs running on MicaZ and should give you a good estimation of the power consumption of your programs

Re: [Tinyos-help] Reg:Std Deviation of Gaussian Noise

2010-12-06 Thread Urs Hunkeler
wrote: Hi I can't find CC2420ControlC file in my system,I have only CC2420Control file and others(like CC2420RadioC..). I am using Tiny OS V2.0 with Mote works v2.0F. *With regards* *Sivasankar* --- On *Mon, 6/12/10, Urs Hunkeler /urs.hunke...@epfl.ch/* wrote: From: Urs Hunkeler

Re: [Tinyos-help] Problem with Basestation

2010-12-05 Thread Urs Hunkeler
assume there is USARTX0 and UARTRX0 right? Is there any example which i can refer to? Thank you so much again! On Sat, Dec 4, 2010 at 5:33 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi Zainab, If I understand you correctly, you use the default Basestation

Re: [Tinyos-help] BlinkToRadio: Two telosb motes can't communicate. Need Help!

2010-12-05 Thread Urs Hunkeler
about how to maintain a source tree? Keep everything latest or just hold an everything-looks-fine rev ? I don't want the same situation to come up again. At last but not least, thanks again. Best Regards. Ruitao Xu 2010/12/3 Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke

Re: [Tinyos-help] Reg:Std Deviation of Gaussian Noise

2010-12-05 Thread Urs Hunkeler
Noise. ** *With regards* *Sivasankar* --- On *Fri, 3/12/10, Urs Hunkeler /urs.hunke...@epfl.ch/* wrote: From: Urs Hunkeler urs.hunke...@epfl.ch Subject: Re: [Tinyos-help] Reg:Std Deviation of Gaussian Noise To: SHIVASANKAR GANESAN tata...@yahoo.co.in Cc: tinyos-help

Re: [Tinyos-help] Power profiling for MicaZ nodes

2010-12-05 Thread Urs Hunkeler
Hi, The Avrora project does cycle-accurate simulations of programs running on MicaZ and should give you a good estimation of the power consumption of your programs. http://compilers.cs.ucla.edu/avrora/ If you want to do your own measurements, I think both Avrora and PowerTOSSIM did

Re: [Tinyos-help] Performing of TOS 2.x

2010-12-04 Thread Urs Hunkeler
Hi, make pc was for TinyOS 1.x, in TinyOS 2.x it is make micaz sim. I recommend reading the documentation for TOSSIM in TinyOS 2.x, as quite a view things have changed: http://docs.tinyos.net/index.php/TOSSIM Cheers, Urs On 12/4/10 12:37 PM, Edel A. Rodriguez Sanchez wrote: Hi.! I have

Re: [Tinyos-help] Retransmit

2010-12-04 Thread Urs Hunkeler
It's been a long time since I last did anything in TinyOS 1.x. The TOS_Msg structure has an element called ack (of type uint8_t). Maybe this is a boolean that will be set to something different from 0 if an ack has been received? In TinyOS 2.x sendDone is only called once an Ack has been

Re: [Tinyos-help] Problem with Basestation

2010-12-04 Thread Urs Hunkeler
in. I'm not sure how to do that? Any help would be great! On Sat, Dec 4, 2010 at 2:27 AM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi Zainab, If I understand your description correctly (sorry, I am not too familiar with the BaseStation application

Re: [Tinyos-help] ADC Readings and VREF

2010-12-04 Thread Urs Hunkeler
Hi Francesco, At a quick glance your calculations appear to be correct. If the effort is small to change the resistors, it's worth a try. I also have been thinking, and maybe the simple model of the battery is not enough to explain the phenomenon you see. I suspect that the microcontroller

Re: [Tinyos-help] BlinkToRadio: Two telosb motes can't communicate. Need Help!

2010-12-03 Thread Urs Hunkeler
. The horrible situation remains. Thanks for your help. Looking forward to any tip. I will try more solution and expect mote receiving correctly earlier. Best Regards, Ruitao Xu On Fri, Dec 3, 2010 at 2:07 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi

Re: [Tinyos-help] ADC Readings and VREF

2010-12-03 Thread Urs Hunkeler
Hi Francesco, Thanks for detailing your measurement setup. From the pictures I don't see any additional circuit for your sensors. Do you use an internal sensor? If not, do you have the problems when reading ADC values without anything connected and you expect it to be constant (since nothing

Re: [Tinyos-help] Reg:Std Deviation of Gaussian Noise

2010-12-03 Thread Urs Hunkeler
Hi, The CC2420ControlC has a ReadRssi interface, which allows you to read the RSSI while not actively receiving any message. You could sample the background noise for a while, and then use standard statistical methods to determine the noise level and the standard deviation. Cheers, Urs On

Re: [Tinyos-help] Reg:Max Comm Range

2010-12-03 Thread Urs Hunkeler
We managed to get more than 100m outdoors with special antennas (normal antennas for WiFi routers). Cheers, Urs On 12/03/2010 08:07 AM, Manjunath Doddavenkatappa wrote: It depends on the environmemt. In typical indoor setups, it is less than 10m. We have observed in indoors that although

Re: [Tinyos-help] BlinkToRadio: Two telosb motes can't communicate. Need Help!

2010-12-03 Thread Urs Hunkeler
(); # when receiving, just toggle led0* } return msg; } On Fri, Dec 3, 2010 at 4:25 PM, Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch wrote: Hi, This gets difficult to debug. Here are just a couple of ideas: Do you use different NodeIDs for the different

Re: [Tinyos-help] BlinkToRadio: Two telosb motes can't communicate. Need Help!

2010-12-03 Thread Urs Hunkeler
SendingMote and ReceivingMote code. There is only one difference between SendingMote and RecevingMote: whether call send command when radio start successfully. Best Regards, Ruitao Xu 在 2010年12月3日 下午5:11,Urs Hunkeler urs.hunke...@epfl.ch mailto:urs.hunke...@epfl.ch写道: Hi

Re: [Tinyos-help] ADC Readings and VREF

2010-12-03 Thread Urs Hunkeler
Hi Francesco, The potentiometer (probably used as a voltage divider?) might amount for up to (3V / 450 Ohm =) ~6mA, not that much but it's already on the order of the power consumption of the microcontroller. If the total power consumption for sampling the sensors is around 10mA and the

Re: [Tinyos-help] ADC Readings and VREF

2010-12-03 Thread Urs Hunkeler
Hi Francesco, You could measure the voltage of the batteries and use this value in your further calculations (I think VoltageC gives you the current voltage). It might be possible that some batteries have a higher internal resistance than others. If your sensors draw a lot of power, this could

Re: [Tinyos-help] class Packetizer error

2010-12-03 Thread Urs Hunkeler
Hi Biyan, Is there a file called Packetizer.java in your /opt/tinyos-2.x/support/sdk/java/net/tinyos/packet directory? If it's missing, your source tree is not complete. If it's there, maybe Java won't find it because it searches for it in a path it constructs based on the package name. Why

Re: [Tinyos-help] query for flood time synchronization protocol

2010-12-03 Thread Urs Hunkeler
Hi, I have not tried ftsp myself, so this is just a guess from looking at the code. I think this is a library and not a stand-alone program. You need to write your own program that uses time synchronization. Your program needs to wire the MainC component to TimeSyncC (Boot and Init

Re: [Tinyos-help] Problem with Basestation

2010-12-03 Thread Urs Hunkeler
Hi Zainab, If I understand your description correctly (sorry, I am not too familiar with the BaseStation application), the LEDs indicate that one BaseStation is sending packets, but the other is not receiving them. In that case I don't think this is a problem with the baud rate. Maybe there

Re: [Tinyos-help] ADC Readings and VREF

2010-12-02 Thread Urs Hunkeler
Hi Francesco, You could measure the voltage of the batteries and use this value in your further calculations (I think VoltageC gives you the current voltage). It might be possible that some batteries have a higher internal resistance than others. If your sensors draw a lot of power, this could

Re: [Tinyos-help] BlinkToRadio: Two telosb motes can't communicate. Need Help!

2010-12-02 Thread Urs Hunkeler
Hi, One problem that I encountered personally is that sometimes the Moteiv Tmote Skys seem to have difficulties communicating when they are too close together (maybe the receiver gets saturated?). If this is the case, I found that lowering the transmission power helps. You can try this by

Re: [Tinyos-help] ADC Readings and VREF

2010-12-02 Thread Urs Hunkeler
Hi Francesco and Krisa, A battery is usually modeled as a perfect voltage source in series with an internal resistor. (I hope the link works) http://books.google.ch/books?id=bkOMDgwFA28Clpg=PA9ots=F2hgSHc2Ptpg=PA9#v=onepageqf=false When the load (power draw by the mote and the sensors)

Re: [Tinyos-help] telosb Debug

2010-11-30 Thread Urs Hunkeler
Hi, If I can predictably repeat an error, I usually use the LEDs to find out where the code crashes. It often also helps to disable parts of the code or replace parts with dummy code (e.g., instead of reading a sensor just use a constant), and try to find the part of the code that is

[Tinyos-help] Radio communication not working on Mica2

2010-11-24 Thread Urs Hunkeler
Hi, I have a couple of Mica2 (and Mica2Dot) motes and I wanted to use them for some experiments, but somehow radio communication doesn't seem to work. Is there anything special you need to do with the CC1000 radio? Here's the simple test program I used. It works on TelosB and TinyNode, but

  1   2   3   4   5   >