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

Muthiah Annamalai muthus_post at yahoo.com
Fri Jun 2 12:53:55 PDT 2006


Johnson,
  I did an implementation of Haar transform joint-encoders using a similar architecture
  you have in mind. 
   
  I used (for sensor nodes) address 1,2 with 2 (tx->) 1 using its address in the sendmessage command as 1. Then 1 would combine the data with its own & 
  generate LP & HP coefficients and send them out to the BS via broadcast.
   
  I dont think its much of an issue.  Our team is in process of releasing the code.
  Cheers
  Muthu
   
  >Hi
 >
>I would like to ask if its possible to do multihop without using 
>broadcasting. For example I have 2 remote motes both responsible for 
>collecting datas and sending it to a base station. Mote 1 can do a direct 
>communciation with the base station while mote 2 needs to relay the data 
>thru mote 1 to reach the base station. How should i go about to do it? 
> 
>Regards
>Johnson


tinyos-help-request at Millennium.Berkeley.EDU wrote:
  Send Tinyos-help mailing list submissions to
tinyos-help at 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
tinyos-help-request at Millennium.Berkeley.EDU

You can reach the person managing the list at
tinyos-help-owner at Millennium.Berkeley.EDU

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinyos-help digest..."


Today's Topics:

1. Re: problems with nesc-topdir option ( Daniel Vill?n )
2. Is this a bug in Moteiv Boomerang MultiHop? (Adam)
3. Re: GlobalTime in Tmote from Moteiv (Joe Polastre)
4. Re: Is this a bug in Moteiv Boomerang MultiHop? (Joe Polastre)
5. Help on multihop (#NG YEONG SHENG,JOHNSON#)
6. question on simple_transmit from Rfm_model.c (Liu Haibin)
7. Boomerang UART0 Sample (J?rgen Johansson)
8. Re: Boomerang UART0 Sample (Joe Polastre)


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

Message: 1
Date: Thu, 1 Jun 2006 23:17:31 +0200
From: " Daniel Vill?n " 
Subject: Re: [Tinyos-help] problems with nesc-topdir option
To: "David Gay" 
Cc: "tinyos-help at Millennium.Berkeley.EDU"

Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

Now I know it gives problems... anyway I couldn't do anything because it
takes mi user name from my windows instalation and now I can't change it...
the thing is, what can I do?

On 6/1/06, David Gay wrote:
>
> On 6/1/06, Daniel Villón wrote:
> > I just had the weirdest problem... I have just move all my work from my
> job
> > PC to my home PC which have a diferent user name. When I tryed to do the
> > "make docs" sentence I had this error which seems to be a problem of
> having
> > a space in my user name. I have tryed to change the name of home/Daniel
> V
> > folder, but when I start the cygwin again, a new folder is created with
> the
> > "Daniel V" name. It's only a "make docs" problem, because when I try to
> do a
> > "make" everything goes OK. ( the Nxv1=1 is just a makefile option to
> select
> > the file it is going to compile). In my job I don't have this problem
> > because it is daniel at something ----------> no space anywhere
>
> Don't use directories with spaces in them. You'll run into lots of
> problems with many unix tools, scripts, etc (yes, they are notionally
> bugs, but there's too many of them ;-)).
>
> David Gay
>



-- 
Daniel Villón V.
-----------------------------------------------------------
Departamento de Ingeniería Telemática.
Universitat Politècnica de Catalunya
-----------------------------------------------------------
C/. Jordi Girona 1-3
Modulo C3 Laboratorio 003
Barcelona CP 08034, España
Teléfono: +34 93 289 36 71
Celular: +34 697 91 43 53
e-mail: dvil1541 at alu-etsetb.upc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060601/e5ee1b4d/attachment-0001.html

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

Message: 2
Date: Thu, 1 Jun 2006 15:13:18 -0700
From: "Adam" 
Subject: [Tinyos-help] Is this a bug in Moteiv Boomerang MultiHop?
To: "'TinyOS Help'" 
Message-ID: <447f65b6.2ea5c682.53ff.6d62 at mx.gmail.com>
Content-Type: text/plain; charset="us-ascii"

In selectParent() function of MultihopLQIM.nc, is the following line a bug?
if (parents[i].cost + parents[i].estimate < newparent) {

Should "newparent" be "parentestimate" ??
=======================

void selectParent() {
int i;
int newparent = m_parent;
uint16_t parentestimate = parents[m_parent].cost +
parents[m_parent].estimate;

// if our parent is invalid, pick the best parent
if (parents[m_parent].addr == MHOP_INVALID_PARENT) {
for (i = 0; i < MHOP_PARENT_SIZE; i++) {
if (parents[i].cost + parents[i].estimate < newparent) {
newparent = i;
parentestimate = parents[i].cost + parents[i].estimate;
}
}
}
// if we have a parent, don't switch unless they're worthwhile
else {
for (i = 0; i < MHOP_PARENT_SIZE; i++) {
if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate)
<
((uint32_t) parentestimate) -
(((uint32_t) parentestimate) >> 2)) {
newparent = i;
parentestimate = parents[i].cost + parents[i].estimate;
}
}
}
m_parent = newparent;
}



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

Message: 3
Date: Thu, 1 Jun 2006 21:20:57 -0700
From: "Joe Polastre" 
Subject: Re: [Tinyos-help] GlobalTime in Tmote from Moteiv
To: " J?rgen Johansson " 
Cc: tinyos-help at millennium.berkeley.edu
Message-ID:
<1edd46e70606012120w485f02d6iab44119537cd45ba at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

> How synchronized (us) is GlobalTime in different nodes?

About 100us across the network.

> Is it possible to get an event e.g. once a second from GlobalTime?

No. It is a very simple process to use the GlobalTime interface to
acquire the current time and then set an Alarm or Timer by translating
from GlobalTime to LocalTime and using the t0 and dt parameters of the
Alarm and Timer interfaces.

-Joe


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

Message: 4
Date: Thu, 1 Jun 2006 21:27:08 -0700
From: "Joe Polastre" 
Subject: Re: [Tinyos-help] Is this a bug in Moteiv Boomerang MultiHop?
To: Adam 
Cc: TinyOS Help 
Message-ID:
<1edd46e70606012127ibd1129dt5c64c979b75f058b at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

You are correct, thank you for pointing it out.

-Joe

On 6/1/06, Adam wrote:
> In selectParent() function of MultihopLQIM.nc, is the following line a bug?
> if (parents[i].cost + parents[i].estimate < newparent) {
>
> Should "newparent" be "parentestimate" ??
> =======================
>
> void selectParent() {
> int i;
> int newparent = m_parent;
> uint16_t parentestimate = parents[m_parent].cost +
> parents[m_parent].estimate;
>
> // if our parent is invalid, pick the best parent
> if (parents[m_parent].addr == MHOP_INVALID_PARENT) {
> for (i = 0; i < MHOP_PARENT_SIZE; i++) {
> if (parents[i].cost + parents[i].estimate < newparent) {
> newparent = i;
> parentestimate = parents[i].cost + parents[i].estimate;
> }
> }
> }
> // if we have a parent, don't switch unless they're worthwhile
> else {
> for (i = 0; i < MHOP_PARENT_SIZE; i++) {
> if (((uint32_t) parents[i].cost + (uint32_t) parents[i].estimate)
> <
> ((uint32_t) parentestimate) -
> (((uint32_t) parentestimate) >> 2)) {
> newparent = i;
> parentestimate = parents[i].cost + parents[i].estimate;
> }
> }
> }
> m_parent = newparent;
> }
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>


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

Message: 5
Date: Fri, 2 Jun 2006 14:48:46 +0800
From: "#NG YEONG SHENG,JOHNSON#" 
Subject: [Tinyos-help] Help on multihop
To: 
Message-ID:


Content-Type: text/plain; charset="iso-8859-1"

Hi

I would like to ask if its possible to do multihop without using broadcasting. For example I have 2 remote motes both responsible for collecting datas and sending it to a base station. Mote 1 can do a direct communciation with the base station while mote 2 needs to relay the data thru mote 1 to reach the base station. How should i go about to do it? 

Regards
Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060602/416fe5f8/attachment.htm

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

Message: 6
Date: Fri, 2 Jun 2006 17:29:49 +0800
From: "Liu Haibin" 

Subject: [Tinyos-help] question on simple_transmit from Rfm_model.c
To: tinyos-help at millennium.berkeley.edu
Message-ID:

Content-Type: text/plain; charset="iso-8859-1"

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/20060602/b0a6b5ee/attachment-0001.html

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

Message: 7
Date: Fri, 2 Jun 2006 17:12:55 +0200
From: J?rgen Johansson 
Subject: [Tinyos-help] Boomerang UART0 Sample
To: 
Message-ID:
<5641F92E7180B0418AB05A0219A2306502EDBBCE at saeliexch.air.saab.se>
Content-Type: text/plain; charset="iso-8859-1"

There is a link failure on the http://www.moteiv.com/community/Boomerang_UART0_Sample page. I can´t download the Moteiv Boomerang Uart0 Sample.tar.gz. I think I can use the UART as a simple debuger. Does anyone used the UART as a trace?

/Jörgen Johansson



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

Message: 8
Date: Fri, 2 Jun 2006 08:23:06 -0700
From: "Joe Polastre" 
Subject: Re: [Tinyos-help] Boomerang UART0 Sample
To: " J?rgen Johansson " 
Cc: tinyos-help at millennium.berkeley.edu
Message-ID:
<1edd46e70606020823h57a469cck53077314f19fd044 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

The link works just fine.

-Joe

On 6/2/06, Jörgen Johansson wrote:
> There is a link failure on the http://www.moteiv.com/community/Boomerang_UART0_Sample page. I can´t download the Moteiv Boomerang Uart0 Sample.tar.gz. I think I can use the UART as a simple debuger. Does anyone used the UART as a trace?
>
> /Jörgen Johansson
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



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

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


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


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060602/bb92dc7d/attachment.htm


More information about the Tinyos-help mailing list