[Tinyos-help] problems when updating tinyos2.0.2 to support iris

2008-05-04 Thread Dan
Hi, guys,

I've used XubunTOS 2.0 on a VM for a couple of months and now I'm
going to program iris motes. Following the instructions on
http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/install-tinyos-iris.html,
I encountered several problems but may have solved them. However, the
only app that can be compiled is Blink.

1. the command "rpm -Uvh --ignoreos --force name_of_the_package.rpm"
didn't work due to failed dependencies (/bin/sh is needed). I didn't
know why but an additional option --nodeps seemed helpful. By this
way, avr-binutils-2.17-1.i386.rpm, avr-gcc-3.4.6-1.i386.rpm,
avr-libc-1.4.6-1.i386.rpm, and avrdude-5.4-1.i386.rpm were installed.

2. After running the command "cvs -z3
-d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P
tinyos-2.x", I found lots of stuff in tinyos-2.x/support/make hadn't
been updated by cvs and I manually replaced them by new files
downloaded from http://tinyos.cvs.sourceforge.net (otherwise if I
compile any app, avrisp will be called rather than avrdude).

3. Also, I placed the updated tos-set-symbols in /usr/bin to solve the
problem in Blink.

Now I can compile and flash Blink for iris but other apps still don't
work. Many thanks for your suggestions.


[EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tutorials/BlinkToRadio$
make iris install mib520,/dev/ttyUSB0
make: Warning: File `/opt/tinyos-2.x/support/make/avr/mib520.extra'
has modification time 3.1e+05 s in the future
mkdir -p build/iris
compiling BlinkToRadioAppC to a iris binary
ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
-fnesc-cfile=build/iris/app.c -board=micasb
-DIDENT_PROGRAM_NAME=\"BlinkToRadioApp\" -DIDENT_USER_ID=\"xubuntos\"
-DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
-DIDENT_UNIX_TIME=0x480ad11bL -DIDENT_UID_HASH=0xa9ad56b4L
-fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
-fnesc-dump='referenced(interfacedefs, components)'
-fnesc-dumpfile=build/iris/wiring-check.xml BlinkToRadioAppC.nc -lm
In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketC.nc:46,
 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:50,
 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46,
 from BlinkToRadioAppC.nc:49:
In component `DefaultPacketP':
/opt/tinyos-2.x/tos/chips/rf230/DefaultPacketP.nc:93: conflicting
types for `Packet.getPayload'
/opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of
`Packet.getPayload'
In file included from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:70,
 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46,
 from BlinkToRadioAppC.nc:49:
In component `ActiveMessageLayerC':
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:81: conflicting
types for `AMSend.getPayload'
/opt/tinyos-2.x/tos/interfaces/AMSend.nc:125: previous declaration of
`AMSend.getPayload'
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: In function
`AMSend.getPayload':
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:82: too many
arguments to function `SubSend.getPayload'
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc: At top level:
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41:
`Snoop.payloadLength' not implemented
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41:
`Snoop.getPayload' not implemented
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41:
`Receive.payloadLength' not implemented
/opt/tinyos-2.x/tos/chips/rf230/ActiveMessageLayerC.nc:41:
`Receive.getPayload' not implemented
In file included from /opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerC.nc:44,
 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:76,
 from /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46,
 from BlinkToRadioAppC.nc:49:
In component `MessageBufferLayerP':
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:230:
conflicting types for `Send.getPayload'
/opt/tinyos-2.x/tos/interfaces/Send.nc:114: previous declaration of
`Send.getPayload'
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function
`Send.getPayload':
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:231: warning:
passing argument 2 of `Packet.getPayload' makes pointer from integer
without a cast
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: In function
`deliverTask.runTask':
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:283: warning:
passing argument 2 of `Packet.getPayload' makes pointer from integer
without a cast
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc: At top level:
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48:
`Receive.payloadLength' not implemented
/opt/tinyos-2.x/tos/chips/rf230/MessageBufferLayerP.nc:48:
`Receive.getPayload' not implemented
In file included from /opt/tinyos-2.x/tos/chips/rf230/UniqueLayerC.nc:43,
 from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:77,
  

Re: [Tinyos-help] problems when updating tinyos2.0.2 to support iris

2008-05-04 Thread Dan
Hi, Janos,

Thanks for your kind reply. Your suggestions are extremely helpful!
I'm a newbie to both Linux and tinyos so I'm not sure what "do a CVS
checkout from scratch" means. I simply deleted tinyos-2.x direcory and
ran cvs command again. My local tinyos-2.x derectory was constructed
by new files from the cvs sever. Then I tested other programs and they
worked!

Regarding step1, actually at the beginning I also tried to use your
method. However, when I installed the generated deb files, they always
complained "trying to overwrite '/usr/bin/avr-as', which is also in
package avr-binutils-tinyos". I had no choice but to use my method.
Whatever, as you said, what I did also seems to a way of getting
things working.

Now I compiled an iris mote as a base station. when I ran *java
net.tinyos.tools.Listen*, iris as a speed parameter was not accepted.
What baud rate do I have to use? I tried 9600, 19200, 57600, and
115200 but none of them worked.

Thanks again.
~Dan

On 5/4/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> Dan,
>
> The problem is with step 2, the CVS update. My guess is that your
> tinyos-2.x tree didn't have the CVS metadata (the CVS directories),
> that's why the update command did weird things. I suggest that you do a
> CVS checkout from scratch. (You might want to back up the current tree,
> though.)
>
> Regarding step 1: When I install .rpm packages in debian or ubuntu, I
> always convert them to .deb with alien, then install the .deb packages
> with dpkg -install. This way debian's package manager can handle the
> dependencies. Other than that, what you did also seems to be a good way
> of getting things working.
>
> Janos
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> Sent: Sunday, May 04, 2008 2:38 AM
> To: tinyos-help@millennium.berkeley.edu
> Subject: [Tinyos-help] problems when updating tinyos2.0.2 to support
> iris
>
> Hi, guys,
>
> I've used XubunTOS 2.0 on a VM for a couple of months and now I'm
> going to program iris motes. Following the instructions on
> http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/in
> stall-tinyos-iris.html,
> I encountered several problems but may have solved them. However, the
> only app that can be compiled is Blink.
>
> 1. the command "rpm -Uvh --ignoreos --force name_of_the_package.rpm"
> didn't work due to failed dependencies (/bin/sh is needed). I didn't
> know why but an additional option --nodeps seemed helpful. By this
> way, avr-binutils-2.17-1.i386.rpm, avr-gcc-3.4.6-1.i386.rpm,
> avr-libc-1.4.6-1.i386.rpm, and avrdude-5.4-1.i386.rpm were installed.
>
> 2. After running the command "cvs -z3
> -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P
> tinyos-2.x", I found lots of stuff in tinyos-2.x/support/make hadn't
> been updated by cvs and I manually replaced them by new files
> downloaded from http://tinyos.cvs.sourceforge.net (otherwise if I
> compile any app, avrisp will be called rather than avrdude).
>
> 3. Also, I placed the updated tos-set-symbols in /usr/bin to solve the
> problem in Blink.
>
> Now I can compile and flash Blink for iris but other apps still don't
> work. Many thanks for your suggestions.
>
> 
> [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tutorials/BlinkToRadio$
> make iris install mib520,/dev/ttyUSB0
> make: Warning: File `/opt/tinyos-2.x/support/make/avr/mib520.extra'
> has modification time 3.1e+05 s in the future
> mkdir -p build/iris
>compiling BlinkToRadioAppC to a iris binary
> ncc -o build/iris/main.exe -Os -Wall -Wshadow -Wnesc-all -target=iris
> -fnesc-cfile=build/iris/app.c -board=micasb
> -DIDENT_PROGRAM_NAME=\"BlinkToRadioApp\" -DIDENT_USER_ID=\"xubuntos\"
> -DIDENT_HOSTNAME=\"xubuntos-tinyos\" -DIDENT_USER_HASH=0x00f95284L
> -DIDENT_UNIX_TIME=0x480ad11bL -DIDENT_UID_HASH=0xa9ad56b4L
> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())'
> -fnesc-dump='referenced(interfacedefs, components)'
> -fnesc-dumpfile=build/iris/wiring-check.xml BlinkToRadioAppC.nc -lm
> In file included from
> /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketC.nc:46,
> from /opt/tinyos-2.x/tos/chips/rf230/DefaultMacC.nc:50,
> from
> /opt/tinyos-2.x/tos/platforms/iris/ActiveMessageC.nc:46,
> from BlinkToRadioAppC.nc:49:
> In component `DefaultPacketP':
> /opt/tinyos-2.x/tos/chips/rf230/DefaultPacketP.nc:93: conflicting
> types for `Packet.getPayload'
> /opt/tinyos-2.x/tos/interfaces/Packet.nc:108: previous declaration of
> `Packet.getPayload'
> In file included from /opt/tinyos-2.

Re: [Tinyos-help] problems when updating tinyos2.0.2 to support iris

2008-05-04 Thread Dan
Hi, Janos,

It works now! Thank you so much.

~Dan

On 5/4/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> Dan,
>
> The UART of the iris is configured to 57600 bps. If you use the MIB520
> programming board (I believe this is what Crossbow ships with the kit),
> make sure that the port you're using to communicate with the mote is not
> the one that you use to program the mote but one higher. E.g., if you're
> programming the mote on /dev/ttyUSB0, you will need to use /dev/ttyUSB1
> to communicate with it.
>
> Janos
>
> -Original Message-
> From: Dan [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 04, 2008 5:52 PM
> To: Janos Sallai; tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] problems when updating tinyos2.0.2 to support
> iris
>
> Hi, Janos,
>
> Thanks for your kind reply. Your suggestions are extremely helpful!
> I'm a newbie to both Linux and tinyos so I'm not sure what "do a CVS
> checkout from scratch" means. I simply deleted tinyos-2.x direcory and
> ran cvs command again. My local tinyos-2.x derectory was constructed
> by new files from the cvs sever. Then I tested other programs and they
> worked!
>
> Regarding step1, actually at the beginning I also tried to use your
> method. However, when I installed the generated deb files, they always
> complained "trying to overwrite '/usr/bin/avr-as', which is also in
> package avr-binutils-tinyos". I had no choice but to use my method.
> Whatever, as you said, what I did also seems to a way of getting
> things working.
>
> Now I compiled an iris mote as a base station. when I ran *java
> net.tinyos.tools.Listen*, iris as a speed parameter was not accepted.
> What baud rate do I have to use? I tried 9600, 19200, 57600, and
> 115200 but none of them worked.
>
> Thanks again.
> ~Dan
>
> On 5/4/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> > Dan,
> >
> > The problem is with step 2, the CVS update. My guess is that your
> > tinyos-2.x tree didn't have the CVS metadata (the CVS directories),
> > that's why the update command did weird things. I suggest that you do
> a
> > CVS checkout from scratch. (You might want to back up the current
> tree,
> > though.)
> >
> > Regarding step 1: When I install .rpm packages in debian or ubuntu, I
> > always convert them to .deb with alien, then install the .deb packages
> > with dpkg -install. This way debian's package manager can handle the
> > dependencies. Other than that, what you did also seems to be a good
> way
> > of getting things working.
> >
> > Janos
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> > Sent: Sunday, May 04, 2008 2:38 AM
> > To: tinyos-help@millennium.berkeley.edu
> > Subject: [Tinyos-help] problems when updating tinyos2.0.2 to support
> > iris
> >
> > Hi, guys,
> >
> > I've used XubunTOS 2.0 on a VM for a couple of months and now I'm
> > going to program iris motes. Following the instructions on
> >
> http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/in
> > stall-tinyos-iris.html,
> > I encountered several problems but may have solved them. However, the
> > only app that can be compiled is Blink.
> >
> > 1. the command "rpm -Uvh --ignoreos --force name_of_the_package.rpm"
> > didn't work due to failed dependencies (/bin/sh is needed). I didn't
> > know why but an additional option --nodeps seemed helpful. By this
> > way, avr-binutils-2.17-1.i386.rpm, avr-gcc-3.4.6-1.i386.rpm,
> > avr-libc-1.4.6-1.i386.rpm, and avrdude-5.4-1.i386.rpm were installed.
> >
> > 2. After running the command "cvs -z3
> > -d:pserver:[EMAIL PROTECTED]:/cvsroot/tinyos co -P
> > tinyos-2.x", I found lots of stuff in tinyos-2.x/support/make hadn't
> > been updated by cvs and I manually replaced them by new files
> > downloaded from http://tinyos.cvs.sourceforge.net (otherwise if I
> > compile any app, avrisp will be called rather than avrdude).
> >
> > 3. Also, I placed the updated tos-set-symbols in /usr/bin to solve the
> > problem in Blink.
> >
> > Now I can compile and flash Blink for iris but other apps still don't
> > work. Many thanks for your suggestions.
> >
> > 
> > [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/tutorials/BlinkToRadio$
> > make iris install mib520,/dev/ttyUSB0
> > make: Warning: File `/opt/tinyos-2.x/support/make/avr/mib520.extra'
> > has modification time 3.1e+05 s in t

Re: [Tinyos-help] TinyOS1.x to TinyOS2.x codes

2008-05-05 Thread Dan
http://www.tinyos.net/tinyos-2.x/doc/

Personally speaking, I don't think it's easy to port code from 1.x to
2.x. Maybe rewriting is even easier.

On 5/5/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I would like to know if there is any article explaining the main
> differences between these two versions of TinyOS, and if there is possibly
> any "easy" way to convert a 1.x to a 2.x code.
>
> I am asking this because I have started studying TinyOS not long ago, and
> now I am starting to study some protocols, but most of its codes are for
> the 1.x version, and I have studied TinysOS2.x up to the moment, so it is
> really hard for me to understand, I do not even have the 1.x version
> installed here.
>
> ___
> 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] How to control the radio power in iris platform?

2008-05-11 Thread Dan
Thanks for your info. Actually I'm also doing the same stuff. I have
another question: how to get RSSI value of received packets? It's easy
to get this info for micaz(cc2420), but I can't find related functions
in the directory RF230. Do I have to read the register directly?
Thanks!

~Dan

On 5/11/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
>
>
>
> In my previous mail I meant:
>
>
>
> "If you _always_ want to send with some predefined transmit power, you need
> to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile)."
>
>
>
> Janos
>
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Janos Sallai
> Sent: Sunday, May 11, 2008 3:23 PM
> To: Xiaojun Zhu; tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] How to control the radio power in iris platform?
>
>
>
>
> Xiaojun,
>
>
>
> If you _always_ want to send with some predefined transmit power, you need
> to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the PHY_TX_PWR
> register.  Please see pp 59—60 of the rf230 data sheet for the supported
> power values (0:most power, 0xf: least power,
>
> http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf
> )
>
>
>
> Alternatively, you can set the transmit power on a per packet basis through
> the PacketTransmitPower interface of DefaultPacketC.  That is, you need to
> set the transmit power every time before calling AMSend.send.
>
>
>
> You need to add this wiring to your configuration (assuming the module where
> you set the transmit power is called MyAppC.nc):
>
>
>
> components DefaultPacketC;
>
> DefaultPacketC.PacketTransmitPower ->
> MyAppC.PacketTransmitPower;
>
>
>
> Then, your module:
>
>
>
> uses interface PacketField as PacketTransmitPower;
>
> //…
>
> implementation {
>
> //…
>
> call PacketTransmitPower.set(&my_message_t, /* some small
> value here, see the rf230 datasheet*/);
>
> call AMSend.send(addr, &my_message_t, len);
>
>
>
> Janos
>
>
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Xiaojun Zhu
> Sent: Friday, May 09, 2008 11:46 PM
> To: tinyos-help@millennium.berkeley.edu
> Subject: [Tinyos-help] How to control the radio power in iris platform?
>
>
>
>
> Hi all,
>
>
>  I want to make the mote not so powerful so that the message can
> reach the destination only by multi-hop in a limited area,like in  a room.
> The reason is that I want to study the behavior of MULTI-HOP in my lab. I
> search this list and find some one posted a question similar to this
> without replying. Is that possible? I'm using Iris platform.
>
>
>  Please let me know if my expression is not so clearly.
>
>
>
>
>
>
>
>
>
>
>
> Thanks,
>
>
>
>
>
>Regards,
>
>
>Xiaojun
>
>
>
>
>
>
>
>
> 
>
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.
> ___
> 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] How to control the radio power in iris platform?

2008-05-12 Thread Dan
Janos,

Thank you so much. I did something to measure the distance by RSSI on
MICAZ and now I wanna do the same thing on IRIS. LQI seems prone to
err compared with RSSI.

~Dan

On 5/12/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> Dan,
>
> Currently the rf230 stack does not support reading the RSSI. According
> to the rf230 datasheet (page 52.): "Note, it is not recommended to read
> the RSSI value when using the Extended
> Operating Mode." (the radio stack is using the extended operating mode)
>
> Depending on what you want to do, you might want to use the LQI value
> instead. Or, you can try reading the RSSI value from the register
> directly, but keep your fingers crossed...
>
> Janos
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> Sent: Sunday, May 11, 2008 8:14 PM
> To: tinyos-help@millennium.berkeley.edu
> Subject: Re: [Tinyos-help] How to control the radio power in iris
> platform?
>
> Thanks for your info. Actually I'm also doing the same stuff. I have
> another question: how to get RSSI value of received packets? It's easy
> to get this info for micaz(cc2420), but I can't find related functions
> in the directory RF230. Do I have to read the register directly?
> Thanks!
>
> ~Dan
>
> On 5/11/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > In my previous mail I meant:
> >
> >
> >
> > "If you _always_ want to send with some predefined transmit power, you
> need
> > to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> > PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile)."
> >
> >
> >
> > Janos
> >
> >
> >
> >
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Janos Sallai
> > Sent: Sunday, May 11, 2008 3:23 PM
> > To: Xiaojun Zhu; tinyos-help@millennium.berkeley.edu
> > Subject: Re: [Tinyos-help] How to control the radio power in iris
> platform?
> >
> >
> >
> >
> > Xiaojun,
> >
> >
> >
> > If you _always_ want to send with some predefined transmit power, you
> need
> > to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> > -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the
> PHY_TX_PWR
> > register.  Please see pp 59-60 of the rf230 data sheet for the
> supported
> > power values (0:most power, 0xf: least power,
> >
> > http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf
> > )
> >
> >
> >
> > Alternatively, you can set the transmit power on a per packet basis
> through
> > the PacketTransmitPower interface of DefaultPacketC.  That is, you
> need to
> > set the transmit power every time before calling AMSend.send.
> >
> >
> >
> > You need to add this wiring to your configuration (assuming the module
> where
> > you set the transmit power is called MyAppC.nc):
> >
> >
> >
> > components DefaultPacketC;
> >
> > DefaultPacketC.PacketTransmitPower ->
> > MyAppC.PacketTransmitPower;
> >
> >
> >
> > Then, your module:
> >
> >
> >
> > uses interface PacketField as PacketTransmitPower;
> >
> > //...
> >
> > implementation {
> >
> > //...
> >
> > call PacketTransmitPower.set(&my_message_t, /* some small
> > value here, see the rf230 datasheet*/);
> >
> > call AMSend.send(addr, &my_message_t, len);
> >
> >
> >
> > Janos
> >
> >
> >
> >
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Xiaojun Zhu
> > Sent: Friday, May 09, 2008 11:46 PM
> > To: tinyos-help@millennium.berkeley.edu
> > Subject: [Tinyos-help] How to control the radio power in iris
> platform?
> >
> >
> >
> >
> > Hi all,
> >
> >
> >  I want to make the mote not so powerful so that the message
> can
> > reach the destination only by multi-hop in a limited area,like in  a
> room.
> > The reason is that I want to study the behavior of MULTI-HOP in my
> lab. I
> > search this list and find some one posted a question similar to this
> > without replying. Is that possible? I'm using Iris platform.
> >
> >
> >  Please let me know if my expression is not so clearly.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Thanks,
> >
> >
> >
> >
> >
> >Regards,
> >
> >
> >Xiaojun
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
> it
> > now.
> > ___
> > 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 mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Transmission range of MicaZ mote

2008-05-15 Thread Dan
I did a test indoors. The comm. range of micaz seemed only 15m.

On 5/15/08, Gary Lee <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> In an outdoor environment, I putone MicaZ mote A about 1.5m high above the
> ground. I use another MicaZ+MIB520 to receive data transmitted from MicaZ A.
>
> I am using TinyOS 2.x and I do set the maximum transmission range of A
> (CFLAGS +=-DCC2420_DEF_RFPOWER=30).However, the transmission range of MicaZ
> A is only about 20 meters. In the specification of MicaZ, it says the
> outdoor range could be 75m to 100m.
>
> How could Iachieve this 75m transmission range? Please share the experience.
>
> Many thanks,
>
> Gary
> ___
> 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] How to control the radio power in iris platform?

2008-05-15 Thread Dan
I found RF230LayerC.nc and RF230LayerP.nc had been updated recently to
support RSSI.

BTW, thanks for your link. The slides are very helpful.


On 5/16/08, Paul Stickney <[EMAIL PROTECTED]> wrote:
> LQI is in relation to how many code-bits are "good" AFAIK. For
> distance, even questionable RSSI readings seem more ... well, useful.
>
> sing.stanford.edu/talks/emnets2006.ppt
>
> has some pretty graphics of LQI values. It's not too pretty. (Well,
> the "conclusion", and that was even from a localization
> perspective...)
>
> On Mon, May 12, 2008 at 9:11 AM, Dan <[EMAIL PROTECTED]> wrote:
> > Janos,
> >
> > Thank you so much. I did something to measure the distance by RSSI on
> > MICAZ and now I wanna do the same thing on IRIS. LQI seems prone to
> > err compared with RSSI.
> >
> > ~Dan
> >
> > On 5/12/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> >> Dan,
> >>
> >> Currently the rf230 stack does not support reading the RSSI. According
> >> to the rf230 datasheet (page 52.): "Note, it is not recommended to read
> >> the RSSI value when using the Extended
> >> Operating Mode." (the radio stack is using the extended operating mode)
> >>
> >> Depending on what you want to do, you might want to use the LQI value
> >> instead. Or, you can try reading the RSSI value from the register
> >> directly, but keep your fingers crossed...
> >>
> >> Janos
> >>
> >> -Original Message-
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> >> Sent: Sunday, May 11, 2008 8:14 PM
> >> To: tinyos-help@millennium.berkeley.edu
> >> Subject: Re: [Tinyos-help] How to control the radio power in iris
> >> platform?
> >>
> >> Thanks for your info. Actually I'm also doing the same stuff. I have
> >> another question: how to get RSSI value of received packets? It's easy
> >> to get this info for micaz(cc2420), but I can't find related functions
> >> in the directory RF230. Do I have to read the register directly?
> >> Thanks!
> >>
> >> ~Dan
> >>
> >> On 5/11/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> >> >
> >> >
> >> >
> >> > In my previous mail I meant:
> >> >
> >> >
> >> >
> >> > "If you _always_ want to send with some predefined transmit power, you
> >> need
> >> > to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> >> > PFLAGS+=-DRF230_DEF_RFPOWER=9 to your Makefile)."
> >> >
> >> >
> >> >
> >> > Janos
> >> >
> >> >
> >> >
> >> >
> >> > From: [EMAIL PROTECTED]
> >> > [mailto:[EMAIL PROTECTED] On
> >> > Behalf Of Janos Sallai
> >> > Sent: Sunday, May 11, 2008 3:23 PM
> >> > To: Xiaojun Zhu; tinyos-help@millennium.berkeley.edu
> >> > Subject: Re: [Tinyos-help] How to control the radio power in iris
> >> platform?
> >> >
> >> >
> >> >
> >> >
> >> > Xiaojun,
> >> >
> >> >
> >> >
> >> > If you _always_ want to send with some predefined transmit power, you
> >> need
> >> > to define the RF230_DEF_RFPOWER preprocessor variable (e.g. by adding
> >> > -DRF230_DEF_RFPOWER=9). This defines the TX_PWR field of the
> >> PHY_TX_PWR
> >> > register.  Please see pp 59-60 of the rf230 data sheet for the
> >> supported
> >> > power values (0:most power, 0xf: least power,
> >> >
> >> > http://www.atmel.com/dyn/resources/prod_documents/doc5131.pdf
> >> > )
> >> >
> >> >
> >> >
> >> > Alternatively, you can set the transmit power on a per packet basis
> >> through
> >> > the PacketTransmitPower interface of DefaultPacketC.  That is, you
> >> need to
> >> > set the transmit power every time before calling AMSend.send.
> >> >
> >> >
> >> >
> >> > You need to add this wiring to your configuration (assuming the module
> >> where
> >> > you set the transmit power is called MyAppC.nc):
> >> >
> >> >
> >> >
> >> > components DefaultPacketC;
> >> >
> >> > DefaultPacketC.PacketTransmitPower ->
> >> > MyAppC.PacketTransmitPow

[Tinyos-help] PySerial problem in Deluge T2

2008-06-10 Thread Dan
Hi, there,

Following the deluge T2 tutorial, I tried to test Quick Start on Iris.
When the command "./burn /dev/ttyUSB0 iris" was executed, an error
occured as follows:

Please install PySerial first.

I've installed the latest CVS and the python scripts following the
Tools Installation section. Any ideas? Thanks in advance.

Dan
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] PySerial problem in Deluge T2

2008-06-10 Thread Dan
Janos,

Thank you so much. It went through. PySerial is not shipped with Xubuntos.

Dan


On 6/10/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> Dan,
>
> The error message is correct: you have to install PySerial separately.
> You can get it from http://pyserial.sourceforge.net/
>
> Janos
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> Sent: Tuesday, June 10, 2008 6:07 PM
> To: tinyos-help@millennium.berkeley.edu
> Subject: [Tinyos-help] PySerial problem in Deluge T2
>
> Hi, there,
>
> Following the deluge T2 tutorial, I tried to test Quick Start on Iris.
> When the command "./burn /dev/ttyUSB0 iris" was executed, an error
> occured as follows:
>
> Please install PySerial first.
>
> I've installed the latest CVS and the python scripts following the
> Tools Installation section. Any ideas? Thanks in advance.
>
> Dan
> ___
> 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] PySerial problem in Deluge T2

2008-06-11 Thread Dan
I'm using Xubuntos. Following the installation instructions of
PySerial, I also used "python setup.py install" and it works OK now.

Dan

On 6/11/08, Antonio Prados Vilchez <[EMAIL PROTECTED]> wrote:
>
>
>
> Did you install it in the default directory? I'm using Cygwin for WinXP, 
> should I install Python and PySerial in a Cygwin directory? I've installed 
> PySerial 2.2 but I keep on getting the same error
>
> Please install PySerial first.
>
>
> ____
De: [EMAIL PROTECTED] en nombre de Dan
> Enviado el: mié 11/06/2008 6:37
> Para: Janos Sallai; tinyos-help@millennium.berkeley.edu
> Asunto: Re: [Tinyos-help] PySerial problem in Deluge T2
>
>
>
>
>
> Janos,
>
> Thank you so much. It went through. PySerial is not shipped with Xubuntos.
>
> Dan
>
>
> On 6/10/08, Janos Sallai <[EMAIL PROTECTED]> wrote:
> > Dan,
> >
> > The error message is correct: you have to install PySerial separately.
> > You can get it from http://pyserial.sourceforge.net/
> >
> > Janos
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Dan
> > Sent: Tuesday, June 10, 2008 6:07 PM
> > To: tinyos-help@millennium.berkeley.edu
> > Subject: [Tinyos-help] PySerial problem in Deluge T2
> >
> > Hi, there,
> >
> > Following the deluge T2 tutorial, I tried to test Quick Start on Iris.
> > When the command "./burn /dev/ttyUSB0 iris" was executed, an error
> > occured as follows:
> >
> > Please install PySerial first.
> >
> > I've installed the latest CVS and the python scripts following the
> > Tools Installation section. Any ideas? Thanks in advance.
> >
> > Dan
> > ___
> > 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
>
>
>
>
>
>
> 

> Este mensaje se dirige exclusivamente a su destinatario, y puede contener 
> información confidencial sometida a secreto profesional, o cuya divulgación 
> esté legalmente prohibida.Cualquier opinión en él contenida es exclusiva de 
> su autor y no representa necesariamente la opinión de la empresa. Si ha 
> recibido este mensaje por error, le rogamos nos lo comunique de forma 
> inmediata por esta misma vía y proceda a su eliminación, así como a la de 
> cualquier documento adjunto al mismo. El correo electrónico vía Internet no 
> es seguro y no se puede garantizar que no haya errores ya que puede ser 
> interceptado, modificado, perdido o destruido, o contener virus. Cualquier 
> persona que se ponga en contacto con nosotros por correo electrónico se 
> considerará que asume estos riesgos.
>
> This e-mail is addressed exclusively to the recipient and may contain 
> privileged information under a professional confidential agreement or it may 
> be against the law to disclose its contents. Any opinion contained in it 
> belongs exclusively to his/her author and does not necessarily reflect the 
> company's view. If you receive this e-mail in error, please let us know 
> immediately (by return e-mail) and proceed to its destruction, as well as any 
> document attached to it. The sending of e-mails through the Internet is not 
> safe and, therefore, error-free communications cannot be guaranteed, as they 
> can be intercepted, changed, misled or destroyed or they might contain a 
> virus. Any user contacting us through e-mails shall be understood to be 
> assuming these risks.
>
> 

>
>

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Installing Blink on a TelosB using Xubuntos 2.1 VM in Windows

2009-10-03 Thread Dan Vu
Hello,
I am trying to install Blink on a TelosB.  I am running Xubuntos 2.1VM in 
Windows Vista.

I already compiled Blink using 'make telosb.'

Now, I am trying to install Blink onto the TelosB using 'make telosb reinstall 
bsl,/dev/ttyUSB0'  with /dev/ttyUSB0 being the output from the command 
'motelist'

I am getting this error below, can somebody point me in a direction?

xubun...@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/Blink$ 
xubun...@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/Blink$ motelist
Reference  Device   Description
--  -
XBSCT510   /dev/ttyUSB0 XBOW Crossbow Telos Rev.B
xubun...@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/Blink$ make telosb reinstall 
bsl,/dev/ttyUSB0
cp build/telosb/main.ihex build/telosb/main.ihex.out
    installing telosb binary using bsl
tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/telosb/main.ihex.out
MSP430 Bootstrap Loader Version: 1.39-telos-8

An error occoured:
[Errno 84] Invalid or incomplete multibyte or wide character
make: *** [program] Error 1
xubun...@xubuntos-tinyos:/opt/tinyos-2.1.0/apps/Blink$ 
-------

Thanks

Dan


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TinyOS 2.1.1

2009-10-11 Thread Dan Vu
Hello,
Does anybody know where to get TinyOS 2.1.1?

Thanks

Dan


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Tiny0S2.1 and TinySec

2009-11-07 Thread Dan Vu
Hello,Does anyone know if TinyOS2.1 include TinySec?  TinyOS1.0 had TinySec 
under tos/lib/TinySec.
I can't seem to find TinySec under TinyOS2.1.  Is TinySec not included with the 
later releases of TinyOS anymore?  Is the reason because we're supposed to use 
802.15.4 security features instead?
Thanks
Dan


  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Localization

2010-10-04 Thread Avishek Dan
I am working on implementation of a localization scheme in TinyOS. I want to
know how GPS component can be used in TinyOS.

-- 
Avishek Dan
Undergraduate Student
Dept. of Computer Science and Technology
Bengal Engineering and Science University, Shibpur
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Global clock

2010-10-04 Thread Avishek Dan
How can I have a clock signal for global synchronization in tinyos?

-- 
Avishek Dan
Undergraduate Student
Dept. of Computer Science and Technology
Bengal Engineering and Science University, Shibpur
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Mac Backoff in TOSSIM, Tinyos-1.x

2008-10-23 Thread Dan Lee
Hi guys,

I am working with the latest CVS version of Tinyos-1.x. In TOSSIM I have
several nodes, and each of them broadcasts one packet per second. In my code
I use GenericComm for sending and receiving data.

I notice that the packets are sent using "MicaHighSpeedRadioM$Send$send",
and there "ChannelMonC$ChannelMon$macDelay" is used to generate random
delay.

In /tinyos-1.x/tos/platform/pc/ there is also Nido.nc, which supplies
"RadioSendMsg$send".  Inside this command "packet_sim_transmit" of the file
"packet_sim.c" will be called, and hence "initialBackoff".

My questions:
1. is "macDelay" from "ChannelMonC.nc" representing the mac backoff?

2. I want to test the backoff implementation in "packet_sim.c", but don't
know how to make it work. It is written in this file

* To use this code, all you need to do is add the line
*   PFLAGS = -I/path/to/tinyos/broken/experimental/mdw/tossim
* to your application Makefile, then rebuild your application with 'make
pc'.

After modifying my make file and recompilation there is no change, i.e.
"MicaHighSpeedRadioM$Send$send" is still used.

Any help will be appreciated!

Kind regards,
Dan
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] tinyos tutorial's Lesson 7

2006-08-09 Thread jurin dan



hi,

   recently i have done successfully the exercice in the lesson 7 of 
tinyos tutorial. the exercice consist of adding the command tog_sounder to 
the existing command of SimpleCmd apps.


   i can compile and load the modified SimpleCmd on mica2 and all test 
run well.

   but when i want to do so with mica2dot, i got this message error:

   $ PFLAGS=-DCC1K_DEF_FREQ=91640 make mica2dot
mkdir -p build/mica2dot
   compiling SenseLightToLog to a mica2dot binary
ncc -o build/mica2dot/main.exe -Os -DCC1K_DEF_FREQ=91640 
-finline-limit=1000
00 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=mica2dot 
-fnesc-cfi
le=build/mica2dot/app.c -board=basicsb -I%T/lib/Deluge 
-DIDENT_PROGRAM_NAME=\"Se
nseLightToLog\" -DIDENT_USER_ID=\"Owner\" 
-DIDENT_HOSTNAME=\"toshiba-ce16063\" -
DIDENT_USER_HASH=0x35e4e258L -DIDENT_UNIX_TIME=0x44da2288L 
-DIDENT_UID_HASH=0x2c

60b367L SenseLightToLog.nc -lm
SimpleCmd.nc:58: component Sounder not found
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2dot/HPLUART0M.nc:51: 
expected

component `Sounder', but got component 'HPLUART0M'
Bip.nc:48: no match
SimpleCmd.nc:72: no match
make: *** [exe0] Error 1


   how can i fix this bug.
   thx in advance

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] SenseLightToLog

