[Tinyos-help] timing

2006-06-05 Thread Roberto
hi All,
I'm using simpleTime component with Time and TimeUtils interfaces. Is it
possible to measure time intervals less then 30ms? Under this time
difference I can get no measures.

thank you

roberto

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


[Tinyos-help] Re: question on simple_transmit from Rfm_model.c

2006-06-05 Thread Liu Haibin
For example, let's say we have 2 motes. Mote 0 is transmitting 0s all the time, so transmitting[5] = 0, radio_active[0] = 0, and radio_active[1] = 0.While mote 0 is transmitting 0s, the TOSH_rfm_rx_bit() in TOS_SIGNAL_HANDLER(SIG_OUTPUT_COMPARE2B, ()) of mote 1 is called. And because radio_active[1] == 0, TOSH_rfm_rx_bit() returns 0. After 12 bits, it signal 
ChannelMon.idleDetect() to show the channel is free. But actually mote 0 is using the channel and transmitting 0s.Why is it so? Any help is appreciated.Regards,Haibin
On 6/2/06, Liu Haibin [EMAIL PROTECTED] wrote:
Hi,I have a question about the following code from Rfm_model.c. The parameter bit can be 1 or 0. When simple_trasmit is transmitting bit 1, transmitting[modeID] is set to 1, meaning it's transmitting. However, when simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0, meaning it's not transmitting (actually it's transmitting bit 0). Why is it so? I must have the concept wrong. Could any help me on this?
void simple_transmit(int moteID, char bit) { int i;  transmitting[moteID] = bit; for (i = 0; i  tos_state.num_nodes; i++) { radio_active[i] += bit; }}Regards,

Haibin


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


[Tinyos-help] Programmer is not responding problem with MIB510

2006-06-05 Thread Tsenka Stoyanova

Hi all,

We have problem with our MIB510, and I think it is not matter of syntax in 
writing the command in the bash shell. We will appreciate if somebody has 
suggestions.




We have a MICA mote kit (the professional one) consisting of a programmer 
MIB510 and some motes (mica2 and mica2dot). We use an usb-to-serial bridge 
or RS232 cable to connect the pc to the programmer.


We have done all the staff needed in order to start uploading applications 
to the motes and using mote-view to test a network and it's ok.


We uploaded some applications to the motes and used mote-view to take and 
display the data, and all worked fine.
Afterwards, We tried to upload another application to a mica2 without 
changing any settings, by simply typing 'make mica2 install' (in the cygwin 
bash shell) and after successful compilation there was a message like:


'[EMAIL PROTECTED] /opt/tinyos-1.x/contrib/xbow/apps/cnttoledsandrfm

$ make mica2 install



mkdir -p build/mica2  compiling CntToLedsAndRfm to a mica2 binary ncc -o 
build/mica2/main.exe -Os -I%T/lib/Counters -I%T/../contrib/xbow/tos/platf 
rm/mica2 -I%T/../contrib/xbow/tos/AXStack/mica2 -finline-limit=10 
Wall -Ws hadow -DDEF_TOS_AM_GROUP=0x88 -Wnesc-all -target=mica2 
fnesc-cfile=build/mica2/app.c -board=micasb - 
DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00-DRADIO_XMIT_POWER=0x5F -DCC2420_TXPOWER=0x1F 
-DCC2420_DEF_CHANNEL=26 -I%T/lib/Deluge-DIDENT_PROGRAM_NAME=\CntToLedsAndRfm\ 
-DIDENT_USER_ID=\admin\-DIDENT_HOSTNAME=\adhok\ -DIDENT_USER_HASH=0xecd2ee4aL 
-DIDENT_UNIX_TIME=0x447acde1L-DIDENT_UID_HASH=0x5c59a94eL 
CntToLedsAndRfm.nc -lm


compiled CntToLedsAndRfm to build/mica2/main.exe

11924 bytes in ROM

448 bytes in RAM

avr-objcopy --output-target=srec build/mica2/main.exe 
build/mica2/main.srecavr-objcopy --output-target=ihex build/mica2/main.exe 
build/mica2/main.ihex


writing TOS imagecp build/mica2/main.srec build/mica2/main.srec.out

installing mica2 binary using mib510

uisp -dprog=mib510 -dserial=/dev/ttys3 --wr_fuse_h=0xd8 -dpart=ATmega128--wr_fuse_e=ff 
 --erase --upload if=build/mica2/main.srec.out


Programmer is not responding.

make: *** [program] Error 2'




The programmer with one mica2 as a base station, however, still works. We 
can take data from the programmer with a mica2 attached to it programmed 
with TOSbase application.
So, the serial connection at least in one direction from programmer to PC 
still works.


We tried any syntax and everything we could imagine, but the programmer is 
still not responding.


We suppose some hardware problem. If somebody has experienced with such 
problem we will appreciate any shared information.

Thank you all,
-
Tsenka Stoyanova, PhD student
Applied Electronics Laboratory (APEL)
http://www.apel.ee.upatras.gr/
University of Patras
26500 Rion-Patras
Greece
E-mail: [EMAIL PROTECTED]
Phone: +302610997312
-- 


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


RE: [Tinyos-help] Programmer is not responding problem with MIB510

2006-06-05 Thread Siirtola Harri
Hi,

Are you using COM4 (/dev/ttyS3) with MoteView,too? (The installer seems
to try using that). Is your bash command complete? The correct command
should be

$ make mica2 reinstall,0 mib510,/dev/ttyS3

Another thing is, some motes are quite reluctant to accept programming,
many times I must give the reinstall command ten times and finally it
can connect. Try with another mote, if you haven't already done that.

Regards,

Harri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tsenka
Stoyanova
Sent: Monday, June 05, 2006 2:13 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Programmer is not responding problem with
MIB510

Hi all,

We have problem with our MIB510, and I think it is not matter of syntax
in writing the command in the bash shell. We will appreciate if somebody
has suggestions.



We have a MICA mote kit (the professional one) consisting of a
programmer MIB510 and some motes (mica2 and mica2dot). We use an
usb-to-serial bridge or RS232 cable to connect the pc to the programmer.

We have done all the staff needed in order to start uploading
applications to the motes and using mote-view to test a network and
it's ok.

We uploaded some applications to the motes and used mote-view to take
and display the data, and all worked fine.
Afterwards, We tried to upload another application to a mica2 without
changing any settings, by simply typing 'make mica2 install' (in the
cygwin bash shell) and after successful compilation there was a message
like:

'[EMAIL PROTECTED] /opt/tinyos-1.x/contrib/xbow/apps/cnttoledsandrfm

$ make mica2 install



mkdir -p build/mica2  compiling CntToLedsAndRfm to a mica2 binary ncc -o
build/mica2/main.exe -Os -I%T/lib/Counters
-I%T/../contrib/xbow/tos/platf
rm/mica2 -I%T/../contrib/xbow/tos/AXStack/mica2 -finline-limit=10
Wall -Ws hadow -DDEF_TOS_AM_GROUP=0x88 -Wnesc-all -target=mica2
fnesc-cfile=build/mica2/app.c -board=micasb -
DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00-DRADIO_XMIT_POWER=0x5F
-DCC2420_TXPOWER=0x1F
 -DCC2420_DEF_CHANNEL=26
-I%T/lib/Deluge-DIDENT_PROGRAM_NAME=\CntToLedsAndRfm\ 
 -DIDENT_USER_ID=\admin\-DIDENT_HOSTNAME=\adhok\
-DIDENT_USER_HASH=0xecd2ee4aL
-DIDENT_UNIX_TIME=0x447acde1L-DIDENT_UID_HASH=0x5c59a94eL
CntToLedsAndRfm.nc -lm

 compiled CntToLedsAndRfm to build/mica2/main.exe

11924 bytes in ROM

448 bytes in RAM

avr-objcopy --output-target=srec build/mica2/main.exe
build/mica2/main.srecavr-objcopy --output-target=ihex
build/mica2/main.exe build/mica2/main.ihex

writing TOS imagecp build/mica2/main.srec build/mica2/main.srec.out

 installing mica2 binary using mib510

uisp -dprog=mib510 -dserial=/dev/ttys3 --wr_fuse_h=0xd8
-dpart=ATmega128--wr_fuse_e=ff
  --erase --upload if=build/mica2/main.srec.out

Programmer is not responding.

make: *** [program] Error 2'




The programmer with one mica2 as a base station, however, still works.
We can take data from the programmer with a mica2 attached to it
programmed with TOSbase application.
So, the serial connection at least in one direction from programmer to
PC still works.

We tried any syntax and everything we could imagine, but the programmer
is still not responding.

We suppose some hardware problem. If somebody has experienced with such
problem we will appreciate any shared information.
Thank you all,
-
Tsenka Stoyanova, PhD student
Applied Electronics Laboratory (APEL)
http://www.apel.ee.upatras.gr/
University of Patras
26500 Rion-Patras
Greece
E-mail: [EMAIL PROTECTED]
Phone: +302610997312
-- 

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

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


[Tinyos-help] help regarding TPSN

2006-06-05 Thread Prakshep Mehta

Hello,

I want to use TPSN protocol for my project. I downloaded the code from 
your site and tried implementing it on tinyos 1.1.15 (for tossim). I got 
the following error:


[EMAIL PROTECTED] TestTPSN]# make pc
  compiling TestTPSN to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc  -Wall 
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 
-fnesc-cfile=build/pc/app.c  TestTPSN.nc -lm

