Re: [Tinyos-help] How to get the node-id just by Mote?

2006-12-20 Thread

Hi:

Thank you very much .That works well ,you get it!
What i want is that , so Thank you so much!


Jiang Wei


2006/12/19, Urs Hunkeler <[EMAIL PROTECTED]>:


Hi Jiang,

I'm not sure what the proper way is on TinyOS-1.x. I checked in my old
code and saw that I used TOS_LOCAL_ADDRESS. So probably something like:

if(TOS_LOCAL_ADDRESS == 0) {
  // do something special for the root node
}

should work.

cu
Urs


> Hi:
>
> I try to do as you say ,but seems the TOS_NODE_ID only works in Tinyos
> 2.xor Mica platform, but not works in Tinyos
> 1.x, so if you know , could you tell me what was the parameter in
> Tinyos 1.xon Telos platform ?
> Thank you anyway.
>
> Jiang Wei





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

[Tinyos-help] How to get the node-id just by Mote?

2006-12-14 Thread

Hi:

I am now working with the SurgeTelos application .And I know that the PC can
set the Node ID ,and when we
use the application , I can see the information by the Node-id.
But that was just done by PC decoding the SurgeMsg package.
How to do this thing just by mote?
Thank you.

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

[Tinyos-help] I get the error message like this :undefined reference to `main'

2006-12-12 Thread

Hi:

everyone, i compile one modified MICA2 program to Telosb platform to use it.
But when i compile it ,i get the error message like this:

If there is someone could help ,i will appreciate that very much.
Thank you ,everyone.



***
$ make telosb
mkdir -p build/telosb
   compiling Rtp to a telosb binary
ncc -o build/telosb/main.exe -O -I%T/lib/Route -I%T/lib/Queue
-I%T/lib/Broadcast
-Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb
-fnesc-cfile=b
uild/telosb/app.c -board=telosb -I%T/lib/Deluge
-Wl,--section-start=.text=0x4800
,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\"Rtp\"
-DIDENT_USER_ID=\"
demowolf\" -DIDENT_HOSTNAME=\"jiangwei\" -DIDENT_USER_HASH=0x343d49acL
-DIDENT_U
NIX_TIME=0x457f8510L -DIDENT_UID_HASH=0x5c92647cL -mdisable-hwmul
-I/opt/tinyos-
1.x/tos/lib/CC2420Radio Rtp.nc  -lm
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/lib/CC2420Radio/CC2420RadioM.nc:116:
w
arning: `Send.sendDone' called asynchronously from `sendFailed'
/usr/local/mspgcc/lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_reset_vector__.o)(.ini
t+0x38): In function `_reset_vector__':
/home/Cory/tinyos/tinyos- 1.x/tools/src/mspgcc/build/gcc-3.2.3
/gcc/config/msp430/
libgcc.S: undefined reference to `main'
make: *** [exe0] Error 1





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

[Tinyos-help] Is anyone used the RtpM program?

2006-12-11 Thread

Hi:

Recently i have read many books about the Reliable Transmit Protocol , and I
also download the program
in  this place http://www.iit.edu/~kwonyou2/cs/rtp/  . But his code seems
hard to use .And i still don't
know how does it works. Is there anyone have the experience ?If so ,please
tell me .
Thank you very much.

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

[Tinyos-help] Can anyone have the program send data to MOTE from PC?

2006-12-11 Thread

Hi:

Can anyone have the program send data to MOTE from PC?
I see some program in TINYOS 1.1.15, they all use the command like this,
for example:

if PC want MOTE to do something ,they define CommandA as 1 in PC
they also define " 1 " as CommandA.
So tinyos can only send CMD messages , But it cannot send the data.
Could anyone help me to do it ?
Thanks anyway.


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

[Tinyos-help] TOPIC : Can PC send data to MOTE?

2006-12-06 Thread

Hello,

TOPIC : Can PC send data to MOTE?
I write to you to ask is there someone know something about TINYOS Mote. I
see SurgeTelos and some other programs ,and I found that PC cann't send data
to mote.
Am I right?
If not, could you tell me how to do it ? And with which program can do it?

Thanks anyway .
Best wishes...

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

[Tinyos-help] How to use Surge.nc to communication?