2006-08-09 Thread jurin dan


   hi

  did anybody know when dealing with senselighttolog apps how to convert 
the data get with the command read_log in to comprehensive data to human 
being?


 i.e read_log command print this to the screen :

$ java net.tinyos.tools.BcastInject read_log 1
Sending payload: ae 6 0 0 0 1 0 0 0 0 0
Waiting for response to read_log...
Received log message: Message 
 [sourceaddr=0x1]
 [log=0xd4 0x0 0x96 0x0 0x92 0x0 0x91 0x0 0x90 0x0 0x90 0x0 0x90 0x0 0x90 
0x0 ]



Log values: d4 0 96 0 92 0 91 0 90 0 90 0 90 0 90 0

what is the means of log values and how can i convert to comprehensive data?

  thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] SimpleCmd apps with MATLAB

2006-08-10 Thread jurin dan


Hi,

i would like to know if anybody is aware of how to call java tools 
from MATLAB to communicate with motes install with SimpleCmd 
apps.


this apps use BcastInject to inject message into the network. and 
the commands are :


led_on,   led_off, radio_quieter, radio_louder, start_sensing and 
Read_log.


   thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] sensor reading

2006-08-14 Thread jurin dan


hi,

i'm using MTS300CA sensor and i would like to know how i can 
convert sensor light reading into engineering units. in his datasheet, they 
only show how to convert temperature reading into engineering units.


thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] SenseLightToLog with MATLAB

2006-08-16 Thread jurin dan



hi,

i'm trying to run the SenseLightToLog apps from MATLAB.
i'm able to send all command from MATLAB to the network but i don't 
know how to get the LogMsg from MATLAB.


i.e after sending start_sensing command, i  send read_log command 
now i have to find the way how to get the Log message from MATLAB.


did anybody have an idea?

thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] read packet from serial forwarder

2006-08-17 Thread jurin dan


hi,

i want to know if i'm able to connect a client to serial forwarder, how can 
i manage so that this client get the packet read by the serial forwarder.


thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] serial forwarder

2006-08-17 Thread jurin dan


who know serial forwarder byte order?

thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] senselighttolog reading

2006-08-19 Thread jurin dan



  hi,

  i'm working with senselighttolog apps.
  when i send read_log command i get this message:

$ java net.tinyos.tools.BcastInject read_log 1
Sending payload: e4 6 0 0 0 1 0 0 0 0 0
Waiting for response to read_log...
Received log message: Message 
 [sourceaddr=0x1]
 [log=0x6b 0x3 0x7b 0x3 0x80 0x3 0x73 0x3 0x6f 0x3 0x7d 0x3 0x7f 0x3 0x6c 
0x3 ]



Log values: 6b 3 7b 3 80 3 73 3 6f 3 7d 3 7f 3 6c 3

   i read the log value like this:

0x36b / 0x37b / 0x380 / 0x373 / 0x36f / 0x37d / 0x37f / 0x36c

   is this the right away to read?

   after i convert the reading in decimal and get respectively:

875 / 891 / 896 / 883 / 879 / 893 / 895 / 876

   i want to know if the average of this values is the final value of 
light ?


   thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] XSensorMTS300

2007-01-13 Thread jurin dan


hi

I would like to know which Active Message types is use in
XSensorMTS300 applications. Or where i could found it.Also, is there any 
document containing the list of Active Message types?

thx


_
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] AM type

2007-01-15 Thread jurin dan
hi
is there any document where it describe or list  different Active Message type.
thx
 
 
 
_
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] CRC checking

2007-04-08 Thread jurin dan
 
hi,
 
i have the raw data packet below receive with xlisten app:
 
$ xlisten -r -b=mica2 -s=COM4 -t
xlisten Ver:$Id: xlisten.c,v 1.2 2005/06/21 01:36:06 pipeng Exp $
Using params: [baud=0x1001] [raw] [timed]
COM4 input stream opened
[2007/04/04 10:40:35]
7e42007d5d1d840101009101710031037d5d023003007964
 [40]

 
CRC = 0x6479 (last bytes)
 
i woul like to know how i could use the CRC to check the integrity of the 
transmitted packet.
and which byte of the packet are taking in acount to compute the CRC.
 
thanx for your help
_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

RE: [Tinyos-help] CRC checking

2007-04-09 Thread jurin dan
thanks a lot for your reply.
 
just one more thing. within the raw data packet, which byte do i use to compute 
the CRC.
is it all byte or only TOS_MSG byte.
 
 