In file included from TestTPSNM.nc:42:
/opt/tinyos-1.x/tos/interfaces/TPSNsync.nc:44: warning: declaration of 
`alarm' shadows global declaration

/usr/include/unistd.h:378: warning: location of shadowed declaration
/opt/tinyos-1.x/tos/system/TPSNsyncM.nc:392: warning: declaration of 
`alarm' shadows global declaration

/usr/include/unistd.h:378: warning: location of shadowed declaration
/opt/tinyos-1.x/tos/system/GenericComm.nc:88: no match
/opt/tinyos-1.x/tos/system/SClockC.nc:38: component HPLSClock not found
/opt/tinyos-1.x/tos/system/SClockC.nc:32: expected component 
`HPLSClock', but got component 'SClockC'

/opt/tinyos-1.x/tos/system/SClockC.nc:40: no match
/opt/tinyos-1.x/tos/system/SClockC.nc:41: no match
/opt/tinyos-1.x/tos/system/SClockC.nc:38: redefinition of `HPLSClock'
/opt/tinyos-1.x/tos/system/SClockC.nc:40: no match
/opt/tinyos-1.x/tos/system/SClockC.nc:41: no match
make: *** [build/pc/main.exe] Error 1
[EMAIL PROTECTED] TestTPSN]#

From the above error we understood that HPLSClock.nc is not found in 
/opt/tinyos-1.x/tos/system/ folder. So I copied it from 
/opt/tinyos-1.x/tos/interfaces/platforms/mica2 to  
/opt/tinyos-1.x/tos/system/ directory. After doing this I got the 
following error:

[EMAIL PROTECTED] TestTPSN]# make pc
  compiling TestTPSN to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc  -Wall 
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 
-fnesc-cfile=build/pc/app.c  TestTPSN.nc -lm

In file included from TestTPSNM.nc:42:
/opt/tinyos-1.x/tos/interfaces/TPSNsync.nc:44: warning: declaration of 
`alarm' shadows global declaration

/usr/include/unistd.h:378: warning: location of shadowed declaration
/opt/tinyos-1.x/tos/system/TPSNsyncM.nc:392: warning: declaration of 
`alarm' shadows global declaration

/usr/include/unistd.h:378: warning: location of shadowed declaration
/opt/tinyos-1.x/tos/system/GenericComm.nc:88: no match
/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.SetRate':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:72: `ETIMSK' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:72: (Each undeclared identifier 
is reported only once
/opt/tinyos-1.x/tos/system/HPLSClock.nc:72: for each function it appears 
in.)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:72: `OCIE3A' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:73: `TCCR3B' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:74: `TCNT3' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:75: `OCR3A' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:76: `TCCR3A' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:77: `COM3A0' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:78: `DDE3' undeclared (first use 
in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:79: `TCCR3C' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.readCounter':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:87: `TCNT3' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.setCounter':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:92: `TCNT3' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.getTime':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:99: `TCNT3' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:100: implicit declaration of 
function `bit_is_set'
/opt/tinyos-1.x/tos/system/HPLSClock.nc:100: `ETIFR' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:100: `OCF3A' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.intEnable':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:117: `ETIMSK' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:117: `OCIE3A' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `SClock.intDisable':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:121: `ETIMSK' undeclared (first 
use in this function)
/opt/tinyos-1.x/tos/system/HPLSClock.nc:121: `OCIE3A' undeclared (first 
use in this function)

