[Tinyos-help] data sending rate of micaz
Dear all Currently I use a modified xsensormts400 app with timestamp added on the message structure. I wish to receive the sensor data in a much smaller interval (say 100 msec for example). However when I applied xlisten app on PC (I use mib510 and tosbase as base station), the data appeared every 9 secs or so. Then I adjusted the TIMER_PERIOD parameter in xsensormts400 in to a smaller value, the sending rate increased, but still had a 2 secs interval. Can anyone tell me where or how to adjust the data sending rate ?? Thanks!! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Stargate: installing and using the GNU toolchain
Hy, I'm trying to work with the stargate. I'm following the reference manual, but I can't to unzip the arm-linux-gcc-3.3.2.tar.gz file (presents in the crossbow CD) on the stargate. I don't have a good experience with the linux platform, the only things that I did, are: -type the command like in the instruction (pag.25 manual Rev. B, January 2006 Document 7430-0317-13), but I receive this message error: tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now I tried too without the option -z, but it still doesn't work. - copy the .gz file from the PC to the stargate trought the ethernet with the scp command; then i tried to unzip but it didn't work I have a linux/unix manual, but I can't go away. What is the correct syntax of the command? Thanks in advance. Ing.Alessandro Balvis Centro Ricerche ENEL -Pisa [EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Installation error: bash: /dev/null: No such file or directory on XP Embedded
I tried to make a file with that name, but it doesn't work. I don't how to resolve this problem. Ing.Alessandro Balvis Centro Ricerche ENEL - Pisa [EMAIL PROTECTED] interesting, maybe the embedded version has given up on the whole fake /dev thing You could try making a file with that name but (assuming it works) you'd have to go truncate it fairly frequently. MS [EMAIL PROTECTED] wrote: Hy, I installed the tinyos (tinyos-1.1.0-1is.exe) in a system with Windows XP Embedded SP2 Version 2002 and I encountered this error at the first time that I started the Cygwin bash shell: bash: /dev/null: No such file or directory bash: /dev/null: No such file or directory [EMAIL PROTECTED] ~ $ I can't make any operation of compiling. How can I resolve it? Thanks in advance. ___ 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] bits/sec through uart
Hi all, I have a micaz, with a MIB510 platform. I thought that it was able to send 57600 bit/sec, because this number is the baudrate which I put for connecting it to my pc. I have tested it and then I found that it send about 39000 bits/sec. Is that possible? What could be wrong? Thaks for your help, Andres _ Acepta el reto MSN Premium: Correos más divertidos con fotos y textos increíbles en MSN Premium. Descárgalo y pruébalo 2 meses gratis. http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_correosmasdivertidos ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] stop nesc/avr-gcc compilation
On 2/8/06, Ning Xu [EMAIL PROTECTED] wrote: Is there a directive that can be used to stop the ncc/avr-gcc compilation? it seems #error is not supported, could it be a #pragma ... or somthing like that? #error works: module aa { } implementation { int x; #error oops } [EMAIL PROTECTED] tmp]$ ncc -c aa.nc aa.nc:4:2: #error oops commandline: failed to preprocess aa.nc (this is with nesC 1.2.4, but I'd be surprised if it wasn't working in earlier versions) David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Determining if received GenericComm packet is from UART
After searching documentation and the mailing list, I haven't been able to find a definitive recommendation on what method applications should use to communicate with both the radio and UART. Initially, I thought that following the example of TOSBase was the way to go, but connecting directly to FramerM didn't seem to work with an app that also uses GenericComm and, based on an earlier post (https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-April/008929.html), app connections to FramerM seem to be discouraged. So, if using GenericComm for both UART and radio communications is the recommended method, then how are applications supposed to determine if a received packet is from the UART? Is the only way to add a source field to your packets and set it to TOS_UART_ADDR in your Java app before sending? Or, is there some other way to recognize a UART packet via GenericComm without adding packet fields? -Matt ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Connect a Java application to SerialForwarder
It seems to me that that use of MOteIF constructor is DEPRECATED. C. Javier Barbarán Sánchez wrote: Hi, Sorry, I have been occupied in other issues. Well, I'm using MoteIF constructor with IP address, port number and gid number, and it connects to SerialForwarder fine, after that I register the listener with the appropiate message and object, so far so good... after doing this, it is supposed that my application would receive messages from motes, but it doesn't happen :( I changed the constructor mote = new MoteIF(127.0.0.1,configConn.getPuerto(),configConn.getGrupo()); for the following: mote = new MoteIF(PrintStreamMessenger.err); and the result was that my application received packets from motes. But I don´t know why this is happening, so, I hope Michael o somebody else could help me. Thanks in advance. * this is the code: //Se le debe pasar el objeto que contiene la configuración del usuario public int Conectar(MmotesConfigConn configConn) { if (mote != null) { System.out.println(Registrando objeto para la recepcion de mensajes...); //Pasarle la referencia del objeto que se encargará de procesar el mensaje mote.registerListener(new SurgeMsg(), factoriaPaq); return 0; } try { System.out.println(Inicializando escucha de mensajes de motas...); try { if (configConn.getEsLocal()) { System.out.println(Conectando a localhost, puerto: +configConn.getPuerto() + Grupo: +configConn.getGrupo()); mote = new MoteIF(127.0.0.1,configConn.getPuerto(),configConn.getGrupo()); //mote = new MoteIF(PrintStreamMessenger.err); } else { System.out.println(Conectando a +configConn.getDirIP()+, puerto: + configConn.getPuerto()+ Grupo: +configConn.getGrupo()); mote = new MoteIF(configConn.getDirIP(),configConn.getPuerto(),configConn.getGrupo()); } } catch (Exception e) { //Lanzamos mensaje en pantalla avisando del error JOptionPane.showMessageDialog(cliente, No se puede conectar con el servidor.\n+e.toString(), Conexion con servidor, JOptionPane.ERROR_MESSAGE); } System.out.println(Registrando objeto para la recepcion de mensajes...); //Pasarle la referencia del objeto que se encargará de procesar el mensaje mote.registerListener(new SurgeMsg(), factoriaPaq); } catch (SecurityException e) { System.err.println(Error al crear la hebra de escucha de mensajes); return 1; } return 0; } - Original Message - From: Michael Schippling [EMAIL PROTECTED] To: C. Javier Barbarán Sánchez [EMAIL PROTECTED] Cc: tinyos-help@Millennium.Berkeley.EDU Sent: Monday, January 30, 2006 2:05 PM Subject: Re: [Tinyos-help] Connect a Java application to SerialForwarder overInternet See, all you have to do is worry about it for a few days... Do you remember what 'wasn't working'? The acutal exception? Mayve you recycled SerialForwarder and it didn't have time to close and reopen the port? Anyway, you should be able to use netstat to see if the port is really open if it happens again. Yeah deprecated means you shouldn't use it because some future version of something might not support it, but I've never seen anything just disappear. Too many things need to be backward compatible... glad it works MS C. Javier Barbarán Sánchez wrote: Fist of all, thanks for your help Michael, Yes, I know that I can use it but I thought that it could cause future errors. I have tried the following code: try { mote = new MoteIF(150.***.***.**,9001,125); } catch (Exception e) { e.printStackTrace(); } System.out.println(Registrando objeto para la recepcion de mensajes...); mote.registerListener(new SurgeMsg(), this); Last week I tried it, but I always found an exception telling me that the SerialForwarder wasn't working at the port I had indicated (9001), and I'm sure that SerialForwarder was running correctly, but, anyway, today woks fine... ^_^ It seems to work properly, so probably I have done something wrong last week. Again, Thanks a lot. Javier - Original Message - From: Michael Schippling [EMAIL PROTECTED] To: C. Javier Barbarán Sánchez [EMAIL PROTECTED] Cc: tinyos-help@Millennium.Berkeley.EDU Sent: Friday, January 27, 2006 2:32 AM Subject: Re: [Tinyos-help] Connect a Java application to SerialForwarder overInternet Just because it's deprecated doesn't mean you can't use it, it's just discouraged because someone thought they came up with a better incompatible design... What's your code and the error message when you
[Tinyos-help] UART?
Hi everybody, I am confused by the UART. I googled and found the following definition for UART: Universal Asynchronous Receiver/Transmitter. A communication chip that converts parallel bytes into singular bits for serial transmission over modems and serial ports. Because it's not synchronized with the system clock, a UART chip also has the receiving and transmitting circuits needed for start and stop signals that tell the communicating devices when a packet of information starts and ends. I tried to follow Section 5.2.1 Testing a Sensor Board over the UART of the Getting Started Guide. But where is the UART? Do I need to get other things beside a MICAz mote, a MTS310CA sensor board, and a MIB510 programming board? Thanks! - Liangping __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Stargate: installing and using the GNU toolchain
I tried the -z once under cygwin with no luck either... But there is a separate gunzip. I think it's just gunzip [file] that will replace the .gz with the unzipped file (use -h to get a usage list). Then you should be able to use regular tar: tar xvf [file] MS [EMAIL PROTECTED] wrote: Hy, I'm trying to work with the stargate. I'm following the reference manual, but I can't to unzip the arm-linux-gcc-3.3.2.tar.gz file (presents in the crossbow CD) on the stargate. I don't have a good experience with the linux platform, the only things that I did, are: -type the command like in the instruction (pag.25 manual Rev. B, January 2006 Document 7430-0317-13), but I receive this message error: tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now I tried too without the option -z, but it still doesn't work. - copy the .gz file from the PC to the stargate trought the ethernet with the scp command; then i tried to unzip but it didn't work I have a linux/unix manual, but I can't go away. What is the correct syntax of the command? Thanks in advance. Ing.Alessandro Balvis Centro Ricerche ENEL -Pisa [EMAIL PROTECTED] ___ 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] Problems with mate (wrong Version 49.0)
On 2/9/06, Philip Levis [EMAIL PROTECTED] wrote: On Thu, 2006-02-09 at 15:11 +0100, Hoell, Christian (EXT) wrote: Hi, I'm just trying to get started with mate. I've installed the current Version via rpm provided on the mate Homepage. When I'm going to do a make in the tinyos/script folder the whole thing is interrupted with following: $ make javac tree/*.java tree/Statement.java:35: cannot access net.tinyos.script.TreeNode bad class file: Z:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\script\TreeNode.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public class Statement implements TreeNode { It looks like you have a problem with Java. Did you try make clean make You can also try compiling everything manually. E.g., go into the script directory and just type javac *.java javac tree/*.java javac vm_specific/*.java javac oscope/*.java If that still fails, I have really no idea what's going on, as I've never seen that Java error before. I can look a bit deeper, but not till next week or so. That error means a Java 1.4 compiler or VM encountered a file compiled by Java 1.5, and it's not happy... David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Problems with mate (wrong Version 49.0)
>From the error information, I think maybe your system have two version of jdk. I have ever meet this kind of problem. That is the class file of java 5.0 which is version 49.0 have some compatible problem with the low version 48.0 class file of java 1.4. You can try to make the development environment clean and clear, then use only one of the jdk. Best wishes Fan On 2/9/06, Hoell, Christian (EXT) [EMAIL PROTECTED] wrote:Hi,I'm just trying to get started with mate.I've installed the current Version via rpm provided on the mate Homepage.When I'm going to do a make in the tinyos/script folder the whole thingis interrupted with following:$ makejavac tree/*.javatree/Statement.java:35: cannot access net.tinyos.script.TreeNode bad class file:Z:\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\script\TreeNode.classclass file has wrong version 49.0, should be 48.0Please remove or make sure it appears in the correct subdirectory of the classpath.public class Statement implements TreeNode {^1 errormake: *** [all] Error 1Could anyone help me please?GreetingsChristian ___Tinyos-help mailing listTinyos-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] Help with PowerTOSSIM
I am trying to use PowerTOSSIM to profile CPU usage on my application. I have tried on both Cygwin and Linux. When using Cygwin, I used the instruction posted at: http://www.eecs.harvard.edu/~shnayder/ptossim/install.html Additionally, I used http://www2.uic.edu/~tcanli1/cpucyclecountingcode.htm as a reference. I successfully added the counter module to cilly and recompiled cilly.asm.exe for windows. I am using version 1.1.15 of TinyOS and CIL version 1.3.4. My program (a basic LEACH implementation) successfully compiles, and simulation runs correctly, but reports 0 cycles. I can see during the build process that the number of basic blocks is calculated. The bb_cycle_map file is 0 bytes when simulation ends, bb_exec_cnt reports total cycles to be 0 on all motes, and bb_linenum_map has entries similar to the following: 1~/workspace/SeNDOR/src/tinyos-1.x/apps/LEACH2/LeachM.nc:681 2~/workspace/SeNDOR/src/tinyos-1.x/apps/LEACH2/LeachM.nc:688 3~/workspace/SeNDOR/src/tinyos-1.x/tos/interfaces/SendMsg.nc:48 4~/workspace/SeNDOR/src/tinyos-1.x/apps/LEACH2/LeachM.nc:603 ... After failing to receive results on Windows, I rebuilt NesC, the AVR toolchain, TinyOS etc..., under Linux, all from source, so I could use the cilly.asm.exe linux binary that is included in the distribution, and be sure I was using the latest version of all tools. Once again I compiled my app using the compile.pl script from PowerTOSSIM, and followed the instructions precisely. PowerTOSSIM still reports 0 cycles of CPU use. Has anyone seen any errors like this before? Are there any obvious things I could check? Where should I look for problems? Any help is greatly appreciated. This tool gives data that would be very helpful in my research. Thanks again, Doug -- Douglas R Herbert SeNDOR Research Group (http://shay.ecn.purdue.edu/~sendor) Dept. of Electrical and Computer Engineering Purdue University West Lafayette, IN Office: EE Building, Rm. 272 Lab: Physics Building, Rm. 50 Email:[EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Reading from two channels
I believe the micasb code already has Photo and Temp components that should do exactly what you describe. You will have to modify the Oscope GUI to deal with the different data packing. MS Xenia Economidou wrote: Hello everyone, I am trying to finish my application, which will monitor both the light and the temperature at the same time, and I was wondering how can I check it at the end? I was thinking, instead of the ADC.dataReady () event, to have two different ones: Light.dataReady(uint16_t data) and Temp.dataReady(uint16_t data) so as to call them separately and not use them simultaneously since their ADC is the same. To illustrate the results on the Oscilloscope application it is better to have two channels and I was wondering how can we have that. Is the following way correct? pack1-channel = 1; pack2-channel = 2; pack1 will correspond to the Light and pack2 to the Temp event. Is there a better way? If anyone knows can you help me please? Kind Regards, Xenia Economidou ___ 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