RE: [Tinyos-help] FW: micaZ
Hi all, I do not know a lot, but some weeks ago we start working with TinyOS 1.1.15 and micaz motes. We got the same error. In orther to get that it compiles, we comment two lines in the interface HPLPowerManagement, which is in tinyos-1.x/tos/interfaces. Perhaps it is not the best way, but now it works. I hope this helps you. Andres From: "Ben Kelley" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "'Adam'" <[EMAIL PROTECTED]>,"'tinyos-help'" Subject: RE: [Tinyos-help] FW: micaZ Date: Thu, 6 Jul 2006 23:24:40 -0500 > -Original Message- > From: [EMAIL PROTECTED] [mailto:tinyos-help- > [EMAIL PROTECTED] On Behalf Of Adam > Sent: Thursday, July 06, 2006 19:07 > To: 'tinyos-help' > Subject: [Tinyos-help] FW: micaZ > > P.S. It complaints: > > In component `HPLPowerManagementM': > C:/PROGRA~1/UCB/cygwin/opt/tinyos- > 1.x/tos/platform/micaz/HPLPowerManagementM > .nc: > 49: `PowerManagement.disable' not implemented > C:/PROGRA~1/UCB/cygwin/opt/tinyos- > 1.x/tos/platform/micaz/HPLPowerManagementM > .nc: > 49: `PowerManagement.enable' not implemented > make: *** [exe0] Error 1 > > > -Original Message- > From: Adam [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 06, 2006 5:05 PM > To: 'tinyos-help' > Subject: micaZ > > My tinyos was installed for working with Tmote Sky. What's the easiest way > to change it to work with micaz? I tried to export > TOSMAKE_PATH=/opt/tinyos-1.x/tools/make > > But not working yet? Do I need install any additional things? If so, how > to > do? Thanks. > > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help I have no idea if this is relevant, but I was playing the other day trying to install straight telosb without the boomerang stuff, and I set the TOSMAKE_PATH to what you did, and got errors for the telosb; unset'ing the variable from my shell let the make process work fine. i.e. in bash type unset TOSMAKE_PATH ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] External Shutdown
Title: Sec:u External Shutdown Hello All, I am wondering if any has successfully used the ExternalShutdown command on the MicaZ? I have tried to use it, however, when I run the command "call ExternalShutdown.stop()" it is never successful. Does anyone know what I may be doing wrong? Travis Bessell Computer Systems Engineer ISRD 200 labs DSTO Edinburgh EDINBURGH SA 5111 Telephone: (08) 8259 7116 E-mail: [EMAIL PROTECTED] IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] multihop routing in surge
Hi, I am experimenting with multihop routing in the surge tutorial. While I was browsing through the source, in particular, tos/lib/Router/MultiHopRouter.nc, I noticed that it uses MultiHopRouteM or MultiHopEngineM depending on whether OLD_ROUTING is defined. What is the difference between the MultiHopRouteM and MultiHopEngineM? It appears that MultiHopRouteM has better facilities for routining a packet. The reason that I am looking through the multihop source is that I am not able to get the packet to multihop in the Surge tutorial. cheers, -- Tehn Yit Chin Embedded System Engineer, Grey Innovation Pty. Ltd. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] FW: micaZ
> -Original Message- > From: [EMAIL PROTECTED] [mailto:tinyos-help- > [EMAIL PROTECTED] On Behalf Of Adam > Sent: Thursday, July 06, 2006 19:07 > To: 'tinyos-help' > Subject: [Tinyos-help] FW: micaZ > > P.S. It complaints: > > In component `HPLPowerManagementM': > C:/PROGRA~1/UCB/cygwin/opt/tinyos- > 1.x/tos/platform/micaz/HPLPowerManagementM > .nc: > 49: `PowerManagement.disable' not implemented > C:/PROGRA~1/UCB/cygwin/opt/tinyos- > 1.x/tos/platform/micaz/HPLPowerManagementM > .nc: > 49: `PowerManagement.enable' not implemented > make: *** [exe0] Error 1 > > > -Original Message- > From: Adam [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 06, 2006 5:05 PM > To: 'tinyos-help' > Subject: micaZ > > My tinyos was installed for working with Tmote Sky. What's the easiest way > to change it to work with micaz? I tried to export > TOSMAKE_PATH=/opt/tinyos-1.x/tools/make > > But not working yet? Do I need install any additional things? If so, how > to > do? Thanks. > > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help I have no idea if this is relevant, but I was playing the other day trying to install straight telosb without the boomerang stuff, and I set the TOSMAKE_PATH to what you did, and got errors for the telosb; unset'ing the variable from my shell let the make process work fine. i.e. in bash type unset TOSMAKE_PATH ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] (no subject)
On Jul 6, 2006, at 11:21 AM, Adam wrote: Hi, Anyone has empirical results to adjust tranmission power of CC2420 based on LQI -- like some linear equation? I have tried adjustLQI() in MultihopLQI.nc, the return value is not stable and oscillate in a large range. Actually, I wonder why not use the original LQI in TOS_Msg header? Since CC2420 datasheet said: "A correlation value of ~110 indicates a maximum quality frame while a value of ~50 is typically the lowest quality frames detectable by CC2420." Anyone successfully get a linear relation between the LQI value and actual link quality? It's not a linear relationship. Kannan recently published a paper (EmNets 2006) that scratches the surface of the topic, and should soon (in the next week) have a tech report that looks at it more deeply. You can find the paper here: http://csl.stanford.edu/~pal/pubs.html Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [TinyOS-help] Compile Error for SurgeTelos
I have no idea how to fix it. I recheck out the tinyos again and the problem solved. Thank you very much for your helpOn 7/5/06, Ben Kelley < [EMAIL PROTECTED]> wrote: That error seems to indicate that TOS_MSG somehow has been defined twice, but they don't match. Have you modified these files at all? I don't think either TOSMAKE_PATH matters, either the moteiv one, if you have boomerang installed or just plain tinyos, without one. What version of tinyos? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ming Sent: Wednesday, July 05, 2006 20:42 To: Adam Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [TinyOS-help] Compile Error for SurgeTelos Thank you for you kind reply. I have tried to export TOSMARK_PATH, but the problem is still appear. Are there any other problem cause the Error? On 7/5/06, Adam <[EMAIL PROTECTED]> wrote: export TOSMAKE_PATH=/opt/tinyos- 1.x/contrib/moteiv/tools/make Should solve this. -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Joe Polastre Sent: Wednesday, July 05, 2006 9:19 AM To: Ming Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [TinyOS-help] Compile Error for SurgeTelos For some reason it isn't finding %T/lib/MultiHopLQI On 7/4/06, Ming <[EMAIL PROTECTED]> wrote: > Hi everyone > > When I try to compile the SurgeTelos on the Telos verB, I get the > following error. How can I solve it? > > > # make telosb > > mkdir -p build/telosb > > compiling Surge to a telosb binary ncc -o build/telosb/main.exe > > -O -I%T/lib/MultiHopLQI -DSEND_QUEUE_SIZE=8 > -DMHOP_LEDS -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all > -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge > -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 > -DIDENT_PROGRAM_NAME=\"Surge\" -DIDENT_USER_ID=\"root\" > -DIDENT_HOSTNAME=\"new-host-11\" > -DIDENT_USER_HASH=0xb4e3d2a8L -DIDENT_UNIX_TIME=0x44aac6c4L > -DIDENT_UID_HASH=0xfc1bbc3eL -mdisable-hwmul -I/opt/tinyos- > 1.x/tos/lib/CC2420Radio Surge.nc -lm > > > /opt/tinyos-1.x/tos/lib/MultiHopLQI/MultiHopEngineM.nc:82: > `TOS_Msg' defined as wrong kind of tag > > > /opt/tinyos-1.x/tos/lib/MultiHopLQI/MultiHopEngineM.nc:83: > `TOS_Msg' defined as wrong kind of tag > > make: *** [exe0] Error 1 > > > > Thank you. > > CM > > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-h > elp > > > ___ 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] FW: micaZ
P.S. It complaints: In component `HPLPowerManagementM': C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLPowerManagementM .nc: 49: `PowerManagement.disable' not implemented C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/platform/micaz/HPLPowerManagementM .nc: 49: `PowerManagement.enable' not implemented make: *** [exe0] Error 1 -Original Message- From: Adam [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 5:05 PM To: 'tinyos-help' Subject: micaZ My tinyos was installed for working with Tmote Sky. What's the easiest way to change it to work with micaz? I tried to export TOSMAKE_PATH=/opt/tinyos-1.x/tools/make But not working yet? Do I need install any additional things? If so, how to do? Thanks. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] micaZ
My tinyos was installed for working with Tmote Sky. What's the easiest way to change it to work with micaz? I tried to export TOSMAKE_PATH=/opt/tinyos-1.x/tools/make But not working yet? Do I need install any additional things? If so, how to do? Thanks. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How to use float type in TinyOS?
Although there were no mention of float and double type in the TinyOS, I used it in a nesC code and the compile was successed. Is the float type apply for all motes? I am wondering how can I store a float or double floating point number in a packet and gets it back to original? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Re: Changing the Deluge image size
One clarification. It turns out that Deluge page sizes are 1104 bytes apparently. So, the 58 page limit is really a 64K limit, which makes the problem a little simpler. Still, I would like to know how to support larger images, if anyone knows. Thanks,JacobOn 7/6/06, Jacob Sorber <[EMAIL PROTECTED]> wrote: I'm trying to use deluge to program my motes, but it keeps complaining that my images are too big. I tracked it down to line 76 in ImageInjector.java which yelps if the image requires more than 58 pages. The image I'm trying to load is 66K (about 258 pages), so what do I need to do to use Deluge with real images rather than little toy 10K images? I can change ImageInjector.java easy enough, but I imagine there is a reason for the restriction. Any help would be great,Thanks,Jacob Sorber ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] [TinyOs Help] TinyOs on Red Hat EL4
I am trying to install and run tinyos on Red Hat EL4. I get most of the way through the installation, but a series of errors about enum.an example is /opt/tinyos-1.x/tools/java/net/tinyos/sim/event/SimEventBus.java:180: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier(try -source 1.4 or lower to use 'enum' as an identifier) Enumeration enum = getEventListeners().elements();I have installedIBMJava2-142-ia32-SDK-1.4.2-5.0.i386.rpm and IBMJava2-JAVACOMM-1.4.2-5.0.i386.rpm, as the webpage ordered. I believe the java compiler (javac) is the cause of these errors. However, I cannot add the -source 1.4, as the compiler is being called from within the rpm. Any help working around this issue would be greatly appreciated. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Changing the Deluge image size
I'm trying to use deluge to program my motes, but it keeps complaining that my images are too big. I tracked it down to line 76 in ImageInjector.java which yelps if the image requires more than 58 pages. The image I'm trying to load is 66K (about 258 pages), so what do I need to do to use Deluge with real images rather than little toy 10K images? I can change ImageInjector.java easy enough, but I imagine there is a reason for the restriction. Any help would be great,Thanks,Jacob Sorber ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How to access flash memory on MicaZ
Hi, everyoneI have some problems on access to flash memory and hope somebody can help.I'm using micaz and mib510, and the version of my tinyOS is 1.1.7. I looked throught TinyOS tutorial Lesson 8 and SenseLightToLog in \tinyos\apps, which was designed for Mica2. In my project, two data arrays were defined and given different values; one stores data to be sent to memory and the other stores data to be read out. Two timers were fired to post tasks of writing and then reading. I was using LoggerWrite.append() and LoggerRead.readNext() and did not change or reset the line.During the run, I was very sure that the routine went into LoggerWrite.writeDone() and LoggerRead.readDone() by LED flash. However, when I checked the array storing data read out, which was supposed to have new values, it did not change at all. I am really confused. Is it possible that writing or reading is not successful even if process-done function is activated? Somebody has tried to access flash memory on MicaZ once? I posted my code as following. Please help! Thanks in advance.Best,Lei uint8_t data_in[16]; uint8_t *bufferPtr_in; uint8_t data_out[16]; uint8_t *bufferPtr_out; char * ptr; command result_t StdControl.init() { atomic{ bufferPtr_in = &(data_in[0]); bufferPtr_out = &(data_out[0]); } return rcombine(call SubControl.init(), call Leds.init()); } command result_t StdControl.start() { uint8_t i; for(i=0;i<8;i++) data_in[i] = 0x; data_out[0] = 0x0004; call Leds.greenOn(); call Timer1.start(TIMER_ONE_SHOT,2000); call Timer2.start(TIMER_ONE_SHOT,5000); return call SubControl.start (); } task void writeTask(){ atomic{ ptr = (char*)bufferPtr_in; } call LoggerWrite.append(ptr); } task void readTask(){ atomic{ ptr = (char*)bufferPtr_out; } call LoggerRead.readNext(ptr); } event result_t Timer1.fired() { post writeTask(); return SUCCESS; } event result_t Timer2.fired() { post readTask(); return SUCCESS; } event result_t LoggerWrite.writeDone(result_t status){ call Leds.redToggle(); return SUCCESS; } event result_t LoggerRead.readDone(uint8_t *buffer, result_t status){ // call Leds.set(bufferPtr_out[0]); call Leds.yellowToggle(); return SUCCESS; }-- ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] (no subject)
Hi, Anyone has empirical results to adjust tranmission power of CC2420 based on LQI -- like some linear equation? I have tried adjustLQI() in MultihopLQI.nc, the return value is not stable and oscillate in a large range. Actually, I wonder why not use the original LQI in TOS_Msg header? Since CC2420 datasheet said: "A correlation value of ~110 indicates a maximum quality frame while a value of ~50 is typically the lowest quality frames detectable by CC2420." Anyone successfully get a linear relation between the LQI value and actual link quality? //From CC2420 Data sheet As described in the Frame check sequence section on page 38, the average correlation value for the 8 first symbols is appended to each received frame together with the RSSI and CRC OK/not OK when MDMCTRL0.AUTOCRC is set. A correlation value of ~110 indicates a maximum quality frame while a value of ~50 is typically the lowest quality frames detectable by CC2420. Software must convert the correlation value to the range 0-255 defined by [1], e.g. by calculating: LQI = (CORR - a) . b limited to the range 0-255, where a and b are found empirically based on PER measurements as a function of the correlation value. A combination of RSSI and correlation values may also be used to generate the LQI value. == // A function got from MultihopLQI.nc uint16_t adjustLQI(uint8_t val) { uint16_t result = (80 - (val - 50)); result = (((result * result) >> 3) * result) >> 3; return result; } ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Weird results...
Yeah, I do that. I think it's an electrical problem: The motes are connected with USB cables to USB hubs, which are connected with each other, to the power and to the computer If I order one node to give the maximum output and there are 2 nodes connected, each gives 1/2 of the maximum output, if there are 3, each 1/3, etc... Would a voltage follower between the the mote and the inverter solve the problem? Is there a simpler solution? Of course having the motes isolated from each other and receiving radio commands would solve the problem, but I need to keep the USB connection, since at a later stage the motes should be sending measurements to the computer continuously... Thanks again... On Thu, 2006-07-06 at 09:32 -0700, Dongyan Chen wrote: > When you program your motes, have you programmed them with different > node ids like > > make tmote reinstall,NODE_ID? > > - Dongyan > > On 7/6/06, Jose L. Ponce <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > My question is very simple: I have 5 motes with the same program > > installed. This program receives an instruction from the computer and > > executes it (i.e. "dac output to 2 volts"). > > > > I am sending the instruction using moteif.send(MOTEID, message), so > > theoretically just the mote MOTEID should receive the message. This is > > not the case, though, and all motes seem to receive the message and > > execute it. > > > > And what's more strange: if I have two motes and I send "set dac to > > 0x" (which should be the maximum, 3 volts) both motes receive the > > message and each of them has an output of 1.5 volts!! > > > > The nodes are connected to the computer through USB and communication is > > made using this means, not radio. > > > > The DAC outputs are connected to an inverter amplifier and this > > amplifier is connected to a DC-Controlled Dimmer. Could the problem be > > related to impedances??? > > > > Any thoughts on what could be causing this anomaly and how to solve it? > > > > Thanks, > > > > - Jose. > > > > > > ___ > > 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] Weird results...
When you program your motes, have you programmed them with different node ids like make tmote reinstall,NODE_ID? - Dongyan On 7/6/06, Jose L. Ponce <[EMAIL PROTECTED]> wrote: Hello all, My question is very simple: I have 5 motes with the same program installed. This program receives an instruction from the computer and executes it (i.e. "dac output to 2 volts"). I am sending the instruction using moteif.send(MOTEID, message), so theoretically just the mote MOTEID should receive the message. This is not the case, though, and all motes seem to receive the message and execute it. And what's more strange: if I have two motes and I send "set dac to 0x" (which should be the maximum, 3 volts) both motes receive the message and each of them has an output of 1.5 volts!! The nodes are connected to the computer through USB and communication is made using this means, not radio. The DAC outputs are connected to an inverter amplifier and this amplifier is connected to a DC-Controlled Dimmer. Could the problem be related to impedances??? Any thoughts on what could be causing this anomaly and how to solve it? Thanks, - Jose. ___ 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] TinyOS-2 compiling Block application
On 7/6/06, Emma Miller <[EMAIL PROTECTED]> wrote: Hi- I'm trying to compile the TinyOS-2 Block application (in apps/tests/storage/Block) for Mica2 motes and I get this error: mkdir -p build/mica2 compiling RandRWAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mic a2/app.c -board=micasb -Ibuild/mica2 -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, compon ents)' -fnesc-dumpfile=build/mica2/wiring-check.xml RandRWAppC.nc -lm In component `RandRWAppC': RandRWAppC.nc:21: `VOLUME_BLOCKTEST' undeclared here (not in a function) make: *** [exe0] Error 1 Hmm. Try a make clean, then make again. I'd guess from the error that the build/mica2/StorageVolumes.h file (which contains the volume layout on the flash) didn't get generated correctly. You might want to check that you have a tos-storage-at45db command available; if not, make sure you've installed the tinyos-tools rpm. David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Weird results...
Hello all, My question is very simple: I have 5 motes with the same program installed. This program receives an instruction from the computer and executes it (i.e. "dac output to 2 volts"). I am sending the instruction using moteif.send(MOTEID, message), so theoretically just the mote MOTEID should receive the message. This is not the case, though, and all motes seem to receive the message and execute it. And what's more strange: if I have two motes and I send "set dac to 0x" (which should be the maximum, 3 volts) both motes receive the message and each of them has an output of 1.5 volts!! The nodes are connected to the computer through USB and communication is made using this means, not radio. The DAC outputs are connected to an inverter amplifier and this amplifier is connected to a DC-Controlled Dimmer. Could the problem be related to impedances??? Any thoughts on what could be causing this anomaly and how to solve it? Thanks, - Jose. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS-2 compiling Block application
Hi- I'm trying to compile the TinyOS-2 Block application (in apps/tests/storage/Block) for Mica2 motes and I get this error: mkdir -p build/mica2 compiling RandRWAppC to a mica2 binary ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mic a2/app.c -board=micasb -Ibuild/mica2 -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, compon ents)' -fnesc-dumpfile=build/mica2/wiring-check.xml RandRWAppC.nc -lm In component `RandRWAppC': RandRWAppC.nc:21: `VOLUME_BLOCKTEST' undeclared here (not in a function) make: *** [exe0] Error 1 I have not changed any code, and I have tried installing with different mote IDs as instructed in the readme. I'd appreciate any help. Thanks. -Emma ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
FW: [Tinyos-help] help:event Receive.receive(),simultaneous!!
Strange! i used timers and then i tried by posting payload elaboration so to have the receiving buffer free as soon as possible, as suggested by you, but the results on TOSSIM are still the same! May be is not TOSSIM a good simulator in this case? -Original Message- From: Aditya Bhave [mailto:[EMAIL PROTECTED] Sent: Thu 7/6/2006 10:51 AM To: Munaretto, Daniel Cc: tinyos-help@millennium.berkeley.edu; [EMAIL PROTECTED] Subject: Re: [Tinyos-help] help:event Receive.receive(),simultaneous!! I dont think you can.Packet loss is a problem in all networks-wired or wireless. What you can do is reduce the rate at which the sending node injects packets into the network. For example suppose node 1 wants to send 2 messages in succession. After sending the first message, wait for a period of time say 500 ms (sufficient for the packet to actualy eave the sending node and possibly reach other nodes). On timer firing, send the second message. Another way to solve the problem is to let your application return the receive buffer back to TinyOS as soon as possible event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) { //extract the payload field and copy to local storage space // post a task to process the payload return m; } In this way, if your storage space is quite big (capable of holding say 5 packets), you increase the probability of allowing TinyOS to receive each message properly and your application program to not miss them. On 7/6/06, Munaretto, Daniel <[EMAIL PROTECTED]> wrote: Hi all, is there a fast and easy way to receive all messages arriving from the network without lossing packets (simultaneous arriving messages to the same node)? Because if i only use event TOS_MsgPtr ReceiveDataNC.receive(TOS_MsgPtr m){ Datagram *dg=(Datagram *)m->data; [..] . . [..] return m; } i see in TOSSIM that some packets too close with each other (i mean in the time,really closed in arriving time), only the first is taken and elaborated,the next ones are not considered. But i want to consider all these packets for my project, it's really important!!! I hope someone can help me! Thanks for your availability!! Cheers Daniele ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards, Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] B-MAC doubt
Hi I'm studing the bmac protocol, and i have some doubts. First i made and application for micaz, start and stop the radio and enable HPLPowerManagement and the consumption of the mote is 70 mA when the mote is sending, and 50 mA when its sleep mode, the battery died in one ten days. Then i adapt my application to mica2 because BMAC could enlarge the battery's life, i read Joe Polastre's tesis months ago, and i have some doubts...Firstly I take the consumption of the mote and it's 13 mA when the mote send the packet and 0.03 mA when the mote sleep. At sight of the results i think bmac is by default into any application for mica2, really? Second, is there any possibility of implement bmac for micaz, but i don´t sure that i could do an implementation of the protocol for micaz, what do you think about this??? Reggards!! Fernando ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] How to use CopyIn and CopyOut?
Hi all, Does anyone knows how to send file on mote with "java net.tinyos.matchbox.tools.CopyIn"? I tied this: java net.tinyos.matchbox.tools.CopyIn < test.txt but i got : Prova.txt:no such file or directory. Why I get this error? Then I tried to do: java net.tinyos.matchbox.tools.CopyOut test.txt (to get the file) but i got: Build a Packet source for unknown We're connected to avrmote error: bad data Can anyone tell me how to use CopyIn and CopyOut? I have programmed the mote (base station) with the application TestRemote. I'm using TinyOS 1.1.7 and mica2 mote. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help:event Receive.receive(),simultaneous!!
I dont think you can.Packet loss is a problem in all networks-wired or wireless. What you can do is reduce the rate at which the sending node injects packets into the network. For example suppose node 1 wants to send 2 messages in succession. After sending the first message, wait for a period of time say 500 ms (sufficient for the packet to actualy eave the sending node and possibly reach other nodes). On timer firing, send the second message. Another way to solve the problem is to let your application return the receive buffer back to TinyOS as soon as possible event TOS_MsgPtr ReceiveMsg.receive(TOS_MsgPtr m) { //extract the payload field and copy to local storage space // post a task to process the payload return m; } In this way, if your storage space is quite big (capable of holding say 5 packets), you increase the probability of allowing TinyOS to receive each message properly and your application program to not miss them. On 7/6/06, Munaretto, Daniel <[EMAIL PROTECTED]> wrote: Hi all,is there a fast and easy way to receive all messages arriving from the network without lossing packets (simultaneous arriving messages to the same node)?Because if i only useevent TOS_MsgPtr ReceiveDataNC.receive(TOS_MsgPtr m){ Datagram *dg=(Datagram *)m->data;[..]..[..] return m;}i see in TOSSIM that some packets too close with each other (i mean in the time,really closed in arriving time), only the first is taken and elaborated,the next ones are not considered.But i want to consider all these packets for my project, it's really important!!!I hope someone can help me!Thanks for your availability!!CheersDaniele___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Using external EEPROM(M25P80) on Tmote
Now, I am trying to write and read external EEPROM on Tmote. I searched related mailing list and implemented using David's example. However, there is strange problems. I wrote string of numbers to EEPROM like below, BlockWrite.write(0x0, myString, sizeof(myString); Before writing, I conduct BlockWrite.erase, Mount.mount. When I read again using BlockRead.read(0x0, readBuf, sizeof(myString));, only first array(readBuf[0]) is corrent and others is not correct. For another string, only first array gives corrent value. What is wrong? ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] help:event Receive.receive(),simultaneous!!
Hi all, is there a fast and easy way to receive all messages arriving from the network without lossing packets (simultaneous arriving messages to the same node)? Because if i only use event TOS_MsgPtr ReceiveDataNC.receive(TOS_MsgPtr m){ Datagram *dg=(Datagram *)m->data; [..] . . [..] return m; } i see in TOSSIM that some packets too close with each other (i mean in the time,really closed in arriving time), only the first is taken and elaborated,the next ones are not considered. But i want to consider all these packets for my project, it's really important!!! I hope someone can help me! Thanks for your availability!! Cheers Daniele ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help