/opt/tinyos-1.x/tos/system/HPLSClock.nc: At top level:
/opt/tinyos-1.x/tos/system/HPLSClock.nc:126: old-style parameter lists 
not supported
/opt/tinyos-1.x/tos/system/HPLSClock.nc:126: warning: return-type 
defaults to 

[Tinyos-help] Programmer is still not responding problem with MIB510

2006-06-05 Thread Tsenka Stoyanova

Hi all,



Thank you, for the answers.

We did many things including: different commands including 
MIB510=/dev/ttyS0 make mica2 install and . mib510,/dev/ttyS3, switching 
the button in ON position, testing with serial RS232 cable instead of 
USB-to-RS232, testing with 4 different motes, etc.


Finally we borrow from another laboratory the same programmer, for an hour, 
and it worked with all our settings, cables, motes, and commands.


So, the problem seems to be on the board, probably the ISP cannot take 
control over the serial port and the processor could not respond, or the 
problem is with MAX232 buffer. We are still wondering and we are not so 
brave to touch the hardware to not break it completely, actually it works as 
a base station to send data to the PC.


Any other suggestions, please.

Tank you all
-
Tsenka Stoyanova, PhD student
Applied Electronics Laboratory (APEL)
http://www.apel.ee.upatras.gr/
University of Patras
26500 Rion-Patras
Greece
E-mail: [EMAIL PROTECTED]
Phone: +302610997312
-- 


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


[Tinyos-help] Mica2 Throughput

2006-06-05 Thread Winston Liu
I measured the throughput of Mica2 and get a result of 12 packets/second, and 29 bytes per packet limited by BMAC.Could I improve the throughput by increase the packets rate or packet size?
		Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! Messenger with Voice___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Programmer is still not responding problem with MIB510

2006-06-05 Thread R Gartz
Hello, I had a similar problem: the programmer did not respond although TOSBase could receive and send message from and to the pc/networkHowever, the motes could not be reprogrammed. I identified the problem: the motes were not getting enough power to program them. There was something wrong with the external power connector/supplier. 
Maybe you should look in this direction?greetings,robinOn 6/5/06, Tsenka Stoyanova 
[EMAIL PROTECTED] wrote:Hi all,Thank you, for the answers.
We did many things including: different commands includingMIB510=/dev/ttyS0 make mica2 install and . mib510,/dev/ttyS3, switchingthe button in ON position, testing with serial RS232 cable instead of
USB-to-RS232, testing with 4 different motes, etc.Finally we borrow from another laboratory the same programmer, for an hour,and it worked with all our settings, cables, motes, and commands.So, the problem seems to be on the board, probably the ISP cannot take
control over the serial port and the processor could not respond, or theproblem is with MAX232 buffer. We are still wondering and we are not sobrave to touch the hardware to not break it completely, actually it works as
a base station to send data to the PC.Any other suggestions, please.Tank you all-Tsenka Stoyanova, PhD studentApplied Electronics Laboratory (APEL)
http://www.apel.ee.upatras.gr/University of Patras26500 Rion-PatrasGreeceE-mail: [EMAIL PROTECTED]
Phone: +302610997312--___Tinyos-help mailing listTinyos-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] Programmer is not responding problem with MIB510

2006-06-05 Thread omotayo
This problem can be caused by the mote not sitting well on the programmer.
You may need to exert some pressure to make sure the mote is well
connected to the programming board.

Adesola


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tsenka
Stoyanova
Sent: Monday, June 05, 2006 2:13 PM
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] Programmer is not responding problem with
MIB510

Hi all,

We have problem with our MIB510, and I think it is not matter of syntax
in writing the command in the bash shell. We will appreciate if somebody
has suggestions.



We have a MICA mote kit (the professional one) consisting of a
programmer MIB510 and some motes (mica2 and mica2dot). We use an
usb-to-serial bridge or RS232 cable to connect the pc to the programmer.

We have done all the staff needed in order to start uploading
applications to the motes and using mote-view to test a network and
it's ok.

We uploaded some applications to the motes and used mote-view to take
and display the data, and all worked fine.
Afterwards, We tried to upload another application to a mica2 without
changing any settings, by simply typing 'make mica2 install' (in the
cygwin bash shell) and after successful compilation there was a message
like:

'[EMAIL PROTECTED] /opt/tinyos-1.x/contrib/xbow/apps/cnttoledsandrfm

$ make mica2 install



mkdir -p build/mica2  compiling CntToLedsAndRfm to a mica2 binary ncc -o
build/mica2/main.exe -Os -I%T/lib/Counters
-I%T/../contrib/xbow/tos/platf
rm/mica2 -I%T/../contrib/xbow/tos/AXStack/mica2 -finline-limit=10
Wall -Ws hadow -DDEF_TOS_AM_GROUP=0x88 -Wnesc-all -target=mica2
fnesc-cfile=build/mica2/app.c -board=micasb -
DCC1K_DEFAULT_FREQ=RADIO_916BAND_CHANNEL_00-DRADIO_XMIT_POWER=0x5F
-DCC2420_TXPOWER=0x1F
 -DCC2420_DEF_CHANNEL=26
-I%T/lib/Deluge-DIDENT_PROGRAM_NAME=\CntToLedsAndRfm\
 -DIDENT_USER_ID=\admin\-DIDENT_HOSTNAME=\adhok\
-DIDENT_USER_HASH=0xecd2ee4aL
-DIDENT_UNIX_TIME=0x447acde1L-DIDENT_UID_HASH=0x5c59a94eL
CntToLedsAndRfm.nc -lm

 compiled CntToLedsAndRfm to build/mica2/main.exe

11924 bytes in ROM