> Date: Sun, 8 Apr 2007 17:22:29 -0600> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: tinyos-help@Millennium.Berkeley.EDU> Subject: Re: 
> [Tinyos-help] CRC checking> > This site describes the message format and CRC 
> calculation:> 
> http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf>
>  > There's also code in TOS (well...duh) and the java tools which> does the 
> CRC. I know one is called crc.java> > MS> > jurin dan wrote:> > > > hi,> > > 
> > i have the raw data packet below receive with xlisten app:> > > > > > *$ 
> xlisten -r -b=mica2 -s=COM4 -t*> > > > *xlisten Ver:$Id: xlisten.c,v 1.2 
> 2005/06/21 01:36:06 pipeng Exp $*> > > > *Using params: [baud=0x1001] [raw] 
> [timed]*> > > > *COM4 input stream opened*> > > > *[2007/04/04 10:40:35]*> > 
> > > 
> *7e42007d5d1d840101009101710031037d5d023003007964
>  > > [40]*> > > > > > CRC = 0x6479 (last bytes)> > > > i woul like to know 
> how i could use the CRC to check the integrity of > > the transmitted 
> packet.> > and which byte of the packet are taking in acount to compute the 
> CRC.> > > > thanx for your help> > > > > > 
> > > 
> Invite your mail contacts to join your friends list with Windows Live > > 
> Spaces. It's easy! Try it! > > 
> <http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us>>
>  > > > > > 
> > > > 
> > ___> > Tinyos-help mailing 
> list> > Tinyos-help@Millennium.Berkeley.EDU> > 
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] tmote sky external reference code example

2007-05-30 Thread Dan Steingart

Hello all,

I've combed the interweb, moved a jumper that was roughly the size of a
grain of sand, and picked through Redfern's brain to the point where he said
"read the MSP430 manual", but I can't seem to get the external reference
going on my Tmote Sky.


things I've done

- In my ADC header file I changed the VRef to VeRef
- Moved the jumper over
- Fed the ref voltage to ADC0 (port 60, correct?)
- Turned ADC0 into an Input pin with MSP430GeneralIO

Is there something blatantly wrong here?  Is there a contrib file or other
example I'm missing?

Thanks in advance,

Dan
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] tmote sky external reference code example

2007-05-30 Thread Dan Steingart

Hello all,

I've combed the interweb, moved a jumper that was roughly the size of a
grain of sand, and picked through Redfern's brain to the point where he said
"read the MSP430 manual", but I can't seem to get the external reference
going on my Tmote Sky.


things I've done

- In my ADC header file I changed the VRef to VeRef
- Moved the jumper over
- Fed the ref voltage to ADC0 (port 60, correct?)
- Turned ADC0 into an Input pin with MSP430GeneralIO

Is there something blatantly wrong here?  Is there a contrib file or other
example I'm missing?

Thanks in advance,

Dan
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] tmote sky external reference code example

2007-05-30 Thread Dan Steingart

Thanks Cory.  Before I go any further, is there a minimum to the reference
voltage?  I'm going for a ceiling of 60 mV.

Dan

On 5/30/07, Cory Sharp <[EMAIL PROTECTED]> wrote:


Dan, it sounds like you've done everything necessary.  Try bypassing the
TinyOS MSP430 ADC components and check the ADC by directly setting the
MSP430 control registers.  Be sure to appropriately set these registers, in
particular:

  P6SEL
  P6DIR
  ADC12CTL0
  ADC12CTL1
  ADC12IFG
  ADC12IE

See the MSP430 User's Guide section ADC12 for appropriate values.  Then
trigger a conversion with

  ADC12CTL0 |= ENC | ADC12SC;
  ADC12CTL0 &= ~ADC12SC;

You can throw together a quick and dirty ADC interrupt handler like this

  TOSH_SIGNAL(ADC_VECTOR) {
uint16_t iv = ADC12IV;
if( iv == 0x06 ) {
  ADC12IE = 0;
  reading = ADC12MEM0;
  post readDone();
}
  }

- Cory

On 5/30/07, Dan Steingart < [EMAIL PROTECTED]> wrote:

> Hello all,
>
> I've combed the interweb, moved a jumper that was roughly the size of a
> grain of sand, and picked through Redfern's brain to the point where he said
> "read the MSP430 manual", but I can't seem to get the external reference
> going on my Tmote Sky.
>
>
> things I've done
>
> - In my ADC header file I changed the VRef to VeRef
> - Moved the jumper over
> - Fed the ref voltage to ADC0 (port 60, correct?)
> - Turned ADC0 into an Input pin with MSP430GeneralIO
>
> Is there something blatantly wrong here?  Is there a contrib file or
> other example I'm missing?
>
> Thanks in advance,
>
> Dan
>
>
>
> ___
> 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] tmote sky external reference code example

2007-05-30 Thread Dan Steingart

Drats!  Thanks cory!  I'll have to figure out an amplifier for this case.

Dan

On 5/30/07, Cory Sharp <[EMAIL PROTECTED]> wrote:


Yes.  See the MSP430 f1611 Data Sheet.  On about page 38, "12-bit ADC,
external reference", the minimum positive external reference voltage is
1.4V.  - Cory

On 5/30/07, Dan Steingart <[EMAIL PROTECTED]> wrote:
>
> Thanks Cory.  Before I go any further, is there a minimum to the
> reference voltage?  I'm going for a ceiling of 60 mV.
>
> Dan
>
> On 5/30/07, Cory Sharp <[EMAIL PROTECTED]> wrote:
> >
> > Dan, it sounds like you've done everything necessary.  Try bypassing
> > the TinyOS MSP430 ADC components and check the ADC by directly setting the
> > MSP430 control registers.  Be sure to appropriately set these registers, in
> > particular:
> >
> >   P6SEL
> >   P6DIR
> >   ADC12CTL0
> >   ADC12CTL1
> >   ADC12IFG
> >   ADC12IE
> >
> > See the MSP430 User's Guide section ADC12 for appropriate values.
> > Then trigger a conversion with
> >
> >   ADC12CTL0 |= ENC | ADC12SC;
> >   ADC12CTL0 &= ~ADC12SC;
> >
> > You can throw together a quick and dirty ADC interrupt handler like
> > this
> >
> >   TOSH_SIGNAL(ADC_VECTOR) {
> > uint16_t iv = ADC12IV;
> > if( iv == 0x06 ) {
> >   ADC12IE = 0;
> >   reading = ADC12MEM0;
> >   post readDone();
> > }
> >   }
> >
> > - Cory
> >
> > On 5/30/07, Dan Steingart < [EMAIL PROTECTED]> wrote:
> >
> > > Hello all,
> > >
> > > I've combed the interweb, moved a jumper that was roughly the size
> > > of a grain of sand, and picked through Redfern's brain to the point where 
he
> > > said "read the MSP430 manual", but I can't seem to get the external
> > > reference going on my Tmote Sky.
> > >
> > >
> > > things I've done
> > >
> > > - In my ADC header file I changed the VRef to VeRef
> > > - Moved the jumper over
> > > - Fed the ref voltage to ADC0 (port 60, correct?)
> > > - Turned ADC0 into an Input pin with MSP430GeneralIO
> > >
> > > Is there something blatantly wrong here?  Is there a contrib file or
> > > other example I'm missing?
> > >
> > > Thanks in advance,
> > >
> > > Dan
> > >
> > >
> > >
> > > ___
> > > 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] RE: Draft procedure

2007-06-01 Thread Dan Steingart
Chris,

Glad it arrived, and thanks for taking care of it.


Dan--- Begin Message ---
It is quite likely that you have an MTS310CB board (look for a jumper
wire on the bottom-side of the sensor board). 
The MTS310CA uses INT2 for temperature power control where as the CB
version uses PW0. It sounds like you are using CA code on CB hardware
and hence the Temp sensor never gets turned on and returns 0.
The software modification involves changing one line of code. In
sensorboard.h file of the app, change 
TOSH_ALIAS_PIN(TEMP_CTL, INT2) to TOSH_ALIAS_PIN(TEMP_CTL, PW0) 
Recompile and reprogram the Mote attached to the Mote. You should be
able to read the correct temperature value now.
 
I hope that helps,
Giri




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Oussama Chougna
Sent: Friday, June 01, 2007 12:51 AM
To: 'Monica Bell'; tinyos-help@Millennium.Berkeley.EDU
Subject: RE: [Tinyos-help] (no subject)



I mean the ADChannel input that you are reading is grounded.

 

Sorry,

 

 

Chougna

 



From: Oussama Chougna [mailto:[EMAIL PROTECTED] 
Sent: vrijdag 1 juni 2007 9:40
To: 'Monica Bell'; 'tinyos-help@Millennium.Berkeley.EDU'
Subject: RE: [Tinyos-help] (no subject)

 

Sounds like your temperature sensor output is grounded on the board?

 

 

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Monica
Bell
Sent: vrijdag 1 juni 2007 4:03
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] (no subject)

 

Dear all,

I am having some problem with the temperature sensor value that I am
getting from MTS310 sensorboard. I am using Crossbow's
contrib/xbow/apps/XSensorMTS300 application. This application reads ,
among other things, the temperature sensor value. My problem is I always
get 0 from  Temperature.dataReady(uint16_t data)  event. Please note
that I am using micaz and tinyos 1.1.11. But when I remove the MTS310
board from the micaz mote, the temperature reading that I get is not 0.
Please let me know what I am missing here.

Thanks a lot,
Monica

 



Get your own web address.
<http://us.rd.yahoo.com/evt=49678/*http:/smallbusiness.yahoo.com/domains
/?p=BESTDEAL> 
Have a HUGE year through Yahoo! Small Business.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help--- End Message ---
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Disabling ADC2,ADC3 in order to use GIO1,GIO0

2007-06-04 Thread Dan Steingart

I've had good expieriences just using MSP430GeneralIOC, etc.  As long as you
don't initialize the ADC, it won't act as one.  Check out the TelosPWM code
for an example of the general IO code.

Dan

On 6/4/07, Joan Cortes <[EMAIL PROTECTED]> wrote:


 Hello,