2006-09-15 Thread
Hi:
 
I am trying to modify these command to commucation with motes.
 
1.  in  tinyos-1.x/contrib/ucb/surgetelos   make this install
net.tinyos.sf.SerialForwarder 
net.tinyos.surge.MainClass 0x7d
 
this JAVA application seems not works well in control the mote.
when i press the button "control panel" ,nothing has happened.
 
can anyone help me to modify Surge.nc  SurgeM.nc and MainClass ?
 
Thanks anyway 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] problem

2006-08-30 Thread
Hi:
 
I think i have get a problem with this.Can you tell me why and how to deal with the matter?Thank you .
 
 
 
$ make telosbmkdir -p build/telosb    compiling SimpleCmd 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=\"SimpleCmd\" -DIDENT_USER_ID=\"demowolf\" -DIDENT_HOSTNAME=\"JIANGWEI\" -DIDENT_USER_HASH=0x33b657c2L -DIDENT_UNIX_TIME=0x44f5ae79L -DIDENT_UID_HASH=0x6ffbf88dL
 -mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio SimpleCmd.nc -lmC:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/PotC.nc:90: component HPLPotC not foundC:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/system/PotC.nc:93: no match
make: *** [exe0] Error 1
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] some problem want you to help fix it

2006-08-22 Thread
I have gotten the Blink application to compile however, there seem tobe errors when I try to programm the mote.  I get[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink$ make telosbmkdir -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,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\
"Blink\" -DIDENT_USER_ID=\"Deepa\" -DIDENT_HOSTNAME=\"Deepa\" -DIDENT_USER_HASH=0xad5155b2L -DIDENT_UNIX_TIME=0x442381b4L -DIDENT_UID_HASH=0xb2d9ecb3L -mdisable-hwmul -IC:/cygwin/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 image[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink$ 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-al
l -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge -Wl,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\"Blink\" -DIDENT_USER_ID=\"Deepa\" -DIDENT_HOSTNAME=\"Deepa\" -DIDENT_USER_HASH=
0xad5155b2L -DIDENT_UNIX_TIME=0x442381cdL -DIDENT_UID_HASH=0x53e607f0L -mdisable-hwmul -IC:/cygwin/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 COM4 (using bsl,auto)    installing telosb bootloader using bsltos-bsl --telosb -c 3 -r -e -I -p C:/cygwin/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihexMSP430 Bootstrap Loader Version: 
1.39-telos-8Mass Erase...An error occoured:Timeoutmake: *** [program_bl] Error 1Any ideas?can you tell me how to deal with it?thank you .
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] some problem want you to help fix it

2006-08-21 Thread

I have gotten the Blink application to compile however, there seem tobe errors when I try to programm the mote.  I get[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink$ make telosbmkdir -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,--section-start=.text=0x4800,--defsym=_reset_vector__=0x4000 -DIDENT_PROGRAM_NAME=\ 
"Blink\" -DIDENT_USER_ID=\"Deepa\" -DIDENT_HOSTNAME=\"Deepa\" -DIDENT_USER_HASH=0xad5155b2L -DIDENT_UNIX_TIME=0x442381b4L -DIDENT_UID_HASH=0xb2d9ecb3L -mdisable-hwmul -IC:/cygwin/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 image[EMAIL PROTECTED] /cygdrive/c/cygwin/tinyos-1.x/apps/Blink$ make telosb install
mkdir -p build/telosb    compiling Blink to a telosb binaryncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-al l -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=\"Deepa\" -DIDENT_HOSTNAME=\"Deepa\" -DIDENT_USER_HASH= 0xad5155b2L -DIDENT_UNIX_TIME=0x442381cdL -DIDENT_UID_HASH=0x53e607f0L -mdisable
-hwmul -IC:/cygwin/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 COM4 (using bsl,auto)
    installing telosb bootloader using bsltos-bsl --telosb -c 3 -r -e -I -p C:/cygwin/tinyos-1.x/tos/lib/Deluge/TOSBoot/build/telosb/main.ihexMSP430 Bootstrap Loader Version: 1.39-telos-8Mass Erase...
An error occoured:Timeoutmake: *** [program_bl] Error 1Any ideas?can you tell me how to deal with it?thank you . 
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help