448 bytes in RAM

avr-objcopy --output-target=srec build/mica2/main.exe
build/mica2/main.srecavr-objcopy --output-target=ihex
build/mica2/main.exe build/mica2/main.ihex

writing TOS imagecp build/mica2/main.srec build/mica2/main.srec.out

 installing mica2 binary using mib510

uisp -dprog=mib510 -dserial=/dev/ttys3 --wr_fuse_h=0xd8
-dpart=ATmega128--wr_fuse_e=ff
  --erase --upload if=build/mica2/main.srec.out

Programmer is not responding.

make: *** [program] Error 2'




The programmer with one mica2 as a base station, however, still works.
We can take data from the programmer with a mica2 attached to it
programmed with TOSbase application.
So, the serial connection at least in one direction from programmer to
PC still works.

We tried any syntax and everything we could imagine, but the programmer
is still not responding.

We suppose some hardware problem. If somebody has experienced with such
problem we will appreciate any shared information.
Thank you all,
-
Tsenka Stoyanova, PhD student
Applied Electronics Laboratory (APEL)
http://www.apel.ee.upatras.gr/
University of Patras
26500 Rion-Patras
Greece
E-mail: [EMAIL PROTECTED]
Phone: +302610997312
--

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


[Tinyos-help] Packet format from PC to base mote through UART

2006-06-05 Thread Lei Tang
Hi, allI am trying to send a packet from a PC to a micaZ mote through serial cable. The packet looks like:7e 42 ff ff 0 81 10 
f f f f f f a1 21 7e header data crc
(I put two random bytes in the crc field, but I think that's not a big problem since it doesn't filt out CRC-error packet.)At the mote, I read the received data in event TOS_MsgPrt 
UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the data section (0xf) in Msg.Did I make a right packet? How could I send data to base mote throught UART correctly?
Thanks!Best,Lei Tang
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread jabdo

Hi Lei,

Are u trying to send the packet to Micaz using serial Forwarder and
Broadcast Inject. If not, What format are u using to send it???
Note: 10 represents the data length right?? so I think it should be 6 and
not 10. Also, since you are sending the packet to the UART so the
destination address should be the UART address.


My best regards,

Julia



---

 Hi, all

 I am trying to send a packet from a PC to a micaZ mote through serial
 cable.
 The packet looks like:

 7e 42 ff ff 0 81 10 f f f f f f a1 21 7e
header   datacrc

 (I put two random bytes in the crc field, but I think that's not a big
 problem since it doesn't filt out CRC-error packet.)

 At the mote, I read the received data in event TOS_MsgPrt
 UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but
 Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the
 data section (0xf) in Msg.

 Did I make a right packet? How could I send data to base mote throught
 UART
 correctly?

 Thanks!

 Best,
 Lei Tang


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


[Tinyos-help] make: execvp: msp430-bsl: Permission denied on Windows

2006-06-05 Thread Andrew Hutchinson
Hello,

I've installed tinyos and all the extensions. When I compile make pc or make telosb it creates the correct files.

When I try to install I get the following error. i'm using Windows xp / cygwin 

$ make telosb installmkdir -p build/telosb compiling Blink to a telosb binaryncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--s
ection-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\Blink\ -DIDENT_USER_ID=\user\ -DIDENT_HOSTNAME=\COMPUTER\ -DIDENT_USER_HASH=0x0e7f6315L -DIDENT_UNIX_TIME=0x4484899bL -DIDENT_UID_HASH=0xca8cf0e0L -mdisab
le-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio Blink.nc -lm compiled Blink to build/telosb/main.exe 2634 bytes in ROM 40 bytes in RAMmsp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex

 writing TOS imagecp build/telosb/main.ihex build/telosb/main.ihex.out found mote on COM8 (using bsl,auto) installing telosb bootloader using bslmsp430-bsl --telosb -c 7 -r -e -I -p C:/Progra~1/cygwin/opt/tinyos-
1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihexmake: execvp: msp430-bsl: Permission deniedmake: *** [program_bl] Error 127
I'm compiling for tmote sky. My output from toscheck is as follows:


toscheck completed with errors:
-- WARNING: No avr-gcc in current path.-- WARNING: avr-gcc not found.-- WARNING: The JAVA version found first by toscheck may not be version 1.4 which is required by TOS. Please ensure that the located Java version is 
1.4Depending on your PATH environment variable, there is often a 1.2 version of java.exe in c:\windows\system32 that is seen first. Check that this is version 1.4 or reconfigure your PATH environment variable if this is the case.
-- WARNING: No uisp in current path.-- WARNING: toscheck couldn't find the uisp program. Uisp is used to program the motes. Please install uisp version 20030820tinyos which can be found in the TinyOS 
1.1.0 distribution.-- WARNING: No avr-as in current path.-- WARNING: Couldn't find avr-as. Please install avr-binutils version 2.13.2.1
I'm really stuck on this one..
Many thanks
Andrew
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


Re: [Tinyos-help] Boomerang format flash

2006-06-05 Thread Joe Polastre

You should be able to compile

/opt/tinyos-1.x/apps/TestDeluge/FormatFlash

with

make tmote

-Joe

On 6/5/06, jagan nath [EMAIL PROTECTED] wrote:

I have formatted my flash in tinyos1.x using the TEstNewFlash format
application. Now Im trying to call mount.mount in my boomerang
application. It is not mounting.
Do I need to format the flash using make tmote. but TestNewFlash
doesnt seem to be working in boomerang.
Is there any work around.

-jagan
___
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] [Tinyos Help] TinyViz

2006-06-05 Thread Marcus Phillips
Does anyone know of any replacements for tinyviz?
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Tinyos-help Digest, Vol 38, Issue 12