I'm trying to use in Tmotes the exclusive Digital I/O 0, 1, 2 and 3. I use
the command TOSH_MAKE_GIO0_OUTPUT(); in the StdControl.init() and later I
set or clr the pins in the application when appropriate. However I couldn't
use the GIO0 and GIO1, even when I make also outputs the ADC2 and ADC3, the
set and clr instruction don't work when pointing to GIO0 and GIO1. Therefore
I have been using ADC2 and ADC3 names to make it work. Any one knows how to
solve this problem?

Additionally, using the Pong application, I don't know why the destination
address always appears as 0 in the output RSSI,LQI files. I checked
application.nc and java code and everything seems right. Any idea?

Thanks, regards,

Joan





___
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] NCC regex errors

2006-02-27 Thread Dan Steingart

For no apparent reason, my ncc install "broke" today.
I'm running the latest release of TinyOS with nesC 1.2.4

When I call ncc, I get this error:

Unmatched ) in regex; marked by <-- HERE in m/) <-- HERE  {
if (/ at /usr/local/bin/ncc line 38.

Line 38 of ncc reads:


37if (/^-/) {
38  if (/^-target=(.*)/) {
39  &fail("multiple targets specified") if defined($target);
40  1;
41  $strip = 1;
42  }


I'm running OS X tiger 10.4.5, everything was honkey dorey, only  
thing I installed this morning was JBuilder.  If someone can explain  
what the error means (I'm not one with the regex) that would be very  
cool.


Thanks in  advance,

Dan
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] An error with no messages

2006-02-28 Thread Dan Steingart

While trying to compile a telos b binary I get this error:

mkdir -p build/telos
compiling Blink to a telos binary
ncc -o build/telos/main.exe -O -mdisable-hwmul -I/Users/dan/ 
tinyos-1.x/tos/lib/CC2420Radio -I/Users/dan/tinyos-1.x/tos/lib/Flash - 
Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telos -fnesc- 
cfile=build/telos/app.c -board= -I%T/lib/Deluge -Wl,--section- 
start=.text=0x1a00,--defsym=_reset_vector__=0x1100 - 
DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"dan\" - 
DIDENT_HOSTNAME=\"DanielSteingart\" -DIDENT_USER_HASH=0x5ac259baL - 
DIDENT_UNIX_TIME=0x44047b48L -DIDENT_UID_HASH=0x6f267828L Blink.nc -lm

make: *** [exe0] Error 1

Anyone have any hints on where to start debugging?

Thanks in advance,

Dan

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] An error with no messages

2006-02-28 Thread Dan Steingart

Thanks Phil.  I added the line, and this is the response:

Reading specs from /usr/local/msp430/bin/../lib/gcc-lib/msp430/3.2.3/ 
specs

Reading specs from /usr/local/lib/ncc/tdspecs
Configured with: /Users/dan/tinyos-1.x/tools/src/mspgcc/build/ 
gcc-3.2.3/configure --target=msp430 --prefix=/usr/local/msp430/

Thread model: single
gcc version 3.2.3
perl -S nesc-compile -_fnesc-gcc=msp430-gcc -_fnesc-include=nesc_nx - 
_fnesc-include=tos -_Wnesc-all -_fnesc-cfile=build/telosb/app.c - 
_fnesc-target=msp430 -_fnesc-no-debug -mdisable-hwmul - 
mmcu=msp430x1611 -DPLATFORM_TELOSB -DBOARD_ -DDEF_TOS_AM_GROUP=0x7d - 
DIDENT_PROGRAM_NAME="Blink" -DIDENT_USER_ID="dan" - 
DIDENT_HOSTNAME="DanielSteingart" -DIDENT_USER_HASH=0x5ac259baL - 
DIDENT_UNIX_TIME=0x44049261L -DIDENT_UID_HASH=0xf00c3f71L -DNESC=124 - 
I/usr/local/lib/ncc -I/Users/dan/tinyos-1.x/tos/lib/Deluge -I/Users/ 
dan/tinyos-1.x/tos/lib/CC2420Radio -I/Users/dan/tinyos-1.x/tos/ 
platform/telosb -I/Users/dan/tinyos-1.x/tos/platform/telos -I/Users/ 
dan/tinyos-1.x/tos/platform/msp430 -I/Users/dan/tinyos-1.x/tos/lib/ 
Flash/STM25P -I/Users/dan/tinyos-1.x/tos/lib/Flash -I/Users/dan/ 
tinyos-1.x/tos/sensorboards/ -I/Users/dan/tinyos-1.x/tos/platform/ 
telosb -I/Users/dan/tinyos-1.x/tos/interfaces -I/Users/dan/tinyos-1.x/ 
tos/types -I/Users/dan/tinyos-1.x/tos/system -O -Wall -Wshadow -v -o / 
var/tmp//ccBEFphu.o Blink.nc -_ASM
nesc1 -_fnesc-gcc=msp430-gcc -_fnesc-include=nesc_nx -_fnesc- 
include=tos -_Wnesc-all -_fnesc-target=msp430 -_fnesc-no-debug - 
mdisable-hwmul -mmcu=msp430x1611 -DPLATFORM_TELOSB -DBOARD_ - 
DDEF_TOS_AM_GROUP=0x7d -DIDENT_PROGRAM_NAME="Blink" - 
DIDENT_USER_ID="dan" -DIDENT_HOSTNAME="DanielSteingart" - 
DIDENT_USER_HASH=0x5ac259baL -DIDENT_UNIX_TIME=0x44049261L - 
DIDENT_UID_HASH=0xf00c3f71L -DNESC=124 -I/usr/local/lib/ncc -I/Users/ 
dan/tinyos-1.x/tos/lib/Deluge -I/Users/dan/tinyos-1.x/tos/lib/ 
CC2420Radio -I/Users/dan/tinyos-1.x/tos/platform/telosb -I/Users/dan/ 
tinyos-1.x/tos/platform/telos -I/Users/dan/tinyos-1.x/tos/platform/ 
msp430 -I/Users/dan/tinyos-1.x/tos/lib/Flash/STM25P -I/Users/dan/ 
tinyos-1.x/tos/lib/Flash -I/Users/dan/tinyos-1.x/tos/sensorboards/ -I/ 
Users/dan/tinyos-1.x/tos/platform/telosb -I/Users/dan/tinyos-1.x/tos/ 
interfaces -I/Users/dan/tinyos-1.x/tos/types -I/Users/dan/tinyos-1.x/ 
tos/system -Wall -Wshadow -v Blink.nc -o build/telosb/app.c

preprocessing /Users/dan/tinyos-1.x/tos/system/tos.h
preprocessing /usr/local/lib/ncc/nesc_nx.h
preprocessing Blink.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/Main.nc
preprocessing /Users/dan/tinyos-1.x/tos/interfaces/StdControl.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MainM.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/HPLInitC.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/HPLInitM.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430ClockC.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/ 
MSP430ClockInit.nc

preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430ClockM.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430Timer.h
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/ 
MSP430DCOCalibC.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/ 
MSP430DCOCalibM.nc

preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430Timer.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430TimerC.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/ 
MSP430TimerControl.nc

preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430Compare.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430Capture.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/MSP430TimerM.nc
preprocessing BlinkM.nc
preprocessing /Users/dan/tinyos-1.x/tos/interfaces/Timer.nc
preprocessing /Users/dan/tinyos-1.x/tos/interfaces/Timer.h
preprocessing /Users/dan/tinyos-1.x/tos/interfaces/Leds.nc
preprocessing SingleTimer.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/TimerC.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/LocalTime.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/TimerMilli.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/TimerJiffy.nc
preprocessing /Users/dan/tinyos-1.x/tos/platform/msp430/TimerM.nc
preprocessing /Users/dan/tinyos-1.x/tos/system/LedsC.nc
-B/usr/local/lib/ncc -mdisable-hwmul -mmcu=msp430x1611 -O -Wall - 
Wshadow -v -o /var/tmp//ccBEFphu.o -c -fdollars-in-identifiers build/ 
telosb/app.c

make: *** [exe0] Error 1

Note the -B/usr/local/lib/ncc line... this seems to be the argument  
to an executable that isn't be called.  Any ideas?


Thanks in advance,

Dan


On Feb 28, 2006, at 9:34 AM, Philip Levis wrote:



On Feb 28, 2006, at 8:35 AM, Dan Steingart wrote:


While trying to compile a telos b binary I get this error:

mkdir -p build/telos
compiling Blink to a telos binary
ncc -o build/telos/main.exe -O

[Tinyos-help] CVS issues with build-mspgcc

2006-06-15 Thread Dan Steingart
When using the build-mspgcc script the CVS servers are rejecting me.   
Anyone know what's going on?


Thanks in advance,

Dan

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Uploading apps on mica2

2006-07-18 Thread jurin dan


   Hi.

   i'm working with MIB510 and mica2 and mica2dot.
   presently i've some difficulties to upload an apps on my mote. when 
i make in micahwverify folder,make install mica2, i get flash error message. 
i've check the serial connection and setting which working well, the mote 
hardware is not damaged also and well connected.


please do u have some idea to solve this bug?

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Uploading apps on mica2

2006-07-19 Thread jurin dan


Hi,

i've tried your command.
i've got improvement but the compiling and uplaoding process just frozen.
the message was :

$ MIB510=COM2 make mica2 install mib510
mkdir -p build/mica2
   compiling MicaHWVerify to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow 
-DDEF_TOS_A
M_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c 
-board=mica
sb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"MicaHWVerify\" 
-DIDENT_USER_ID=\"netwo
rk2005\" -DIDENT_HOSTNAME=\"essel\" -DIDENT_USER_HASH=0x7e9fb28fL 
-DIDENT_UNIX_T

IME=0x44be5becL -DIDENT_UID_HASH=0x0cdb6f89L MicaHWVerify.nc -lm
   compiled MicaHWVerify to build/mica2/main.exe
  11738 bytes in ROM
450 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe build/mica2/main.ihex
   writing TOS image
cp build/mica2/main.srec build/mica2/main.srec.out
   installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=COM2 --wr_fuse_h=0xd8 -dpart=ATmega128 
--wr_fuse_e=f

f  --erase --upload if=build/mica2/main.srec.out

from here i wait till 2 minutes and nothing happened.

thx for your help



From: "Krisakorn Rerkrai" <[EMAIL PROTECTED]>
To: "jurin dan" <[EMAIL PROTECTED]>
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Uploading apps on mica2
Date: Wed, 19 Jul 2006 09:38:53 +0200

Hi,

I got the same problem before. You can try this

$ MIB510=/dev/ttyS0 make mica2 install mib510

At least, it works so fine for me under WindowXP/Cgywin and TinyOS 1.1.15.

-Krisakorn

On 7/19/06, jurin dan <[EMAIL PROTECTED]> wrote:



Hi.

i'm working with MIB510 and mica2 and mica2dot.
presently i've some difficulties to upload an apps on my mote.
when
i make in micahwverify folder,make install mica2, i get flash error
message.
i've check the serial connection and setting which working well, the mote
hardware is not damaged also and well connected.

 please do u have some idea to solve this bug?

_
Play Q6 for your chance to WIN great prizes.
http://q6trivia.imagine-live.com/enca/landing

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Uploading apps on mica2

2006-07-19 Thread jurin dan


I've upgraded my tinyos to  tinyos-1.1.15 version today.
for cygwin version i don't know how to check.




From: "Sankar Gorthi" <[EMAIL PROTECTED]>
To: "jurin dan" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Uploading apps on mica2
Date: Wed, 19 Jul 2006 12:22:47 -0500

Oh snap! not you too! I suffered through all of that last week. What  
versions of cygwin, tinyos etc are you using?


I was trying out the new cygwin environment and the jan2005  
(tinyos-1.1.10) build.


Sankar.

On Wed, 19 Jul 2006 11:42:52 -0500, jurin dan <[EMAIL PROTECTED]> wrote:



Hi,

i've tried your command.
i've got improvement but the compiling and uplaoding process just frozen.
the message was :

$ MIB510=COM2 make mica2 install mib510
mkdir -p build/mica2
compiling MicaHWVerify to a mica2 binary
ncc -o build/mica2/main.exe -Os -finline-limit=10 -Wall -Wshadow  
-DDEF_TOS_A
M_GROUP=0x7d -Wnesc-all -target=mica2 -fnesc-cfile=build/mica2/app.c  
-board=mica
sb -I%T/lib/Deluge -DIDENT_PROGRAM_NAME=\"MicaHWVerify\"  
-DIDENT_USER_ID=\"netwo
rk2005\" -DIDENT_HOSTNAME=\"essel\" -DIDENT_USER_HASH=0x7e9fb28fL  
-DIDENT_UNIX_T

IME=0x44be5becL -DIDENT_UID_HASH=0x0cdb6f89L MicaHWVerify.nc -lm
compiled MicaHWVerify to build/mica2/main.exe
   11738 bytes in ROM
 450 bytes in RAM
avr-objcopy --output-target=srec build/mica2/main.exe  
build/mica2/main.srec
avr-objcopy --output-target=ihex build/mica2/main.exe  
build/mica2/main.ihex

writing TOS image
cp build/mica2/main.srec build/mica2/main.srec.out
installing mica2 binary using mib510
uisp -dprog=mib510 -dserial=COM2 --wr_fuse_h=0xd8 -dpart=ATmega128  
--wr_fuse_e=f

f  --erase --upload if=build/mica2/main.srec.out

from here i wait till 2 minutes and nothing happened.

thx for your help



From: "Krisakorn Rerkrai" <[EMAIL PROTECTED]>
To: "jurin dan" <[EMAIL PROTECTED]>
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] Uploading apps on mica2
Date: Wed, 19 Jul 2006 09:38:53 +0200

Hi,

I got the same problem before. You can try this

$ MIB510=/dev/ttyS0 make mica2 install mib510

At least, it works so fine for me under WindowXP/Cgywin and TinyOS  
1.1.15.


-Krisakorn

On 7/19/06, jurin dan <[EMAIL PROTECTED]> wrote:



Hi.

i'm working with MIB510 and mica2 and mica2dot.
presently i've some difficulties to upload an apps on my mote.
when
i make in micahwverify folder,make install mica2, i get flash error
message.
i've check the serial connection and setting which working well, the  
mote

hardware is not damaged also and well connected.

 please do u have some idea to solve this bug?

_
Play Q6 for your chance to WIN great prizes.
http://q6trivia.imagine-live.com/enca/landing

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



_
Play Q6 for your chance to WIN great prizes.   
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




--
No opera plot can be sensible, for people do not sing when they are  
feeling sensible. - W. H. Auden


_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] testing mica2dot test.

