[Tinyos-help] MessageSelection caused MessageInjector weird
Hello everyone, I found a little problem about net.tinyos.message.MessageSelection.java ( 1.9 ) in line 198 of the code. 196 if (isRelated(newClass, messageClass) 197 !alreadyHave(newClass)) { 198Message m = (Message)newClass.newInstance(); 199vector.addElement(m); 200} We should catch the InstantiationException inside the if section immediately or make sure newClass is not an abstract class. Otherwise, findMessages method would stop finding the others Messages in the same root of classpath. That causes somewhat lacking in the list of packet showed in MessageInjector (Provided by MessageCenter). By adding the following condition check, the MessageInjector got fixed. (newClass.getModifiers() java.lang.reflect.Modifier.ABSTRACT) == 0 -- Best regards, Junyan Ma School of Computer Science and Engineering Northwestern Polytechnical University Xi'an, Shaanxi, P.R. China -- Best regards, Junyan Ma School of Computer Science and Engineering Northwestern Polytechnical University Xi'an, Shaanxi, P.R. China Email: [EMAIL PROTECTED] MSN: [EMAIL PROTECTED] Gtalk: [EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-devel] Re: [Tinyos-help] .platform question
Btw, for .platform-in-contrib purposes, %P can be useful: it expands to the directory where the .platform was found... (and this will therefore work within contrib) Very useful indeed, and I've just gone and put it to use in my .platform. Michiel ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Float and double difference
Hello, Does anyone know the difference between float and double in tinyos-1.x? I tried printing the size for each (using sizeof()), but I am getting 4 bytes for each. What's up? Thank you. Regards, Chee *** Please consider the environment before printing this email. *** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Technology (UK) Limited. *** ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TestPrintf error
Dear everyone, I tried running TestPrintf in cygwin, but i have the following error. Please advise. Thank you. In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') Best regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MicaZ_XubunTOS2.0
heyl all, I'm unable to install an application to a MicaZ mote. Whenever I do that I get the following error: flash error ... and address error , and so on Do I have to install the drives for Mib520 on XubuuTOS2.0?? *** Gonga, Antonio Oliveira e-mail: [EMAIL PROTECTED] Cell Phone: +46762320854 *** _ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[OT] RE: 回复: Re: 回复: Re: [Tinyos- help] How to get the Sample code which i s suitable to telosb platform?
I'll be an Army of .666... MS So that's a one millidevil army then? :-) Michiel ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Adding NesC syntax files to tinyos debs
Hi everyone, I would like to know what you think about adding Vim, Gedit and Kate syntax files for NesC to the tinyos deb packages. Regards, Ariel. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Power-down ADC on MicaZ ATMega128
Hi, I am working on monitoring consumption in micaZ motes. I have slept both the micro and the radio. So consumption must be above 20 uA (from the radio without WD nor battery monitor) plus 20 uA from ATMega. I have achieved a minimum consuption above 400uA on micaZ platform. Taking a look to the ATMega datasheet (page 355) it is suppossed that over 300 uA are from ADC. I have tried to power-down the ADC, but results imposible for me. The code that I have used is cbi(ADCSRA, ADEN); I guess that it should clear ADEN bit in ADCSRA register (as shown in page 232 of ATMega datasheet). Can anyone help me? I am on tinyOs1.15, but not matter if someone can point out a solution for T1 or T2. Thanks and merry X`mas! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tmote mini tinyos 2.x compatibility question
Hello, I am beginning a research with some tmote mini and found out about moteiv's transition to sentilla. I am using the default boomerang distribution that came with the motes but it unfortunatelly apears to support only tinyos 1.x . I used to work with Mica2 + tinyos 2.x and plan to port some of my code but am having some trouble to use tinyos 2.x . Apparently, Tmote Sky is code compatible with Telos revision B, the only differences between both being some minor hardware tweaks. Tmote mini's specification by moteiv says it is code compatible with tmote sky. Also, tinyos 2.x apparently has a tmote target wich seems only to be a telosb alias. Anyway, when I tried to download code to my mote via USB the bootstrap loader (bsl) gave a timeout error. I suspect the minis may have a different bootstrap loader sequence. I am using the latest (2.0.2) version of tinyos. Summarizing, is there a way to use tinyos 2.x with tmotes mini? ~Dimas~ ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tmote mini tinyos 2.x compatibility question
Dimas Abreu Dutra wrote: Hello, I am beginning a research with some tmote mini when I tried to download code to my mote via USB the bootstrap loader (bsl) gave a timeout error. I have not read all about those, but they are incomplete as they come, right? You need a board to put them on, don't you. What do you have them connected to? Perhaps you have a connection problem? My code for testing new platforms might help: http://docs.tinyos.net/index.php/Platform_Creation_and_Testing John Griessen -- Ecosensory Austin TX tinyOS devel on: ubuntu Linux; tinyOS v2.0.2; telosb ecosens1 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TestPrintf error
Are you running from cvs? Or which version of tinyos do you use? Kevin On Dec 18, 2007 4:32 AM, yvonne er [EMAIL PROTECTED] wrote: Dear everyone, I tried running TestPrintf in cygwin, but i have the following error. Please advise. Thank you. In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') Best regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MDA320 Driver/Application
Hello, I have MDA320 from XBow and need to use it to transmit an analog signal from one mote to the base station (only one hop). I need to have the driver for this board. Also, I really appreciate if any one has similar application which can be shared. Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Float and double difference
I think that TOS, or at least the platforms thereof, only support float at 4 bytes, so any double's probably get down-graded. MS Yong, Chee Yeew wrote: Hello, Does anyone know the difference between float and double in tinyos-1.x? I tried printing the size for each (using sizeof()), but I am getting 4 bytes for each. What's up? Thank you. Regards, Chee *** Please consider the environment before printing this email. *** This email and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may not be divulged to any third party without the express permission of the originator. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thales Research Technology (UK) Limited. *** ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128
On Dec 18, 2007, at 8:18 AM, Carlos Gil Soriano wrote: Hi, I am working on monitoring consumption in micaZ motes. I have slept both the micro and the radio. So consumption must be above 20 uA (from the radio without WD nor battery monitor) plus 20 uA from ATMega. I have achieved a minimum consuption above 400uA on micaZ platform. Taking a look to the ATMega datasheet (page 355) it is suppossed that over 300 uA are from ADC. I have tried to power-down the ADC, but results imposible for me. The code that I have used is cbi(ADCSRA, ADEN); I guess that it should clear ADEN bit in ADCSRA register (as shown in page 232 of ATMega datasheet). Can anyone help me? I am on tinyOs1.15, but not matter if someone can point out a solution for T1 or T2. T2 will automatically put you in the lowest power state possible. E.g., if the ADC is inactive it will power down automatically. micaZs should be able to get down to 4-5 uA. Phil ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [OT] RE: 回复: Re: 回复: Re: [Tinyos- help] How to get the Sample code which is suit able to telosb platform?
no... 667 milli-devils (rounded to the nearest md), which seems like a lot but probably isn't... Michiel Konstapel wrote: I'll be an Army of .666... MS So that's a one millidevil army then? :-) Michiel ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Power-down ADC on MicaZ ATMega128
I think ADEN enables the ADC operation but I'd bet the current is being used by the Vref...perhaps you can try switching the ref to some other, disconnected, source? MS Carlos Gil Soriano wrote: Hi, I am working on monitoring consumption in micaZ motes. I have slept both the micro and the radio. So consumption must be above 20 uA (from the radio without WD nor battery monitor) plus 20 uA from ATMega. I have achieved a minimum consuption above 400uA on micaZ platform. Taking a look to the ATMega datasheet (page 355) it is suppossed that over 300 uA are from ADC. I have tried to power-down the ADC, but results imposible for me. The code that I have used is cbi(ADCSRA, ADEN); I guess that it should clear ADEN bit in ADCSRA register (as shown in page 232 of ATMega datasheet). Can anyone help me? I am on tinyOs1.15, but not matter if someone can point out a solution for T1 or T2. Thanks and merry X`mas! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] tinyos 2.x radio
Hi All, I have a question concerning the radio stack of cc2420 in tinyos 2.x. A low power listening is used, which means that the radio is turned off and on periodically in order to detect a preamble sequence. Hence, the transmitter broadcasts many times the packet to ensure reception to its neighbors. The radio stack of tinyos 1.x, at least the version I've been using, keeps the radio on all the time, and download the message from the cc2420 as soon as a preamble is detected. Is it possible to know, in terms of energy consumption and packet losses, which is the best strategy? thanks Roberto ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tmote mini tinyos 2.x compatibility question
If you're using the Tmote mini dev. kit boards (red boards with tmote mini soldered onto them) they are compatible with TinyOS 2.x BUT you have to use the download program called tmote-bsl instead of tos-bsl or msp430-bsl. tmote-bsl was shipped with the install CD that came with the dev kit. Best regards, Rob On Dec 18, 2007 8:43 AM, Dimas Abreu Dutra [EMAIL PROTECTED] wrote: Hello, I am beginning a research with some tmote mini and found out about moteiv's transition to sentilla. I am using the default boomerang distribution that came with the motes but it unfortunatelly apears to support only tinyos 1.x . I used to work with Mica2 + tinyos 2.x and plan to port some of my code but am having some trouble to use tinyos 2.x . Apparently, Tmote Sky is code compatible with Telos revision B, the only differences between both being some minor hardware tweaks. Tmote mini's specification by moteiv says it is code compatible with tmote sky. Also, tinyos 2.x apparently has a tmote target wich seems only to be a telosb alias. Anyway, when I tried to download code to my mote via USB the bootstrap loader (bsl) gave a timeout error. I suspect the minis may have a different bootstrap loader sequence. I am using the latest ( 2.0.2) version of tinyos. Summarizing, is there a way to use tinyos 2.x with tmotes mini? ~Dimas~ ___ 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] tmote mini tinyos 2.x compatibility question
There is no need to create a new platform, that is leading down a road of painful nights and many tears of motes not working. Simply, the bsl on the Tmote Mini development kit uses a different protocol. Simply use the tmote-bsl.exe included on the CD in your Tmote Mini developer's kit, and you'll be able to program your Tmote Minis using the red adapter boards. -Joe On 12/18/07, John Griessen [EMAIL PROTECTED] wrote: Dimas Abreu Dutra wrote: Hello, I am beginning a research with some tmote mini when I tried to download code to my mote via USB the bootstrap loader (bsl) gave a timeout error. I have not read all about those, but they are incomplete as they come, right? You need a board to put them on, don't you. What do you have them connected to? Perhaps you have a connection problem? My code for testing new platforms might help: http://docs.tinyos.net/index.php/Platform_Creation_and_Testing John Griessen -- Ecosensory Austin TX tinyOS devel on: ubuntu Linux; tinyOS v2.0.2; telosb ecosens1 ___ 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] tinyos 2.x radio
The answer mostly depends on how noisy your network is. A CC2420 radio that is always left on (1.x) will consume ~462 mAh/day. To put this amount of power in perspective, your node will last about 3.6 days on a 1700 mAh (cell phone) battery. Obviously if you have setup a network where all the CC2420 radios transmit all the time, the radios are never going to get to sleep. But by allowing your nodes to duty cycle and quieting down that network, you can get your power consumption down as low as 3-6 mAh/day pretty easily, somewhere around 1-5 second receive check intervals. At those limits, the microcontroller becomes the largest consumer of energy on the node and not the radio. In one of my deployments, I managed to get the CC2420 radios to ~4 mAh/day - that's about 425 days of lifetime for a 1700 mAh cell phone battery (not taking into account internal losses of the battery, etc.). Take a look at the BMAC and XMAC papers for more information on the trade-offs of power. http://www.polastre.com/papers/sensys04-bmac.pdf http://www.cs.colorado.edu/department/publications/reports/docs/CU-CS-1008-0 6.pdf The CC2420 low power listening implementation is a combination of the BMAC and XMAC strategies. -David _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of roberto pagliari Sent: Tuesday, December 18, 2007 11:10 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] tinyos 2.x radio Hi All, I have a question concerning the radio stack of cc2420 in tinyos 2.x. A low power listening is used, which means that the radio is turned off and on periodically in order to detect a preamble sequence. Hence, the transmitter broadcasts many times the packet to ensure reception to its neighbors. The radio stack of tinyos 1.x, at least the version I've been using, keeps the radio on all the time, and download the message from the cc2420 as soon as a preamble is detected. Is it possible to know, in terms of energy consumption and packet losses, which is the best strategy? thanks Roberto ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MDA320 Driver/Application
The sensorboard drivers and sample application are available in MoteWorks. http://www.xbow.com/Support/wSoftwareDownloads.aspx \opt\MoteWorks\apps\xsensor\XSensorMDA300 - for single hop \opt\MoteWorks\apps\xmesh\XMDA320 - for multi-hop Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Kadri Sent: Tuesday, December 18, 2007 9:34 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] MDA320 Driver/Application Hello, I have MDA320 from XBow and need to use it to transmit an analog signal from one mote to the base station (only one hop). I need to have the driver for this board. Also, I really appreciate if any one has similar application which can be shared. Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MicaZ_XubunTOS2.0
The mib520 will most probably show up as /dev/ttyUSB0 and /dev/ttyUSB1 (assuming you don't have any other usb-to-serial interfaces). The former one is used to program the mote, the latter one to communicate with it. That is, make micaz install mib510,/dev/ttyUSB0 will program the mote, and sf -comm serial@/dev/ttyUSB1:micaz will start up serialforwarder for you. Janos -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of antonio gonga Sent: Tuesday, December 18, 2007 6:51 AM To: TINYOS Subject: [Tinyos-help] MicaZ_XubunTOS2.0 heyl all, I'm unable to install an application to a MicaZ mote. Whenever I do that I get the following error: flash error ... and address error , and so on Do I have to install the drives for Mib520 on XubuuTOS2.0?? *** Gonga, Antonio Oliveira e-mail: [EMAIL PROTECTED] Cell Phone: +46762320854 *** _ Get the power of Windows + Web with the new Windows Live. Get it now! http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_122007 Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.17.1 - Release Date: 12/11/2007 12:00 AM smime.p7s Description: S/MIME cryptographic signature ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MDA320 Driver/Application
Hello Giri, Thanks for your answer. I opened XSensorMDA320M.nc file to see how the application works and found that the application does sampling for 12 analog channels whereas in MDA320 there are only 8 analog channels. Do you have any idea why is there 4 more channels? Moreover, the module uses MDA300EEPROM although the driver is for MDA320, any explanation please? Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 _ From: Giri Baleri [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 2:16 PM To: Abdullah Kadri Cc: tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] MDA320 Driver/Application The sensorboard drivers and sample application are available in MoteWorks. http://www.xbow.com/Support/wSoftwareDownloads.aspx \opt\MoteWorks\apps\xsensor\XSensorMDA300 - for single hop \opt\MoteWorks\apps\xmesh\XMDA320 - for multi-hop Giri _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Kadri Sent: Tuesday, December 18, 2007 9:34 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] MDA320 Driver/Application Hello, I have MDA320 from XBow and need to use it to transmit an analog signal from one mote to the base station (only one hop). I need to have the driver for this board. Also, I really appreciate if any one has similar application which can be shared. Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MDA320 Driver/Application
I think the additional 4 channels are for differential channels (and the first 8 are for single ended channels). But, you can use either one type at a time since they are mapped to the same pins on the board. Please refer to README and sensorboardApp.h files for additional details. MDA320 is similar to MDA300 in many respects and hence shares/inherits code from its predecessor. Regards, Giri From: Abdullah Kadri [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 11:38 AM To: Giri Baleri Cc: tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] MDA320 Driver/Application Hello Giri, Thanks for your answer. I opened XSensorMDA320M.nc file to see how the application works and found that the application does sampling for 12 analog channels whereas in MDA320 there are only 8 analog channels. Do you have any idea why is there 4 more channels? Moreover, the module uses MDA300EEPROM although the driver is for MDA320, any explanation please? Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 From: Giri Baleri [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 2:16 PM To: Abdullah Kadri Cc: tinyos-help@millennium.berkeley.edu Subject: RE: [Tinyos-help] MDA320 Driver/Application The sensorboard drivers and sample application are available in MoteWorks. http://www.xbow.com/Support/wSoftwareDownloads.aspx \opt\MoteWorks\apps\xsensor\XSensorMDA300 - for single hop \opt\MoteWorks\apps\xmesh\XMDA320 - for multi-hop Giri From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Abdullah Kadri Sent: Tuesday, December 18, 2007 9:34 AM To: tinyos-help@millennium.berkeley.edu Subject: [Tinyos-help] MDA320 Driver/Application Hello, I have MDA320 from XBow and need to use it to transmit an analog signal from one mote to the base station (only one hop). I need to have the driver for this board. Also, I really appreciate if any one has similar application which can be shared. Best, Abdullah Kadri, P.Eng., Ph.D. Candidate The University of Western Ontario Department of Electrical and Computer Engineering Phone: (519) 661-2111 ext. 81271 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Adding NesC syntax files to tinyos debs
Installing the nesc deb package will give you the editor modes under /usr/share/ncc/editor-modes/ you need to link them yourself appropriately. Kevin On Dec 18, 2007 7:27 AM, Ariel Mauricio Nunez Gomez [EMAIL PROTECTED] wrote: Hi everyone, I would like to know what you think about adding Vim, Gedit and Kate syntax files for NesC to the tinyos deb packages. Regards, Ariel. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Adding NesC syntax files to tinyos debs
On Dec 18, 2007 3:01 PM, Kevin Klues [EMAIL PROTECTED] wrote: Installing the nesc deb package will give you the editor modes under /usr/share/ncc/editor-modes/ you need to link them yourself appropriately. It might be worth putting the files in the right place automatically. Of course I suspect that this might require a per-distribution package (which is one reason why it wasn't done in the first place). David ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MTS 420 on TOS 2.X
TinyOS 2.X doesn' have drivers for the MTS400/420. Does anyone know if this is planned? Has anyone attempted to do this? I am new to this environment and I don't have a feel for how much of a job it is. Doug Corner George Mason University Douglas S. Corner - G00081155 [EMAIL PROTECTED] or [EMAIL PROTECTED] (703) 476-1257 (H) (571) 215-0773 (C) 13116 Rounding Run Circle Herndon, VA 20171 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TestPrintf error
Which platform are you compiling for? Only atmega128 family motes and msp430 motes are supported. The error you are getting is related to having an old version of avr-libc when compiling for the atmega128, but this shouldn't matter because the newest stdio.h header file is included and compiled against appropriately. What version of avr-libc do you have? Kevin On Dec 18, 2007 5:27 PM, yvonne er [EMAIL PROTECTED] wrote: yes, i download the files from cvs. and i am using TinyOS 2.x, referring to its tutorial lesson 15 on The TintOS printf Library. Thank you. Yvonne On Dec 19, 2007 1:10 AM, Kevin Klues [EMAIL PROTECTED] wrote: Are you running from cvs? Or which version of tinyos do you use? Kevin On Dec 18, 2007 4:32 AM, yvonne er [EMAIL PROTECTED] wrote: Dear everyone, I tried running TestPrintf in cygwin, but i have the following error. Please advise. Thank you. In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') Best regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TestPrintf error
yes, i download the files from cvs. and i am using TinyOS 2.x, referring to its tutorial lesson 15 on The TintOS printf Library. Thank you. Yvonne On Dec 19, 2007 1:10 AM, Kevin Klues [EMAIL PROTECTED] wrote: Are you running from cvs? Or which version of tinyos do you use? Kevin On Dec 18, 2007 4:32 AM, yvonne er [EMAIL PROTECTED] wrote: Dear everyone, I tried running TestPrintf in cygwin, but i have the following error. Please advise. Thank you. In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') Best regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TestPrintf error
I am using avr-libc 1.2.3-1 on micaz motes. Please advice. Thank You. Yvonne On Dec 19, 2007 9:31 AM, Kevin Klues [EMAIL PROTECTED] wrote: Which platform are you compiling for? Only atmega128 family motes and msp430 motes are supported. The error you are getting is related to having an old version of avr-libc when compiling for the atmega128, but this shouldn't matter because the newest stdio.h header file is included and compiled against appropriately. What version of avr-libc do you have? Kevin On Dec 18, 2007 5:27 PM, yvonne er [EMAIL PROTECTED] wrote: yes, i download the files from cvs. and i am using TinyOS 2.x, referring to its tutorial lesson 15 on The TintOS printf Library. Thank you. Yvonne On Dec 19, 2007 1:10 AM, Kevin Klues [EMAIL PROTECTED] wrote: Are you running from cvs? Or which version of tinyos do you use? Kevin On Dec 18, 2007 4:32 AM, yvonne er [EMAIL PROTECTED] wrote: Dear everyone, I tried running TestPrintf in cygwin, but i have the following error. Please advise. Thank you. In file included from /opt/tinyos-2.x/tos/lib/printf/PrintfC.nc:53, from TestPrintfAppC.nc:42: /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: warning: implicit declaration of function `FDEV_SETUP_STREAM' /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: `_FDEV_SETUP_WRITE' undeclared here (not in a function) /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: invalid initializer /opt/tinyos-2.x/tos/lib/printf/PrintfP.nc:51: (near initialization for `atm128_stdout') Best regards, Yvonne ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- ~Kevin -- ~Kevin ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Hardware Address Recognition
Hi Andrè, address recognition and ack can be set indipendently at the hardware level, CC2420. You can set the address recognition, and disable auto ack, just set the appropriate register. If you're using 1.x there are two functions, like addressDecodeEnable/Disable and autoAckEnable/Disable in CC2420ControlM. I think there's something similar in tinyos 2.x, however it's just a matter of setting two registers onto the CC2420 by SPI. Roberto On Dec 14, 2007 10:08 AM, David Moss [EMAIL PROTECTED] wrote: The code you've copied is *not* the address recognition occurring in the CC2420 hardware; instead, it's the software address recognition to determine if we need to send back an acknowledgement. By the time we've begun receiving a single packet into the CC2420ReceiveP module, that packet has already undergone address checking. Again, there's a possibility of setting up a sniffer / base station that accepts any and all packets to any address - i.e. the hardware address checks are disabled. But we could still have acknowledgements enabled, and we should only acknowledge packets that are truly destined for the node's local address in software. That's why the code you copied double checks the address before acknowledging. -David -Original Message- From: André Cunha [mailto:[EMAIL PROTECTED] Sent: Friday, December 14, 2007 6:15 AM To: David Moss; TinyOS ML Subject: Re: [Tinyos-help] Hardware Address Recognition Hello David The next code is in the RXFIFO.readDone function in the CC2420ReceiveP. From what I can understand when we activate the hardware address recognition and provide the device short address and activate the transceiver address recognition field, this address is used in the CC2420ReceiveP to compare with the destination address of the received message. Is this the hardware address recognition? Any comments? if(call CC2420Config.isAutoAckEnabled() !call CC2420Config.isHwAutoAckDefault()) { if header-fcf IEEE154_FCF_ACK_REQ ) 0x01) == 1) (header-dest == call CC2420Config.getShortAddr()) ((( header-fcf IEEE154_FCF_FRAME_TYPE ) 7) == IEEE154_TYPE_DATA)) { Regards, André David Moss wrote: The base station does not automatically retransmit failed packets. There could be a lot of issues here: interference, collisions, range, mismatched duty cycling parameters, etc. Did you modify your base station application to configure the outbound packet for delivery to a duty cycling receiver? -David -Original Message- From: André Miguel de Almeida Marrão Rodrigues [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 11:20 AM To: David Moss; 'André Cunha'; 'TinyOS ML' Subject: Re: [Tinyos-help] Hardware Address Recognition Hi I would like to know why in a simple configuration like BS --- Node I have packet loss when the acks are enabled and the code in the node retransmits the packed if it get lost. We are using 2% low power listening mode in T2 / TMote. Any ideias would be very apreciated. Regards, André Rodrigues PS: If a packet get lost in the BS - node direction, the 2.02basestation code does the retransmission? - Original Message - From: David Moss [EMAIL PROTECTED] To: 'André Cunha' [EMAIL PROTECTED]; 'TinyOS ML' tinyos-help@millennium.berkeley.edu Sent: Thursday, December 13, 2007 5:16 PM Subject: RE: [Tinyos-help] Hardware Address Recognition Address recognition is in both hardware and software. You can disable address recognition in hardware to sniff packets, but with software acknowledgements enabled you don't want to send an ack back unless you've received a packet to your local address or to the broadcast address. That's why there's a redundant check. Hardware address recognition is enabled by default, and the redundant software address check performed for acknowledgements doesn't change that. Note at the top of CC2420ControlP the compile time options you have available (you should be able to configure these at runtime as well) #if defined(CC2420_NO_ACKNOWLEDGEMENTS) autoAckEnabled = FALSE; #else autoAckEnabled = TRUE; #endif #if defined(CC2420_HW_ACKNOWLEDGEMENTS) hwAutoAckDefault = TRUE; #else hwAutoAckDefault = FALSE; #endif // This changes the hardware address recognition. #if defined(CC2420_NO_ADDRESS_RECOGNITION) addressRecognition = FALSE; #else addressRecognition = TRUE; #endif -David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of André Cunha Sent: Thursday, December 13, 2007 9:21 AM To: TinyOS ML Subject: [Tinyos-help] Hardware Address Recognition Hello all, I was looking at the hardware recognition in the CC2420 in the file CC2420ControlP and, if fact, the CC2420 register (MDMCTRL0-ADDR_DECODE) is enabled.