2006-06-05 Thread Sola Famoriyo
ldSource.makeTossimSerial(BuildSource.java:472)at
 net.tinyos.packet.BuildSource.makeArgsTossimSerial(BuildSource.java:463)at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:151)at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87)at net.tinyos.sf.SFListen.run(SFListen.java:84)SimComm: TossimInitEvent received (30 motes)... initializing system.SimComm: Pausing system for TossimInitEventCould not find a platform specific version of TOSMsgjava.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsgjava.lang.ClassNotFoundException: net.tinyos.message.avrmote.TOSMsgat java.net.URLClassLoader$1.run(URLClassLoader.java:198)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:186)at java.lang.ClassLoader.loadClass(ClassLoader.java:299)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)at java.lang.ClassLoader.loadClass(ClassLoader.java:255)at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)at java.lang.Class.forName0(Native Method)at java.lang.Class.forName(Class.java:140)at net.tinyos.message.MessageFactory.instantiateTOSMsg(MessageFactory.java:118)at net.tinyos.message.MessageFactory.createTOSMsg(MessageFactory.java:44)at net.tinyos.packet.AbstractSource.open(AbstractSource.java:81)at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)java.lang.NullPointerExceptionat net.tinyos.packet.AbstractSource.open(AbstractSource.java:82)at net.tinyos.packet.PhoenixSource.run(PhoenixSource.java:167)AUTORUN: Simulation running.-- next part --mkdir -p build/pccompiling TestTinyViz to a pc binaryncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000 -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc -fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME="TestTinyViz"
 -DIDENT_PROGRAM_NAME_BYTES="84,101,115,116,84,105,110,121,86,105,122,0" -DIDENT_USER_ID="jhemann" -DIDENT_USER_ID_BYTES="106,104,101,109,97,110,110,0" -DIDENT_HOSTNAME="DHE245-20" -DIDENT_HOSTNAME_BYTES="68,72,69,50,52,53,45,50,48,0" -DIDENT_USER_HASH=0x622543d3L -DIDENT_UNIX_TIME=0x448483abL TestTinyViz.nc -lm gcc: unrecognized option `-pthread'C:/PROGRA~1/UCBS/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function `__nesc_nido_initialise':C:/PROGRA~1/UCBS/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:724: warning: passing arg 1 of `memset' discards qualifiers from pointer target typecompiled TestTinyViz to build/pc/main.exe--Message: 2Date: Mon, 5 Jun 2006 15:45:23 -0400From: Zhengsu Gao <[EMAIL PROTECTED]>Subject: [Tinyos-help] MTS400 packet length?To:
 tinyos-help@Millennium.Berkeley.EDUMessage-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset="us-ascii"An HTML attachment was scrubbed...URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060605/749653e2/attachment-0001.html--Message: 3Date: Tue, 6 Jun 2006 01:15:44 +0530From: "jagan nath" <[EMAIL PROTECTED]>Subject: [Tinyos-help] Boomerang format flashTo: tinyos-help@millennium.berkeley.eduMessage-ID:[EMAIL PROTECTED]Content-Type: text/plain; charset=ISO-8859-1; format=flowedI have formatted my flash in tinyos1.x using the TEstNewFlash formatapplication. Now Im trying to call mount.mount in my boomerangapplication. It is not mounting.Do I need to format the flash using "make tmote". but TestNewFlashdoesnt seem to
 be working in boomerang.Is there any work around.-jagan--Message: 4Date: Mon, 5 Jun 2006 15:53:05 -0400 (EDT)From: [EMAIL PROTECTED]Subject: [Tinyos-help] Re: Packet format from PC to base mote throughUARTTo: tinyos-help@Millennium.Berkeley.EDUCc: [EMAIL PROTECTED]Message-ID: [EMAIL PROTECTED]Content-Type: text/plain;charset=iso-8859-1Hi Lei,Are u trying to send the packet to Micaz using serial Forwarder andBroadcast Inject. If not, What format are u using to send it???Note: 10 represents the data length right?? so I think it should be 6 andnot 10. Also, since you are sending the packet to the UART so thedestination address should be the UART address.My best regards,Julia--- Hi,
 all I am trying to send a packet from a PC to a micaZ mote through serial cable. The packet looks like: 7e 42 ff ff 0 81 10 f f f f f f a1 21 7e header data crc (I put two random bytes in the crc field, but I think that's not a big problem since it doesn't filt out CRC-error packet.) At the mote, I read the received data in event TOS_MsgPrt UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the data section (0xf) in Msg. Did I make a right packet? How could I send data to base mote throught UART correctly? Thanks! Best, Lei Tang--Messa

[Tinyos-help] help