2006-07-19 Thread jurin dan


   Hi,

  i have for my sensor network apps, 2 motes: mica2 and mica2dot. (i'am 
using MIB510 station base). i've performed for both mote all hardware 
verification up to Radio Verification step.
  i've installled tosbase apps on my mica2 and using the mica2dot 
install with micahwverify as node. as result for this commande:


  make -f jmakefile
  [EMAIL PROTECTED]: mica2dot java hardware_check

  i've got this message:

  Hardware check started
  [EMAIL PROTECTED]:19200: resynchonising
  Node transmission failure

  did anyboy have idea to debug this. thx in advance
p.s: i've set my port to 57600 bits per second.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] testing mica2dot test

2006-07-20 Thread jurin dan


 Hi,

 i have for my sensor network apps, 2 motes: mica2 and mica2dot. (i'am 
using MIB510 station base). i've performed for both mote all hardware 
verification up to Radio Verification step.
 i've installled tosbase apps on my mica2 and using the mica2dot 
install with micahwverify as node. as result for this commande:


 make -f jmakefile
 [EMAIL PROTECTED]: mica2dot java hardware_check

 i've got this message:

 Hardware check started
 [EMAIL PROTECTED]:19200: resynchonising
 Node transmission failure

and this failure notice happened even when i configure radio frequency in  
C:\Program Files\UCB\cygwin\opt\tinyos-1.x\tos\platform\mica2 at file named 
CC1000Const.h


 did anyboy have idea to debug this. thx in advance

p.s: i've set my port to 57600 bits per second.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] testing mica2dot test

2006-07-20 Thread jurin dan

 Hi,

 i have for my sensor network apps, 2 motes: mica2 and mica2dot. (i'am
using MIB510 station base). i've performed for both mote all hardware
verification up to Radio Verification step.
 i've installled tosbase apps on my mica2 and using the mica2dot
install with micahwverify as node. as result for this commande:

 make -f jmakefile
 [EMAIL PROTECTED]: mica2dot java hardware_check

 i've got this message:

 Hardware check started
 [EMAIL PROTECTED]:19200: resynchonising
 Node transmission failure

and this failure notice happened even when i configure radio frequency in
C:\Program Files\UCB\cygwin\opt\tinyos-1.x\tos\platform\mica2 at file named
CC1000Const.h

