[Tinyos-help] Badly needing help for tinyDB
Dear all: Thank You so much for u r previous responses.. They have helped me so much Now i am trying to run TinyDb for MTS420. This is the makefile for TinyDBApp. COMPONENT=TinyDBApp SENSORBOARD=mts400 PFLAGS=-I %T/lib/Util -I%T/lib/Attributes -I%T/lib/Commands -I%T/lib/TinyDB -I%T/lib/MintRoute -I%T/lib/Queue -I%T/lib/FS -I%T/lib/TinyDB/Aggregates -fno-strict-aliasing PFLAGS+= -I../../contrib/xbow/tos/interfaces -I../../contrib/xbow/tos/system -I../../contrib/xbow/tos/platform/$(PLATFORM) -I../../contrib/xbow/tos/lib -I../../contrib/xbow/tos/sensorboards/$(SENSORBOARD) PFLAGS+=-DCC1K_DEF_FREQ=914077000 MSG_SIZE=49 include ../Makerules include ../../contrib/xbow/apps/MakeXbowlocal In AttrPressure and AttrPressureM.nc i have included: #define PRESENT But whenever i run tinyDB i am getting null values for pressure(press); Plz can somebody help me..i am really tired breaking my head over it. Thank You in advance -- - - Regards, Prajakta Choudhari, Project Engineer, ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] GlobalTime in Tmote from Moteiv
if (call GlobalTime.isValid()) { call GlobalTime.get(); } -Joe On 5/31/06, Jörgen Johansson [EMAIL PROTECTED] wrote: Can you explain with an example how I can use the Globaltime in the Delta example in Bomerang 2.0.2 ? /Jörgen Johansson -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Joe Polastre Skickat: den 30 maj 2006 18:51 Till: Jörgen Johansson Kopia: tinyos-help@millennium.berkeley.edu Ämne: Re: [Tinyos-help] GlobalTime in Tmote from Moteiv GlobalTime is provided by the NetSyncC component. If you're not using networkwide synchronization, then there is no GlobalTime provided. -Joe On 5/30/06, Jörgen Johansson [EMAIL PROTECTED] wrote: How can I access the GlobalTime from my code? I will have a main node as a time master. Is the timesynchronization only active when compiled with lowpower? Shall I include the file GlobalTime.nc or shall I wire the NetSync component? What´s the accuracy of the GlobalTime? My application is a system that will wake up one hour once a day. At that hour I will send as much data as possible. The rest of the time I will save power and only listen for a wakeup command. Best Regards Jörgen Johansson ___ 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
SV: [Tinyos-help] GlobalTime in Tmote from Moteiv
How synchronized (us) is GlobalTime in different nodes? Is it possible to get an event e.g. once a second from GlobalTime? /Jörgen Johansson -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Joe Polastre Skickat: den 1 juni 2006 13:32 Till: Jörgen Johansson Kopia: tinyos-help@millennium.berkeley.edu Ämne: Re: [Tinyos-help] GlobalTime in Tmote from Moteiv if (call GlobalTime.isValid()) { call GlobalTime.get(); } -Joe On 5/31/06, Jörgen Johansson [EMAIL PROTECTED] wrote: Can you explain with an example how I can use the Globaltime in the Delta example in Bomerang 2.0.2 ? /Jörgen Johansson -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Joe Polastre Skickat: den 30 maj 2006 18:51 Till: Jörgen Johansson Kopia: tinyos-help@millennium.berkeley.edu Ämne: Re: [Tinyos-help] GlobalTime in Tmote from Moteiv GlobalTime is provided by the NetSyncC component. If you're not using networkwide synchronization, then there is no GlobalTime provided. -Joe On 5/30/06, Jörgen Johansson [EMAIL PROTECTED] wrote: How can I access the GlobalTime from my code? I will have a main node as a time master. Is the timesynchronization only active when compiled with lowpower? Shall I include the file GlobalTime.nc or shall I wire the NetSync component? What´s the accuracy of the GlobalTime? My application is a system that will wake up one hour once a day. At that hour I will send as much data as possible. The rest of the time I will save power and only listen for a wakeup command. Best Regards Jörgen Johansson ___ 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] How does time field work?TOS_Msg
In AM.h i found TOS_Msg that i'm using. If i display time field in my simulations on TinyViz, it's strange, it assumes meaningless values. Does someone know how it works? Thanks for your availability Daniele PS my purpose is to have a statistic about delay, so time when a mote send msg-time when it is received. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] random number
Hi, I want to get a sequence of random number and I use RandomLFSR. Because it use TOS_LOCAL_ADDRESS as the seed, I get the same sequence of random number every time. Is there any one know how to change the seed to get a sequence of 'real' random number? Best regards, Tony _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Timer 32 khz
Hi, i'm working with Tmote Sky. I need to use a timer that provides interface timer232 Khz or any other timer that runs at 32 khz. What can i use? Please help me... it's urgent. Thank you all ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Question about I2C
Jose,You can communicate through I2C with external devices using Tinyos 1.x. Take a look at tos/platforms/MSP430/MSP430I2CPacket and tos/platforms/telosb/I2CPacketC I2CPacketM. Make sure you take care to arbitrate the bus, since the radio chip is on the same USART.Regards,Matt[EMAIL PROTECTED] wrote: -To: tinyos-help@Millennium.Berkeley.EDUFrom: [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 06/01/2006 02:31PMSubject: [Tinyos-help] Question about I2CI need to know if someone it's been working with the I2C protocol in the TMOTE iv, specifically with Tiny OS 1.1.X distribution, not in Boomerang.I need to connect the node in slave mode to another hardware. Somebody have a example or idea of how could do this ?? Thank you in advance,-- José Ulloa SuárezJefe Area de DesarrolloWiseConn S.A.___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://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] A Timer Interval of Zero
Hello, After allowing my network topology to stabilize (i.e. parent child relationships have been established), I want to stop the automatic update of the NeighborTbl in MultiHopLEPSM. I issued the following statement with the purpose of causing the timer never to fire again: call RouteControl.setUpdateInterval(0) However, I found that the timer still fires! Is a timer interval of 0 ignored? How can I stop the timer from firing without actually stopping the timer with a Timer.Stop() command? Every help will be appreciated. Adesola ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Question about I2C
Even though I've reviewed those archives, but I have the following doubt. In the MSP430I2CC.nc file contained the primitives for setting the operation modes. Start is generated by the I2CPacket component, whenever read or write is made. In the StdControl.start a call to USARTControl.setModeI2C is made where is configurate for to work like a master. My question is in which moment it is suitable to make the call for to configurate in slave and to assign the OwnAddress??. After knowing clearly this, when recognizing tmote its direction would generate a ACK immediately, and would begin the reception? If this is correct, these had to be processed byte to byte and which events are generated when information is received??. Thank you very much. -- José Ulloa Suárez El Jueves, 1 de Junio de 2006 14:38, Matthew J Whelan escribió: FONT face=Default Sans Serif,Verdana,Arial,Helvetica,sans-serif size=2DIVFONT size=2PJose,/PPYou can communicate through I2C with external devices using Tinyos 1.x.nbsp; Take a look at tos/platforms/MSP430/MSP430I2CPacketnbsp; and tos/platforms/telosb/I2CPacketC amp; I2CPacketM.nbsp; Make sure you take care to arbitrate the bus, since the radio chip is on the same USART./PPFONT size=2Regards,/FONT/PPFONT size=2Matt/PP/FONT/FONTBRnbsp;/P/DIVFONT color=#990099[EMAIL PROTECTED] wrote: -BRBR/FONTblockquote style=PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 2px solid; MARGIN-RIGHT: 0pxTo: tinyos-help@Millennium.Berkeley.EDUBRFrom: [EMAIL PROTECTED]BRSent by: [EMAIL PROTECTED]BRDate: 06/01/2006 02:31PMBRSubject: [Tinyos-help] Question about I2CBRBRFONT face=Default Monospace,Courier New,Courier,monospace size=2 I need to know if someone it's been working with the I2C protocol in the TMOTE iv, specifically with Tiny OS 1.1.X distribution, not in Boomerang.BRI need to connect the node in slave mode to another hardware. Somebody have a example or idea of how could do this ?? BRThank you in advance,BR-- BRJosé Ulloa SuárezBRJefe Area de DesarrolloBRWiseConn S.A.BRBR___BRTinyos-help mailing listBRTinyos-help@Millennium.Berkeley.EDUBRA href=https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos- help target=blank https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help /ABR/FONT/blockquotebr/FONT -- José Ulloa Suárez Jefe de Desarrollo WiseConn S.A. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Question about I2C
Jose,Sorry, It didn't register the first time I read your question that you are wanting to use the Tmote as a slave device. If I were you, Iwould forget about using any of the components or interfaces available, except for reference. I would recommend taking a look at chapter 15 of the MSP430 F16xx Family User Guide (found at ti.com) which deals with I2C setup. Using that as a reference, you should be able to access registers directly to configure and read from the USART0 as I2C.Matt[EMAIL PROTECTED] wrote: -To: Matthew J Whelan [EMAIL PROTECTED]From: [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 06/01/2006 03:40PMcc: tinyos-help@Millennium.Berkeley.EDUSubject: Re: [Tinyos-help] Question about I2CEven though I've reviewed those archives, but I have the following doubt. In the MSP430I2CC.nc file contained the primitives for setting the operation modes. Start is generated by the I2CPacket component, whenever read or write is made. In the StdControl.start a call to USARTControl.setModeI2C is made where is configurate for to work like a master. My question is in which moment it is suitable to make the call for to configurate in slave and to assign the OwnAddress??. After knowing clearly this, when recognizing tmote its direction would generate a ACK immediately, and would begin the reception? If this is correct, these had to be processed byte to byte and which events are generated when information is received??.Thank you very much. -- José Ulloa SuárezEl Jueves, 1 de Junio de 2006 14:38, Matthew J Whelan escribió: FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2DIVFONT size=2PJose,/PPYou can communicate through I2C with external devices using Tinyos 1.x.nbsp; Take a look at tos/platforms/MSP430/MSP430I2CPacketnbsp; and tos/platforms/telosb/I2CPacketC amp; I2CPacketM.nbsp; Make sure you take care to arbitrate the bus, since the radio chip is on the same USART./PPFONT size=2Regards,/FONT/PPFONT size=2Matt/PP/FONT/FONTBRnbsp;/P/DIVFONT color=#990099[EMAIL PROTECTED] wrote: -BRBR/FONTblockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #00 2px solid; MARGIN-RIGHT: 0px"To: tinyos-help@Millennium.Berkeley.EDUBRFrom: [EMAIL PROTECTED]BRSent by: [EMAIL PROTECTED]BRDate: 06/01/2006 02:31PMBRSubject: [Tinyos-help] Question about I2CBRBRFONT face="Default Monospace,Courier New,Courier,monospace" size=2 I need to know if someone it's been working with the I2C protocol in the TMOTE iv, specifically with Tiny OS 1.1.X distribution, not in Boomerang.BRI need to connect the node in slave mode to another hardware. Somebody have a example or idea of how could do this ?? BRThank you in advance,BR-- BRJosé Ulloa SuárezBRJefe Area de DesarrolloBRWiseConn S.A.BRBR___BRTinyos-help mailing listBRTinyos-help@Millennium.Berkeley.EDUBRA href="" target=blank https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help/ABR/FONT/blockquotebr/FONT-- José Ulloa SuárezJefe de DesarrolloWiseConn S.A.___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://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] FW: Problem with UART0 in TMoteSky
Hi, I am testing send/receive messages through UART0 in TMote Sky, following the example in Moteiv website. The setup is following: Connect UART0 and convert it to a serial port, which is connected to my PC serial port COM13. If I never release the resource, the Pcomm Terminal Emulator (P.S. Microsoft Hyperterminal does not work for some reason) can correctly receive the data TMote sent out. But, if I release the resource after TMote sends out certain number of data, the Pcomm Terminal will receive many gabage characters, besides those characters I sent. Similarly, I tried to do reverse direction: PC send data, while TMote receive. Also many garbage data received by TMote. (P.S. It happens even if I comments the radio send part in TestUart0P) Enclosed is the source code which is modified based on example TestUart0P. How remove those garbage signals? Any advice is appreciated. Makefile Description: Binary data TestUart0.nc Description: Binary data TestUart0P.nc Description: Binary data ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] problems with nesc-topdir option
Hi everyone,I just had the weirdest problem... I have just move all my work from my job PC to my home PC which have a diferent user name. When I tryed to do the make docs sentence I had this error which seems to be a problem of having a space in my user name. I have tryed to change the name of home/Daniel V folder, but when I start the cygwin again, a new folder is created with the Daniel V name. It's only a make docs problem, because when I try to do a make everything goes OK. ( the Nxv1=1 is just a makefile option to select the file it is going to compile). In my job I don't have this problem because it is [EMAIL PROTECTED] -- no space anywhereDaniel [EMAIL PROTECTED] /opt/tinyos-1.x/contrib/nst-aodv/apps/daniel$ make Nxv1=1 micaz docs Making documentation for Tx on micaznesdoc /opt/tinyos-1.x/doc/nesdoc/micaz -topdir=/home/Daniel -topdir=V -topdir =/ -fnesc-is-app -tosdir=../../../../tos/ -I. -I../../tos/interfaces -I../../tos -I../../tos/system -I../../tos/lib/aodv -I../../tos/msp430 -DINTERVAL=250 -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mic az -fnesc-cfile=build/micaz/app.c -board=micasb -DTOSH_DATA_LENGTH=112 -DCC2420_DEF_RFPOWER=1 -DCC2420_DEF_CHANNEL=26 -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\Tx\ -DIDENT_USER_ID=\DanielV\ -DIDENT_HOSTNAME=\daniel\ -DIDENT_USER_HASH=0x06 a30ceeL -DIDENT_UNIX_TIME=0x447f5310L -DIDENT_UID_HASH=0x4753bfe7L -I/opt/tinyos-1.x/tos/lib/CC2420Radio Tx.ncrealpath: No such file or directorynesc1: ERROR: Bad nesc-topdir option: '/home/Daniel -topdir=V'make: *** [docs_] Error 1-- Daniel Villón V.---Departamento de Ingeniería Telemática.Universitat Politècnica de Catalunya ---C/. Jordi Girona 1-3Modulo C3 Laboratorio 003Barcelona CP 08034, EspañaTeléfono: +34 93 289 36 71Celular: +34 697 91 43 53e-mail: [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] problems with nesc-topdir option
On 6/1/06, Daniel Villón [EMAIL PROTECTED] wrote: I just had the weirdest problem... I have just move all my work from my job PC to my home PC which have a diferent user name. When I tryed to do the make docs sentence I had this error which seems to be a problem of having a space in my user name. I have tryed to change the name of home/Daniel V folder, but when I start the cygwin again, a new folder is created with the Daniel V name. It's only a make docs problem, because when I try to do a make everything goes OK. ( the Nxv1=1 is just a makefile option to select the file it is going to compile). In my job I don't have this problem because it is [EMAIL PROTECTED] -- no space anywhere Don't use directories with spaces in them. You'll run into lots of problems with many unix tools, scripts, etc (yes, they are notionally bugs, but there's too many of them ;-)). 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 nesc-topdir option
Now I know it gives problems... anyway I couldn't do anything because it takes mi user name from my windows instalation and now I can't change it... the thing is, what can I do?On 6/1/06, David Gay [EMAIL PROTECTED] wrote: On 6/1/06, Daniel Villón [EMAIL PROTECTED] wrote: I just had the weirdest problem... I have just move all my work from my job PC to my home PC which have a diferent user name. When I tryed to do the make docs sentence I had this error which seems to be a problem of having a space in my user name. I have tryed to change the name of home/Daniel V folder, but when I start the cygwin again, a new folder is created with the Daniel V name. It's only a make docs problem, because when I try to do a make everything goes OK. ( the Nxv1=1 is just a makefile option to select the file it is going to compile). In my job I don't have this problem because it is [EMAIL PROTECTED] -- no space anywhereDon't use directories with spaces in them. You'll run into lots ofproblems with many unix tools, scripts, etc (yes, they are notionally bugs, but there's too many of them ;-)).David Gay-- Daniel Villón V.---Departamento de Ingeniería Telemática. Universitat Politècnica de Catalunya---C/. Jordi Girona 1-3Modulo C3 Laboratorio 003Barcelona CP 08034, EspañaTeléfono: +34 93 289 36 71Celular: +34 697 91 43 53 e-mail: [EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Is this a bug in Moteiv Boomerang MultiHop?
In selectParent() function of MultihopLQIM.nc, is the following line a bug? if (parents[i].cost + parents[i].estimate newparent) { Should newparent be parentestimate ?? === void selectParent() { int i; int newparent = m_parent; uint16_t parentestimate = parents[m_parent].cost + parents[m_parent].estimate; // if our parent is invalid, pick the best parent if (parents[m_parent].addr == MHOP_INVALID_PARENT) { for (i = 0; i MHOP_PARENT_SIZE; i++) { if (parents[i].cost + parents[i].estimate newparent) { newparent = i; parentestimate = parents[i].cost + parents[i].estimate; } } } // if we have a parent, don't switch unless they're worthwhile else { for (i = 0; i MHOP_PARENT_SIZE; i++) { if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate) ((uint32_t) parentestimate) - (((uint32_t) parentestimate) 2)) { newparent = i; parentestimate = parents[i].cost + parents[i].estimate; } } } m_parent = newparent; } ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Is this a bug in Moteiv Boomerang MultiHop?
You are correct, thank you for pointing it out. -Joe On 6/1/06, Adam [EMAIL PROTECTED] wrote: In selectParent() function of MultihopLQIM.nc, is the following line a bug? if (parents[i].cost + parents[i].estimate newparent) { Should newparent be parentestimate ?? === void selectParent() { int i; int newparent = m_parent; uint16_t parentestimate = parents[m_parent].cost + parents[m_parent].estimate; // if our parent is invalid, pick the best parent if (parents[m_parent].addr == MHOP_INVALID_PARENT) { for (i = 0; i MHOP_PARENT_SIZE; i++) { if (parents[i].cost + parents[i].estimate newparent) { newparent = i; parentestimate = parents[i].cost + parents[i].estimate; } } } // if we have a parent, don't switch unless they're worthwhile else { for (i = 0; i MHOP_PARENT_SIZE; i++) { if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate) ((uint32_t) parentestimate) - (((uint32_t) parentestimate) 2)) { newparent = i; parentestimate = parents[i].cost + parents[i].estimate; } } } m_parent = newparent; } ___ 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