2006-06-05 Thread Sola Famoriyo
hello all,  i am very new to tinyos and i need to get some fundamental knowledge. Sorry my question may seem like that of a novice, but i need help. i just installed tiny OS, but i would like to know how i can port it to an Atmega128 microprocessor. what i'm i expected to get as output if succesful. What features do i see in the output, can i make any changes to observe any kind of differences in my alterations.  thanks, help the soul that searches for knowledge.[EMAIL PROTECTED] wrote:  Send Tinyos-help mailing list submissions totinyos-help@Millennium.Berkeley.EDUTo subscribe or unsubscribe via the World Wide Web, visithttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-helpor, via email, send a message with subject or body 'help'
 to[EMAIL PROTECTED]You can reach the person managing the list at[EMAIL PROTECTED]When replying, please edit your Subject line so it is more specificthan "Re: Contents of Tinyos-help digest..."Today's Topics:1. S-MAC : How to wire it ? (bhushan bhatt)2. timing (Roberto)3. Re: question on simple_transmit from Rfm_model.c (Liu Haibin)4. "Programmer is not responding" problem with MIB510(Tsenka Stoyanova)5. RE: "Programmer is not responding" problem with MIB510(Siirtola Harri)6. help regarding TPSN (Prakshep Mehta)--Message: 1Date: Sun, 4 Jun 2006 18:27:20 -0700 (PDT)From: bhushan bhatt <[EMAIL PROTECTED]>Subject: [Tinyos-help] S-MAC : How to wire it ?To: tinyos-help@millennium.berkeley.eduMessage-ID:
 [EMAIL PROTECTED]Content-Type: text/plain; charset="iso-8859-1"Hi all,I want to implement RTS-CTS and so i want my programs to use SMAC instead of the normal MAC ( I guess its BMAC ) which most of the programs use. Any idea how should i wire all the components and use SMAC with my programs Thanks in advance,Bhushan-Do you Yahoo!?Get on board. You're invited to try the new Yahoo! Mail Beta.-- next part --An HTML attachment was scrubbed...URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060604/56dc1c59/attachment.htm--Message: 2Date: Mon, 05 Jun 2006 07:46:56 +From: Roberto <[EMAIL PROTECTED]>Subject: [Tinyos-help] timingTo: tinyos-help@millennium.berkeley.eduMessage-ID:
 [EMAIL PROTECTED]Content-Type: text/plain; charset=ISO-8859-15hi All,I'm using simpleTime component with Time and TimeUtils interfaces. Is itpossible to measure time intervals less then 30ms? Under this timedifference I can get no measures.thank youroberto--Message: 3Date: Mon, 5 Jun 2006 18:04:10 +0800From: "Liu Haibin" <[EMAIL PROTECTED]>Subject: [Tinyos-help] Re: question on simple_transmit fromRfm_model.cTo: tinyos-help@millennium.berkeley.eduMessage-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset="iso-8859-1"For example, let's say we have 2 motes. Mote 0 is transmitting 0s all thetime, so transmitting[5] = 0, radio_active[0] = 0, and radio_active[1] = 0.While mote 0 is transmitting 0s, the TOSH_rfm_rx_bit() inTOS_SIGNAL_HANDLER(SIG_OUTPUT_COMPARE2B,
 ()) of mote 1 is called. Andbecause radio_active[1] == 0, TOSH_rfm_rx_bit() returns 0. After 12 bits, itsignal ChannelMon.idleDetect() to show the channel is free. But actuallymote 0 is using the channel and transmitting 0s.Why is it so? Any help is appreciated.Regards,HaibinOn 6/2/06, Liu Haibin <[EMAIL PROTECTED]>wrote: Hi, I have a question about the following code from Rfm_model.c. The parameter bit can be 1 or 0. When simple_trasmit is transmitting bit 1, transmitting[modeID] is set to 1, meaning it's transmitting. However, when simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0, meaning it's not transmitting (actually it's transmitting bit 0). Why is it so? I must have the concept wrong. Could any help me on this? void simple_transmit(int moteID, char bit) { int i;
 transmitting[moteID] = bit; for (i = 0; i  tos_state.num_nodes; i++) { radio_active[i] += bit; } } Regards, Haibin-- next part --An HTML attachment was scrubbed...URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060605/157e2afc/attachment-0001.html--Message: 4Date: Mon, 5 Jun 2006 14:12:37 +0300From: "Tsenka Stoyanova" <[EMAIL PROTECTED]>Subject: [Tinyos-help] "Programmer is not responding" problem withMIB510To: <TINYOS-HELP@MILLENNIUM.BERKELEY.EDU>Message-ID: [EMAIL PROTECTED]Content-Type: text/plain; format=flowed; charset="iso-8859-1";reply-type=originalHi all,We have problem with our MIB510, and I think it is not matter of syntax in writing the command in the bash shell. We will appreciate
 if somebody has suggestions.We have a MICA mote kit (the professional one) consisting of a programmer MIB510 and some motes (mica2 and mic

Re: [Tinyos-help] help

2006-06-05 Thread Michael Schippling

The mica2 and micaz _are_ Atmega128's so no porting should be necessary.
Or do you want to run TOS on your own '128 board? If so, then I'd guess
that anything that doesn't use the radio or EEPROM chips would work
pretty straightforwardly. You'd need to compare the schematics to
see if there are any gotcha's. The mica2 is at:

http://www.tinyos.net/scoop/special/hardware


MS


Sola Famoriyo wrote:

hello all,
i am very new to tinyos and i need to get some fundamental knowledge. 
Sorry my question may seem like that of a novice, but i need help. i 
just installed tiny OS, but i would like to know how i can port it to an 
Atmega128 microprocessor. what i'm i expected to get as output if 
succesful. What features do i see in the output, can i make any changes 
to observe any kind of differences in my alterations.

thanks, help the soul that searches for knowledge.



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


Re: [Tinyos-help] MTS400 packet length?

2006-06-05 Thread Michael Schippling

You may be seeing an 'escape' char that preceeds a 0x7d (I think
that's the value that's escaped). See this for details:
http://weblog.cs.uiowa.edu/294s05-project/uart/slides/deciphering-serial-packets.pdf
MS

Zhengsu Gao wrote:

Hi, All:

   Can anyone help me with the the xbow MTS400 problem. When I 
receive the packet, the packet length is changing, sometimes is 40 bytes 
and sometimes is 39 bytes. I found a dump(0xd5) byte is inserted in to 
message? Can anyone tell me how to make the packet to be accordance, not 
changing the length? Thank you.


 


Zhengsu




___
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] modification on TOSBase and show them on Xlisten

2006-06-05 Thread Xing Jin
Hi ,   I am collecting data info using XSensorMDA500 on 3 different mote nodes and send them to a base station. And on base staion , I changed the TOSBase to calculate the average value of each three. Butthe averagecan not been successfully gotten and shownthrought Xlisten.Take temerature forexample,mythought is just pick thethermistor value ofeach packet and add three of them together and get 1/3 of the sum. Is this a correct way to get the average value of temperature?However, what I care more is how to display the average value continously on the pc? I set a index which range from 0~2 and make it return to 0 after it arrives at 2. Everytime ,when it is 2, call the UARTSend to send the info. But it can not get info to display through Xlisten.  Can anyone give me some hint?I appreciate it very much. 
  Xing Jin  __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://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Neighbor List

