[Tinyos-help] MSP430-GCC ERORR
Hi all I managed to compile Micaz but was not able to compile Telosb wiht Blink. Although there is msp430, it cant seem to get the files. May I know what can i do to rectify it? I'm using TinyOS2 from Crossbow. Thanks DIDENT_PROGRAM_NAME_BYTES="66,108,105,110,107, 0" -DIDENT_USER_ID="hippo" -DIDENT_USER_ID_BYTES="104,105,112,112,111,0" -DIDENT_HOSTNAME="Dell1100" -DIDENT_HOSTNAME_BYTES="68,101,108,108,49,49,48,48,0" -DIDE $ make telosb mkdir -p build/telosb compiling Blink to a telosb binary ncc -o build/telosb/main.exe -Os -mdisable-hwmul -I/opt/MoteWorks/tos/platform/t elosb -I/opt/MoteWorks/tos/../beta/STM25P -I%T/lib/Broadcast -I%T/lib/XLib -D ROUTE_PROTOCOL=0x90 -I%T/radio/telosbcc2420 -I/opt/MoteWorks/tos/lib/Queue -I%T/ lib/internal/XMeshTelosb -DMULTIHOPROUTER=XMeshRouter -Wall -Wshadow -DDEF_TOS_A M_GROUP=125 -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=mts310 -DIDENT_PROGRAM_NAME="Blink" NT_USER_HASH=0xae4aa55bL -DIDENT_UNIX_TIME=0x4554fa73L -DCC2420_DEF_CHANNEL=16-DCC2420_TXPOWER=TXPOWER_MAX Blink.nc-lm Couldn't execute msp430-gcc make: *** [exe0] Error 2 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] BlinkToRadio Installation error on micaz mote
> Figured this out. Trivial! > > > make micaz install -> returns the following > > > > mkdir -p build/micaz > > .. > > .. > > uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 > > --wr_fuse_e=ff --erase --upload if=build/micaz/main.srec.out --verify > > /dev/parport0: No such file or directory > > Failed to open ppdev. > > make: *** [program] Error 2 Hi, I'm now facing this problem too. But seems that I cannot find the solutin on web. Would you mind sharing your solution to me? Thanks in advance :) output of cygwin cp build/micaz/main.srec build/micaz/main.srec.out installing micaz binary using dapa uisp -dprog=dapa --wr_fuse_h=0xd9 -dpart=ATmega128 -- wr_fu se_e=ff --erase --upload if=build/micaz/main.srec.out --verify /dev/parport0: No such file or directory Failed to open ppdev. make: *** [program] Error 2 * ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Micaz and mts300/mts310 microphone to sample sound
Hi, I am using Micaz and MTS310 sensorboard's microphone to sample the sound, and I got the following data 594 361 493 494 424 592 515 489 562 426 447 451 458 562 But I don't know how to use and parse these data. If I want to konw the sound is relatively large or small, how should I calculate them. -- Regards, Xiaozong Cui ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Java not found, not installing JNI code
[Tinyos-help] Java not found, not installing JNI code sinwel@ubuntu:/opt/tinyos-2.x$ sudo tos-install-jni Java not found, not installing JNI code sinwel@ubuntu:/opt/tinyos-2.x$___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] DynamicThreads in TOSThreads
hi all, i created a dynamic thread. (Similar to Blink_DynamicThreads) but when i use DynamicThread.destroy(thread_id*) the thread does not stop. here is how i do it //sample code event void Boot.booted() { i=0; call MilliTimer.startPeriodic(5000); call DynamicThread.create(&blink1, blink_thread, NULL, 500); } event void MilliTimer.fired() { call DynamicThread.destroy(&blink1); } am i doing something wrong? can someone help me in this? thanks for any help ranal ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinuOS received packet size
Thanks! But is there any way for the receiver to check the size of the packet it receives? Also, I currently use BareSendMsg.send() to send messages. I don't think there is any way to specify the size using that. I found that there is a SendMsg.send() which has a 'length' argument. Is that used to specify the length of the message? - DB On Thu, Feb 17, 2011 at 3:58 PM, Michael Schippling wrote: > That is exactly right. The payload size you specify in the send() > is the length that is received, where the maximum size is > TOSH_DATA_LENGTH or whatever they call it these days. > > MS > > Debasmit Banerjee wrote: > >> Hi all, >> >> In my application, I need to send packets of variable size. Also, can the >> receiver check the size of the received packet. I know that you can change >> the size of the message using TOSH_DATA_LENGTH. But is it possible to send >> messages with different sizes in the same application. I read somewhere that >> TOSH_DATA_LENGTH defines the maximum payload size and the actual size >> depends on the number of bytes transmitted. In that case how does the >> receiver measure the size of the packet received? >> Any help is greatly appreciated! >> >> 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] TinuOS received packet size
That is exactly right. The payload size you specify in the send() is the length that is received, where the maximum size is TOSH_DATA_LENGTH or whatever they call it these days. MS Debasmit Banerjee wrote: > Hi all, > > In my application, I need to send packets of variable size. Also, can > the receiver check the size of the received packet. I know that you can > change the size of the message using TOSH_DATA_LENGTH. But is it > possible to send messages with different sizes in the same application. > I read somewhere that TOSH_DATA_LENGTH defines the maximum payload size > and the actual size depends on the number of bytes transmitted. In that > case how does the receiver measure the size of the packet received? > Any help is greatly appreciated! > > 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
[Tinyos-help] TinuOS received packet size
Hi all, In my application, I need to send packets of variable size. Also, can the receiver check the size of the received packet. I know that you can change the size of the message using TOSH_DATA_LENGTH. But is it possible to send messages with different sizes in the same application. I read somewhere that TOSH_DATA_LENGTH defines the maximum payload size and the actual size depends on the number of bytes transmitted. In that case how does the receiver measure the size of the packet received? Any help is greatly appreciated! Thanks! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM TINYOS ENCRYPTION
Hi i am a student of BE doing my final year project in Tinyos Tossim. i need to send data to sensor nodes encrypted. i kno rc5 is there but can anybody help me how to configure it means use it in my project. if u hav any small program using RC5 please send me. Thanks in advance. The error I am getting is BlockCipher.init, encrypt, Decrypt are not connected. And also tell me how can i varie the size of TOS_Msg. Yogesh BG ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS Question
Hello Phil, Yes, before I have reviewed the configuration of the TOS Environment to indicate the Java's calsspath. This is my tinos.sh: a@a:/opt/tinyos-2.1.1$ cat tinyos.sh #! /usr/bin/env bash # Here we setup the environment # variables needed by the tinyos # make system echo "Setting up for TinyOS 2.1.1" export TOSROOT= export TOSDIR= export MAKERULES= TOSROOT="/opt/tinyos-2.1.1" TOSDIR="$TOSROOT/tos" CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java:. MAKERULES="$TOSROOT/support/make/Makerules" export TOSROOT export TOSDIR export CLASSPATH export MAKERULES And this is part of my .bashrc cat /home/a/.bashrc ... #TinyOS export TOSROOT=/opt/tinyos-2.1.1 export TOSDIR=$TOSROOT/tos export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar export MAKERULES=$TOSROOT/support/make/Makerules export PATH=/opt/msp430/bin:$PATH Thanks for you answer. Alejandro. > On Feb 14, 2011, at 2:56 AM, aca...@correo.ugr.es wrote: > >> Good morning, >> >> I have problems when I try to make work the TestSerial (Lesson 4) >> >> I have the same error written in this link: >> >> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2010-July/047030.html >> >> Please, would you tell me what is the manner to solve it? >> >> Thanks a lot. Greetings, >> >> Alejandro Cama. > > You have a java classpath problem: Java cannot find the necessary files. > It's not possible to say how to fix it without knowing lots of details > about your setup; I'd suggest figuring out how classpath works and then it > should be easy for you to solve yourself. > > Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Channel AT86RF212 for 868 MHz European band
Hi, I have a question, what is the channel number to the AT86RF212 radio chipset works in 868 MHz European band? I have seen in the RadioConfig.h file this directive: #define RF212_DEF_CHANNEL11, but the channels 11-26 are not for the 2,4 GHz band? Excuse me for my poor English. Thanks in advance. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [PATCH] rf230 BaseStation stuck on sending with fresh svn versions (r5427, mulle, rfxlink)
I think the following patch fixes the problem in the correct way... (Not completely tested but initial testing is positive) /RogerL -- Roger Larsson, Research Engineer Division of Mobile Networking and Computing Luleå University of Technology SE-931 87 Skellefteå Från: mmar...@gmail.com [mmar...@gmail.com] för Miklos Maroti [mmar...@math.u-szeged.hu] Skickat: den 10 februari 2011 23:04 Till: Roger Larsson Ämne: Re: rf230 BaseStation stuck on sending with fresh svn versions (r5427, mulle, rfxlink) Hi Roger, On Thu, Feb 10, 2011 at 11:10 AM, Roger Larsson wrote: > Done some further testing... > > Attached my oscilloscope.py as this is the program that sends parameter > change requests. > - when it noticed that a report has the wrong parameters it sends an update > (debug change - it sends only once...) > > So when a measurement is reported and has wrong interval a message will be > sent out. > > The BaseStation will forward this successfully but application will get error > code FAIL, causing > message to get stuck in the out queue. The retries will also get error code > FAIL. Stuck until reset. > BaseStation still receives messages from radio and forwards them - but it > looses many. > > I have tried to recompile with CFLAGS=-DPACKET_LINK did not help... I see. > What we know > - when the message that causes fail is sent the radio should be in RX_ON or > possibly RX_AACK_ON >it could also be actively sending an AACK (acknowledging the measurement > data) >but I added a delay before sending the new parameters to make sure it has > left any BUSY*AACK >no success Are you using HW acks? > - since sending WORKS, it did manage to get from this state into sending - > and actually deliver the message > hmm... mulle is using a rather slow software spi, wonder what happens if it > can not keep up for the complete message (UR) > several bytes are don't care when sending... Yes, that could be related, but do not see exactly why that happens, since if it passes through the first few checks in the send path, then it is bound to return SUCCESS even if there is an UR (that will be silently ignored, we do not and cannot handle it). > - there should be no incoming messages at this time to interfere (tried with > measurement interval of 15 seconds) > - but the BaseStation fail... (Verified again that it works with older > BaseStation code and the same peer Oscilloscope mote) > > " then try using the old pacetlink code" - I guess you mean packet link code. > Only using older code for this sub system. But it does not work completely > without it either... so... I copied the old packetlink code what I meant. This is the only real change in all these reorganizations. Can you give it a try with CFLAGS=-DPACKET_LINK make mulle Best, Miklos > > /RogerL > > -- > Roger Larsson, Research Engineer > Division of Mobile Networking and Computing > Luleå University of Technology > SE-931 87 Skellefteå > > Från: mmar...@gmail.com [mmar...@gmail.com] för Miklos Maroti > [mmar...@math.u-szeged.hu] > Skickat: den 10 februari 2011 08:18 > Till: Roger Larsson > Kopia: Henrik Mäkitaavola; tinyos-help@millennium.berkeley.edu > Ämne: Re: rf230 BaseStation stuck on sending with fresh svn versions (r5427, > mulle, rfxlink) > > Hi Roger, > > The only big change is that I removed the packetlink layer from the > default configuration. By default, the PACKET_LINK was enabled in > Radiocounfig.h. This I have removed. Also, there were some logic > problems in the old PacketLinkLayerP, where it would enable ACKS even > if you did not request them. This is also fixed. > > Try compiling with CFLAGS=-DPACKET_LINK enabled. If this does not fix > the problem, then try using the old pacetlink code. Let me know how > this works. > > Best, > Miklos > > On Thu, Feb 10, 2011 at 7:29 AM, Roger Larsson wrote: >> Correct, >> >> sendDone returns FAIL or some other error (i.e. not SUCCESS) >> but the message was delivered >> only one other mote running (multichannel) Oscilloskope - sending data at >> regular intervals >> the base station does receive messages and forward them to PC. >> >> This has worked earlier - something has happened... >> >> /RogerL >> >> -- >> Roger Larsson, Research Engineer >> Division of Mobile Networking and Computing >> Luleå University of Technology >> SE-931 87 Skellefteå >> >> Från: mmar...@gmail.com [mmar...@gmail.com] för Miklos Maroti >> [mmar...@math.u-szeged.hu] >> Skickat: den 10 februari 2011 01:08 >> Till: Roger Larsson >> Kopia: Henrik Mäkitaavola; tinyos-help@millennium.berkeley.edu >> Ämne: Re: rf230 BaseStation stuck on sending with fresh svn versions (r5427, >> mulle, rfxlink) >> >> Hi Roger! >> >> If I understand correctly, then the problem is that sendDone returns >> FAIL even though the message is transmitted. As a result, the >> Basestation gets into an inf
[Tinyos-help] Read data from a FIFO using the I2C connector
Hello, I want to connect a FIFO to an IRIS mote using a MDA100 sensor board and I would like to read the data received from the FIFO using the I2C connector. It is the first time that I have to do something like that. Could you please explain to me what do I need to do? Do you know any example? Thank you very much. Sofia ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] IBM mote runner and IRIS motes
Hello, I would like to know if somebody has used the IBM mote runner enviromment with IRIS motes. Do you recommend to use it? I have being working with tinyos-2.x and iris motes using cygwin. Thank you very much. Sofia ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] AES
Good morning every body, I want the algorithme AES with TINYOS ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help