but  i`ve done my research in deep and found that, serial to radio link 
is able but not radio to serial


 did anyboy still having idea to debug this. thx in advance

p.s: i've set my port to 57600 bits per second.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] mica2dot warning

2006-07-20 Thread jurin dan



   Hi,

  I would like to know what this warning mean :
 #WARNING "SERIALID NOT SUPPORTED ON MICA2DOT PLATFORM!"
  it is a warning which appear when uploading an apps on mica2dot.

  is it possible that because of this warning when i make a radio 
verification for mica2dot ( mica2 install with tosbase apps and mica2dot 
install with micahwverify apps) i got node transmission failure even if the 
green led on station base toogle which indicate that packets are being 
transmitted from radio to serial?



 thx for your help.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] radio verification test

2006-07-23 Thread jurin dan


 hi,

i was using tinyos 1.1.10 and the radio verification test made with 
mica2 and mica2dot was succesfull. but after upgrading my tinyos version to 
1.1.15 with the same command i have node failure transmission. i tried one 
more time but still having node failure transmission failure.


are they any setting i have to made on tinyos 1.1.15 before ?

thx in advance.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] radio verification test

2006-07-23 Thread jurin dan


 hi,

i was using tinyos 1.1.10 on my lapttop and the radio verification 
test made with mica2 and mica2dot was succesfull. but after upgrading my 
tinyos version to 1.1.15 (now i'am working on desktop) with the same command 
i have node failure transmission. i tried one more time but still having 
node failure transmission failure.


are they any setting i have to made on tinyos 1.1.15 before the 
radio verification work on when i'am using my desktop? of course i've set my 
COM port to 57600 bits/sec before starting the test.


thx in advance.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] setting node ID

2006-07-25 Thread jurin dan


hi,

i'm using tinyos v.1.1.10 and i want to set a node ID. i used this 
command:

make mica2 install,1 mib510,com1
message error was:
make:***No rule to make target '1'. Stop.

is somebody aware of the right syntax of the command?

thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Tinyos tutorial's lesson 7

2006-07-26 Thread jurin dan
  hi, 

  i'm trying to do the lesson 7 exercise of tinyos tutorial. but i'm dealing with error during compilation. here is what i have done.(i'm using tinyos v1.1.10) 
  first step: in SimpleCmd.nc i add "SimpleCmdM.Sounder ->Sounder;" 


  second step: in SimpleCmdM.nc i add in "uses", "interface StdControl as Sounder;" and in "command result_t StdControl.init()" i add "call Sounder.init();" 
 third step: also in SimpleCmdM.nc i add this code for command: 
{
  bool sound=TRUE;
  case TOG_SOUNDER:
  if (sound) call Sounder.start();
  else call Sounder.stop();
  sound=!sound;
  break;  
}

fourth step: in SimpleCmdMsg.h i add commandes types like TOG_SOUNDER=5

after all this i regenerate java class and recompile BcastInject.java 

When i made compilation (make mica2) i got this error message:  

 $ make mica2
compiling Bcast to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 -DCC1K_DEF_FREQ=9164
0 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=10 -f
nesc-cfile=build/mica2/app.c  Bcast.nc -lm
SimpleCmdM.nc:152: parse error before `{'
SimpleCmdM.nc:157: warning: type defaults to `int' in declaration of `sound'
SimpleCmdM.nc:157: initializer element is not constant
SimpleCmdM.nc:157: (near initialization for `sound')
SimpleCmdM.nc:157: warning: data definition has no type or storage class
SimpleCmdM.nc:158: parse error before `break'
: `ReceiveCmdMsg.receive' not implemented
: `ProcessCmd.execute' not implemented
SimpleCmd.nc:56: cannot find `Sounder'
make: *** [build/mica2/main.exe] Error 1


   
 analysing the message error, i think that error source is in the command line i wrotte at the third step.
 
 
   could anybody give me a help? thx
  Play Q6 for your chance to  WIN  great prizes.

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] excute patch

2006-07-26 Thread jurin dan


  hi,

  i would like to excute MatlabControl-R13-R14.patch in cygwin.
  but i don't know the command syntax.

  could anybody give me a help?

  thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] research opportunity -- forgive me if it is not permitted to post this

2006-07-27 Thread Dan Zhang
Post for my lab -- forgive me if it is not a good place to post this -- just thought it is the best way to find best candidates
=
Look for good PhD candidate with tinyos programming experience, see details:
http://sensorweb.vancouver.wsu.edu/contact.html

___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] tinyos tutorial lesson 7

2006-07-30 Thread jurin dan


   hi

   i'm trying to do the exercise of lesson 7 of tinyos tutorial.
   i've got a bug in step two which consist of In SimpleCmdM.nc, to 
initialize the sounder and add a new command action that will turn the 
sounder on and off.


  i've joined to the mail the file simplecmdM.nc that i modified. 
changes were made at line 64, 80, 124-130 and 148.


 when i compile simplecmd i got this error message:

 $ make install mica2
   compiling Bcast to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 
-DCC1K_DEF_FREQ=9164
0 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all 
-finline-limit=10 -f

nesc-cfile=build/mica2/app.c  Bcast.nc -lm
SimpleCmd.nc:56: cannot find `Sounder'
make: *** [build/mica2/main.exe] Error 1


  i'm trying to fix the bug. help me please.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing

// $Id: SimpleCmdM.nc,v 1.4 2004/05/04 22:39:07 idgay Exp $

/*  tab:4
* "Copyright (c) 2000-2003 The Regents of the University  of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement 
is

* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING 
OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY 
OF

* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*
* Copyright (c) 2002-2003 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704.  Attention:  Intel License Inquiry.
*/
/*
* Author:  Robert Szewczyk,  Su Ping
*
* $\Id$
*/

/**
* SimpleCmdM is a tiny OS application module.
* This module demonstrates a simple command interpreter for the TinyOS
* tutorial. The module receives a command message from the radio, which
* is passed to the ProcessCmd interface for processing. A task is posted
* to process the command. The command packet contains a one-byte
* 'action' field specifying which action to take; as a simple version,
* this module can only interpret the follwoing commands:
* Led_on (action = 1), Led_off (2), radio_quieter (3), and radio_louder (4).
*
* This module also implements the ProcessCmd interface.
* @author Robert Szewczyk
* @author Su Ping
**/
includes SimpleCmdMsg;

module SimpleCmdM {
 provides   {
   interface StdControl;
   interface ProcessCmd;
 }

 uses {
   interface Leds;
   interface Pot;
   interface ReceiveMsg as ReceiveCmdMsg;
   interface StdControl as CommControl;
interface StdControl as Sounder;
 }
}

/*
*  Module Implementation
*/


implementation
{

 // module scoped variables
 TOS_MsgPtr msg;
 int8_t pending;
 TOS_Msg buf;
 bool sound=TRUE;


 /**
  *
  * This task evaluates a command and execute it if it is a supported
  * command.The protocol for the command interpreter is that
  * it operates on the message and returns a (potentially modified)
  * message to the calling layer, as well a status word for whether
  * the message should be futher processed.
  *
  * @return Return: None
  **/

 task void cmdInterpret() {
   struct SimpleCmdMsg * cmd = (struct SimpleCmdMsg *) msg->data;
   // do local packet modifications: update the hop count and packet source
   cmd->hop_count++;
   cmd->source = TOS_LOCAL_ADDRESS;

   // Interpret the command: Display the level on red and green led
   if (cmd->hop_count & 0x1)
 call Leds.greenOn();
   else
 call Leds.greenOff();
   if (cmd->hop_count & 0x2)
 call Leds.redOn();
   else
 call Leds.redOff();

   // Execute the command
   switch (cmd->action) {
 case LED_ON:
call Leds.yellowOn();
break;
 case LED_OFF:
call Leds.yellowOff();
break;
 case RADIO_QUIETER:
call Pot.increase();
break;
 case RADIO_LOUDER:
call Pot.decrease();
break;
  case TOG_SOUNDER:
if (sound)
  call Sounder.start();
else
  call Sounder.stop();
  sound=!sound;
break;
   }

   pen

Re: [Tinyos-help] tinyos tutorial lesson 7

2006-08-01 Thread jurin dan

hi,

i've done what u advise to me. and one more thing, i have add Sounder in 
component list in the file SimpleCmd.nc before it work.


thx



From: Michael Schippling <[EMAIL PROTECTED]>
To: jurin dan <[EMAIL PROTECTED]>
CC: tinyos-help@Millennium.Berkeley.EDU
Subject: Re: [Tinyos-help] tinyos tutorial lesson 7
Date: Sun, 30 Jul 2006 16:48:19 -0600

You probably missed adding Sounder to the SimpleCmd.nc config file.
Follow the example of PotC or LedsC in that file and I think you
may have more success...
MS


jurin dan wrote:


   hi

   i'm trying to do the exercise of lesson 7 of tinyos tutorial.
   i've got a bug in step two which consist of In SimpleCmdM.nc, to 
initialize the sounder and add a new command action that will turn the 
sounder on and off.


  i've joined to the mail the file simplecmdM.nc that i modified. 
changes were made at line 64, 80, 124-130 and 148.


 when i compile simplecmd i got this error message:

 $ make install mica2
   compiling Bcast to a mica2 binary
ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2 
-DCC1K_DEF_FREQ=9164
0 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all 
-finline-limit=10 -f

nesc-cfile=build/mica2/app.c  Bcast.nc -lm
SimpleCmd.nc:56: cannot find `Sounder'
make: *** [build/mica2/main.exe] Error 1


  i'm trying to fix the bug. help me please.

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing

// $Id: SimpleCmdM.nc,v 1.4 2004/05/04 22:39:07 idgay Exp $

/*tab:4
* "Copyright (c) 2000-2003 The Regents of the University  of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written 
agreement is

* hereby granted, provided that the above copyright notice, the following
* two paragraphs and the author appear in all copies of this software.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY 
FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING 
OUT
* OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE 
UNIVERSITY OF

* CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER 
IS
* ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION 
TO

* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS."
*
* Copyright (c) 2002-2003 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA,
* 94704.  Attention:  Intel License Inquiry.
*/
/*
* Author:  Robert Szewczyk,  Su Ping
*
* $\Id$
*/

/**
* SimpleCmdM is a tiny OS application module.
* This module demonstrates a simple command interpreter for the TinyOS
* tutorial. The module receives a command message from the radio, which
* is passed to the ProcessCmd interface for processing. A task is posted
* to process the command. The command packet contains a one-byte
* 'action' field specifying which action to take; as a simple version,
* this module can only interpret the follwoing commands:
* Led_on (action = 1), Led_off (2), radio_quieter (3), and radio_louder 
(4).

*
* This module also implements the ProcessCmd interface.
* @author Robert Szewczyk
* @author Su Ping
**/
includes SimpleCmdMsg;

module SimpleCmdM {
 provides {
   interface StdControl;
   interface ProcessCmd;
 }

 uses {
   interface Leds;
   interface Pot;
   interface ReceiveMsg as ReceiveCmdMsg;
   interface StdControl as CommControl;
interface StdControl as Sounder;
 }
}

/*
*  Module Implementation
*/


implementation
{

 // module scoped variables
 TOS_MsgPtr msg;
 int8_t pending;
 TOS_Msg buf;
 bool sound=TRUE;


 /**
  *
  * This task evaluates a command and execute it if it is a supported
  * command.The protocol for the command interpreter is that
  * it operates on the message and returns a (potentially modified)
  * message to the calling layer, as well a status word for whether
  * the message should be futher processed.
  *
  * @return Return: None
  **/

 task void cmdInterpret() {
   struct SimpleCmdMsg * cmd = (struct SimpleCmdMsg *) msg->data;
   // do local packet modifications: update the hop count and packet 
source

   cmd->hop_count++;
   cmd->source = TOS_LOCAL_ADDRESS;

   // Interpret the command: Display the level on red and green led
   if (cmd->hop_count & 0x1)
 call Leds.greenOn();
   else
 call

[Tinyos-help] How to compile MatlabControl.java

2006-08-01 Thread jurin dan



hi,

   i'm now learning how to use matlab with tinyos tools. i have matlab 
7.0.0 R14

   currently i'm trying ti compile matlabcontrol.java
   according to the tutorial before proceeding, i must run 
MatlabControl-R13-R14.patch. so in  tis directory :  
\TinyOS\cygwin\opt\tinyos-1.x\tools\java\net\tinyos\matlab i type:


  patch MatlabControl-R13-R14.patch, and i didn't get any response from 
cygwin.


  did somebody know how to execute the patch and how to add jmi.jar 
file in my CLASSPATH environment variable?


  thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] commands in cygwin.

2006-08-02 Thread jurin dan



hi,

   did anybody know the command line to execute a patch in cygwin?

   thx

_
Play Q6 for your chance to WIN great prizes.  
http://q6trivia.imagine-live.com/enca/landing


___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help