2006-06-05 Thread Keyan Mahadevan
Hi,
I was wondering whether there are any modules that create the neighbor list and can be accessed.
Thanks
Kn
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Lei Tang
Hi, JuliaThanks for your reply.I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes.My steps:Firstly, I created a data file with TOS_Msg type; then the application read it and sent data to the base mote through serial port; I programmed the base mote with TOSBase, and tried to check received data in event 
UARTReveive.receive.Yes, you are right; the length should be 6. But I'm not sure if the address should be 0x007e, since I'm trying to send data FROM PC TO MOTE through UART. Anyway, even when I changed the two fields, Msg-data is still not correct.
I read SimpleCmdM.nc, which is used when injecting packets (Lesson 7 in Tinyos tutorial). It seems that the received data is also TOS_Msg type (see task void cmdInterpret). I'm really confused.
Thanks a lot.Best,LeiOn 6/5/06, 
[EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:Hi Lei,Are u trying to send the packet to Micaz using serial Forwarder and
Broadcast Inject. If not, What format are u using to send it???Note: 10 represents the data length right?? so I think it should be 6 andnot 10. Also, since you are sending the packet to the UART so thedestination address should be the UART address.
My best regards,Julia--- Hi, all I am trying to send a packet from a PC to a micaZ mote through serial
 cable. The packet looks like: 7e 42 ff ff 0 81 10 f f f f f f a1 21 7eheader datacrc (I put two random bytes in the crc field, but I think that's not a big
 problem since it doesn't filt out CRC-error packet.) At the mote, I read the received data in event TOS_MsgPrt UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see the
 data section (0xf) in Msg. Did I make a right packet? How could I send data to base mote throught UART correctly? Thanks! Best, Lei Tang



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


Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Sankar Gorthi

Lei,

you're actually right.

You need to write to the 7E address.

Try sending this message:

7E42 7D5E  7D5D 05AA 0744 0811 3840 7E

Sankar.



On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang [EMAIL PROTECTED] wrote:


Hi, Julia

Thanks for your reply.

I was using a general serial-port application to send data to the mote,
because I want to have my own application to control motes.

My steps:
Firstly, I created a data file with TOS_Msg type; then the application  
read
it and sent data to the base mote through serial port; I programmed the  
base

mote with TOSBase, and tried to check received data in event
UARTReveive.receive.

Yes, you are right; the length should be 6. But I'm not sure if the  
address

should be 0x007e, since I'm trying to send data FROM PC TO MOTE through
UART. Anyway, even when I changed the two fields, Msg-data is still not
correct.

I read SimpleCmdM.nc, which is used when injecting packets (Lesson 7 in
Tinyos tutorial). It seems that the received data is also TOS_Msg type
(see task
void cmdInterpret). I'm really confused.

Thanks a lot.

Best,
Lei

On 6/5/06, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:



Hi Lei,

Are u trying to send the packet to Micaz using serial Forwarder and
Broadcast Inject. If not, What format are u using to send it???
Note: 10 represents the data length right?? so I think it should be 6  
and

not 10. Also, since you are sending the packet to the UART so the
destination address should be the UART address.


My best regards,

Julia



---

 Hi, all

 I am trying to send a packet from a PC to a micaZ mote through serial
 cable.
 The packet looks like:

 7e 42 ff ff 0 81 10 f f f f f f a1 21 7e
header   datacrc

 (I put two random bytes in the crc field, but I think that's not a big
 problem since it doesn't filt out CRC-error packet.)

 At the mote, I read the received data in event TOS_MsgPrt
 UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but
 Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see
the
 data section (0xf) in Msg.

 Did I make a right packet? How could I send data to base mote throught
 UART
 correctly?

 Thanks!

 Best,
 Lei Tang







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


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


[Tinyos-help] RSSI strength

2006-06-05 Thread Rajat Bansal


I am trying to print RSSI strength in the recieved broadcast packet. First 
i was trying to access in tinyos-1.0 but i came to know that it is not 
possible in this version. I upload my tinyos to 1.15 but i am getting the 
value as zero only. Has ne one else came thru similar problem?


-rajat

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


Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Sankar Gorthi
of course, i'm assuming you're using a windows based PC and are using a  
generic serial port access software (MATLAB, java etc.) to write to the  
serial port.


Sankar.

On Mon, 05 Jun 2006 23:35:30 -0500, Sankar Gorthi  
[EMAIL PROTECTED] wrote:



Lei,

you're actually right.

You need to write to the 7E address.

Try sending this message:

7E42 7D5E  7D5D 05AA 0744 0811 3840 7E

Sankar.



On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang [EMAIL PROTECTED] wrote:


Hi, Julia

Thanks for your reply.

I was using a general serial-port application to send data to the mote,
because I want to have my own application to control motes.

My steps:
Firstly, I created a data file with TOS_Msg type; then the application  
read
it and sent data to the base mote through serial port; I programmed the  
base

mote with TOSBase, and tried to check received data in event
UARTReveive.receive.

Yes, you are right; the length should be 6. But I'm not sure if the  
address

should be 0x007e, since I'm trying to send data FROM PC TO MOTE through
UART. Anyway, even when I changed the two fields, Msg-data is still not
correct.

I read SimpleCmdM.nc, which is used when injecting packets (Lesson 7 in
Tinyos tutorial). It seems that the received data is also TOS_Msg type
(see task
void cmdInterpret). I'm really confused.

Thanks a lot.

Best,
Lei

On 6/5/06, [EMAIL PROTECTED]  [EMAIL PROTECTED] wrote:



Hi Lei,

Are u trying to send the packet to Micaz using serial Forwarder and
Broadcast Inject. If not, What format are u using to send it???
Note: 10 represents the data length right?? so I think it should be 6  
and

not 10. Also, since you are sending the packet to the UART so the
destination address should be the UART address.


My best regards,

Julia



---

 Hi, all

 I am trying to send a packet from a PC to a micaZ mote through serial
 cable.
 The packet looks like:

 7e 42 ff ff 0 81 10 f f f f f f a1 21 7e
header   datacrc

 (I put two random bytes in the crc field, but I think that's not a  
big

 problem since it doesn't filt out CRC-error packet.)

 At the mote, I read the received data in event TOS_MsgPrt
 UARTReveive.receive(TOS_MsgPrt Msg) {}. The header is correct, but
 Msg-data[0] is always the last CRC byte, here 0x21, and I didn't see
the
 data section (0xf) in Msg.

 Did I make a right packet? How could I send data to base mote  
throught

 UART
 correctly?

 Thanks!

 Best,
 Lei Tang











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


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


Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi

i was able to get it. what seems to be the problem?

all i did was access the message-strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED]  
wrote:




I am trying to print RSSI strength in the recieved broadcast packet.  
First i was trying to access in tinyos-1.0 but i came to know that it is  
not possible in this version. I upload my tinyos to 1.15 but i am  
getting the value as zero only. Has ne one else came thru similar  
problem?


-rajat

___
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


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


Re: [Tinyos-help] Need help for VM

2006-06-05 Thread Philip Levis

On May 30, 2006, at 7:07 PM, Joe Polastre wrote:


Phil Levis can correct me on this, but Phil's ASVM (Mate) runs on
Tmote Sky from Moteiv (my company, www.moteiv.com).


It runs on both the mica (mica, mica2, micaZ) and telos (Telos revA,  
Telos revB, and TMote) families. When compiling for the Telos revA  
you have to follow a slightly different build process due to its RAM  
limitations, revB and TMote are no problem. There is support for the  
basic mica sensor board (light/temp), the mica sensor board (the one  
with the sounder, accelerometers, magnetometer, etc.), and the Telos  
sensors.


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


Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Michael Schippling

By the use of print I think you may be trying to get the strength
on the host PC? If so, it ain't there. It's only available in the
TOS_Msg structs on the mote end of the world, and is not passed
over the UART to the host.

Search back on this list for RSSI discussions.
MS


Rajat Bansal wrote:


I am trying to print RSSI strength in the recieved broadcast packet. 
First i was trying to access in tinyos-1.0 but i came to know that it is 
not possible in this version. I upload my tinyos to 1.15 but i am 
getting the value as zero only. Has ne one else came thru similar problem?


-rajat

___
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] RSSI strength

2006-06-05 Thread Rajat Bansal

dear sanskar,

1) which version of tinyos did u use?

2) i am attaching my code for recieved packet.

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {

 TOS_MsgPtr ret = m;
 IntMsgnew*message = (IntMsgnew *)m-data;
   atomic{receivednode=message-src;}
 //  call ADC.getData();
 //  call ADCBattery.getData();
   updateNeighbors(message-src,message-val,message-seqNo);
 dbg(DBG_USR1,strength %d,m-strength); -- this is how i am trying 
to access...

//  printNeighbors();
call Leds.redToggle();
ret = m;

this is a simple code i have written for recieved packet..i dont know wat 
seems to be the problem. can u make out some mistake?


-rajat


On Mon, 5 Jun 2006, Sankar Gorthi wrote:


i was able to get it. what seems to be the problem?

all i did was access the message-strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED] wrote:



