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 to
tinyos-help@Millennium.Berkeley.EDU

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

or, 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 specific
than "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: 1
Date: 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.edu
Message-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: 2
Date: Mon, 05 Jun 2006 07:46:56 +0000
From: Roberto <[EMAIL PROTECTED]>
Subject: [Tinyos-help] timing
To: tinyos-help@millennium.berkeley.edu
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-15

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



------------------------------

Message: 3
Date: Mon, 5 Jun 2006 18:04:10 +0800
From: "Liu Haibin" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] Re: question on simple_transmit from
Rfm_model.c
To: tinyos-help@millennium.berkeley.edu
Message-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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060605/157e2afc/attachment-0001.html

------------------------------

Message: 4
Date: Mon, 5 Jun 2006 14:12:37 +0300
From: "Tsenka Stoyanova" <[EMAIL PROTECTED]>
Subject: [Tinyos-help] "Programmer is not responding" problem with
MIB510
To:
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=original

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=100000
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
--------------------------------------------------



------------------------------

Message: 5
Date: Mon, 5 Jun 2006 14:53:41 +0300
From: "Siirtola Harri" <[EMAIL PROTECTED]>
Subject: RE: [Tinyos-help] "Programmer is not responding" problem with
MIB510
To: "Tsenka Stoyanova" <[EMAIL PROTECTED]>,

Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

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=100000
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



------------------------------

Message: 6
Date: Mon, 05 Jun 2006 20:19:17 +0530
From: Prakshep Mehta <[EMAIL PROTECTED]>
Subject: [Tinyos-help] help regarding TPSN
To: tinyos-help@Millennium.Berkeley.EDU
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

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 `int'
/opt/tinyos-1.x/tos/system/HPLSClock.nc: In function `TOSH_INTERRUPT':
/opt/tinyos-1.x/tos/system/HPLSClock.nc:129: `TCNT3' undeclared (first
use in this function)
make: *** [build/pc/main.exe] Error 1
[EMAIL PROTECTED] TestTPSN]#

From the above error and trying to understand the code, I guess that
ETIMSK,OCIE3A,COM3A0,DDE3,ETIFR,
OCF3A,TCCR3B,TCNT3,OCR3A,TCCR3A,DDRE,TCCR3C are some constant or
variables which are declared/defined in a separate file and that file is
not included in the source package which i downloaded from the link:

http://www.ee.ucla.edu/~saurabh/time_synchronization/NesC-TPSNsync-1.1.zip

I will be thankful if you can help me solving this error as it is very
important for my project. I really appreciate the work you people have
done.

Thanks and regards,
Prakshep Mehta



------------------------------

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


End of Tinyos-help Digest, Vol 38, Issue 10
*******************************************


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1ยข/min.
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to