I am trying to print RSSI strength in the recieved broadcast packet. First 
i was trying to access in tinyos-1.0 but i came to know that it is not 
possible in this version. I upload my tinyos to 1.15 but i am getting the 
value as zero only. Has ne one else came thru similar problem?


-rajat

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







--
*
*  Physics is like sex: sure, it may give some practical results, but  *
*   that's not why we do it.		- Richard Feynman.  * 
*  			*

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


Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi

well,

this is my (a colleague's) code:

Receive.receive(TOS_MsgPtr m)
IntMsg *message=(IntMsg*)buffer.data;
message-val=m-strength;


doesn't look too different.

although our experiments were done on the actual motes and we broadcast  
the value in a message packet as you can see.


Sankar.

On Tue, 06 Jun 2006 00:11:29 -0500, Rajat Bansal [EMAIL PROTECTED]  
wrote:



dear sanskar,

1) which version of tinyos did u use?

2) i am attaching my code for recieved packet.

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {

  TOS_MsgPtr ret = m;
  IntMsgnew*message = (IntMsgnew *)m-data;
atomic{receivednode=message-src;}
  //  call ADC.getData();
  //  call ADCBattery.getData();
updateNeighbors(message-src,message-val,message-seqNo);
  dbg(DBG_USR1,strength %d,m-strength); -- this is how i am  
trying to access...

 //  printNeighbors();
 call Leds.redToggle();
 ret = m;

this is a simple code i have written for recieved packet..i dont know  
wat seems to be the problem. can u make out some mistake?


-rajat


On Mon, 5 Jun 2006, Sankar Gorthi wrote:


i was able to get it. what seems to be the problem?

all i did was access the message-strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED]  
wrote:


 I am trying to print RSSI strength in the recieved broadcast packet.  
First i was trying to access in tinyos-1.0 but i came to know that it  
is not possible in this version. I upload my tinyos to 1.15 but i am  
getting the value as zero only. Has ne one else came thru similar  
problem?

 -rajat
 ___
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


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


Re: [Tinyos-help] RSSI strength

2006-06-05 Thread Sankar Gorthi

and oh - tinyos-1.1.0

Sankar.


On Tue, 06 Jun 2006 00:20:08 -0500, Sankar Gorthi  
[EMAIL PROTECTED] wrote:



well,

this is my (a colleague's) code:

Receive.receive(TOS_MsgPtr m)
IntMsg *message=(IntMsg*)buffer.data;
message-val=m-strength;


doesn't look too different.

although our experiments were done on the actual motes and we broadcast  
the value in a message packet as you can see.


Sankar.

On Tue, 06 Jun 2006 00:11:29 -0500, Rajat Bansal [EMAIL PROTECTED]  
wrote:



dear sanskar,

1) which version of tinyos did u use?

2) i am attaching my code for recieved packet.

event TOS_MsgPtr ReceiveIntMsg.receive(TOS_MsgPtr m) {

  TOS_MsgPtr ret = m;
  IntMsgnew*message = (IntMsgnew *)m-data;
atomic{receivednode=message-src;}
  //  call ADC.getData();
  //  call ADCBattery.getData();
updateNeighbors(message-src,message-val,message-seqNo);
  dbg(DBG_USR1,strength %d,m-strength); -- this is how i am  
trying to access...

 //  printNeighbors();
 call Leds.redToggle();
 ret = m;

this is a simple code i have written for recieved packet..i dont know  
wat seems to be the problem. can u make out some mistake?


-rajat


On Mon, 5 Jun 2006, Sankar Gorthi wrote:


i was able to get it. what seems to be the problem?

all i did was access the message-strength value.

Sankar.

On Mon, 05 Jun 2006 23:33:52 -0500, Rajat Bansal [EMAIL PROTECTED]  
wrote:


 I am trying to print RSSI strength in the recieved broadcast packet.  
First i was trying to access in tinyos-1.0 but i came to know that it  
is not possible in this version. I upload my tinyos to 1.15 but i am  
getting the value as zero only. Has ne one else came thru similar  
problem?

 -rajat
 ___
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


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