Re: [Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-26 Thread Peizhao Hu
maybe I am wrong, but I remembered that the "Callback" function of 
sendDone() is designed to simplify the processor scheduling.



ERBORAL Serkan wrote:



- Original Message 
From: Sha Liu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: tinyos-help@millennium.berkeley.edu
Sent: Friday, January 25, 2008 9:44:55 PM
Subject: Re: [Tinyos-help] Simultaneous Serial and Radio Communication

Actually what I mean is:
 
In GenericComm, before the sendDone() is signaled for a packet on 
radio, attempts to send another packet to UART will fail due to the 
set of variable "state". I'm just wondering why GenericComm makes such 
a restriction. In other words, why can't we call the send() to UART 
when the packet transmission is going on?
 
-Sha
 
 
On Jan 24, 2008 8:31 PM, Peizhao Hu <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


depending on what you mean "simultaneously", I guess.
TinyOS is a "single-thread" program, so if you are looking for
multi-threads kind of simultaneous behavior, I guess you can't.

regards;

Peizhao Hu



Sha Liu wrote:
> Hi,
>
> I noticed the GenericComm component in TinyOS 1.x does not allow
> sending packets to both radio and serial port simutaneously. Is
it due
> to restrictions in hardware or simply the restriction of this
component?
>
> Thanks,
>
> Sha
>

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





Never miss a thing. Make Yahoo your homepage. 
<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>



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


--

Regards;

Peizhao

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


Re: [Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-26 Thread ERBORAL Serkan


- Original Message 
From: Sha Liu <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: tinyos-help@millennium.berkeley.edu
Sent: Friday, January 25, 2008 9:44:55 PM
Subject: Re: [Tinyos-help] Simultaneous Serial and Radio Communication


Actually what I mean is:

 

In GenericComm, before the sendDone() is signaled for a packet on radio, 
attempts to send another packet to UART will fail due to the set of variable 
"state". I'm just wondering why GenericComm makes such a restriction. In other 
words, why can't we call the send() to UART when the packet transmission is 
going on?


 

-Sha

 

 

On Jan 24, 2008 8:31 PM, Peizhao Hu <[EMAIL PROTECTED]> wrote:

depending on what you mean "simultaneously", I guess.
TinyOS is a "single-thread" program, so if you are looking for

multi-threads kind of simultaneous behavior, I guess you can't.

regards;

Peizhao Hu



Sha Liu wrote:
> Hi,
>
> I noticed the GenericComm component in TinyOS 1.x does not allow

> sending packets to both radio and serial port simutaneously. Is it due
> to restrictions in hardware or simply the restriction of this component?
>
> Thanks,
>
> Sha
> 

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










  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-25 Thread Michael Schippling

I'd have to rummage though all the code to form a coherent opinion
but I'd guess that it was a shortcut/sight based on using the state
to 'single-file' radio messages, and the UART comm exists as a wart
on the side of the system so it got the short end of the code.

If you really need to fire messages, more-or-less, simultaneously
on both channels you should be able to use lower-level interfaces
to parallel the device access. If sequential messages are OK, then
just fire off a UART send from the sendDone of the radio or V.v.

MS

Sha Liu wrote:

Actually what I mean is:
 
In GenericComm, before the sendDone() is signaled for a packet on radio, 
attempts to send another packet to UART will fail due to the set 
of variable "state". I'm just wondering why GenericComm makes such a 
restriction. In other words, why can't we call the send() to UART when 
the packet transmission is going on?
 
-Sha
 
 
On Jan 24, 2008 8:31 PM, Peizhao Hu <[EMAIL PROTECTED] 
> wrote:


depending on what you mean "simultaneously", I guess.
TinyOS is a "single-thread" program, so if you are looking for
multi-threads kind of simultaneous behavior, I guess you can't.

regards;

Peizhao Hu



Sha Liu wrote:
 > Hi,
 >
 > I noticed the GenericComm component in TinyOS 1.x does not allow
 > sending packets to both radio and serial port simutaneously. Is
it due
 > to restrictions in hardware or simply the restriction of this
component?
 >
 > Thanks,
 >
 > Sha
 >

 >
 > ___
 > Tinyos-help mailing list
 > Tinyos-help@millennium.berkeley.edu

 >
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help





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


--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

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


Re: [Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-25 Thread Sha Liu
Actually what I mean is:

In GenericComm, before the sendDone() is signaled for a packet on radio,
attempts to send another packet to UART will fail due to the set
of variable "state". I'm just wondering why GenericComm makes such a
restriction. In other words, why can't we call the send() to UART when the
packet transmission is going on?

-Sha


On Jan 24, 2008 8:31 PM, Peizhao Hu <[EMAIL PROTECTED]> wrote:

> depending on what you mean "simultaneously", I guess.
> TinyOS is a "single-thread" program, so if you are looking for
> multi-threads kind of simultaneous behavior, I guess you can't.
>
> regards;
>
> Peizhao Hu
>
>
>
> Sha Liu wrote:
> > Hi,
> >
> > I noticed the GenericComm component in TinyOS 1.x does not allow
> > sending packets to both radio and serial port simutaneously. Is it due
> > to restrictions in hardware or simply the restriction of this component?
> >
> > Thanks,
> >
> > Sha
> > 
> >
> > ___
> > Tinyos-help mailing list
> > Tinyos-help@millennium.berkeley.edu
> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-24 Thread Peizhao Hu

depending on what you mean "simultaneously", I guess.
TinyOS is a "single-thread" program, so if you are looking for 
multi-threads kind of simultaneous behavior, I guess you can't.


regards;

Peizhao Hu



Sha Liu wrote:

Hi,
 
I noticed the GenericComm component in TinyOS 1.x does not allow 
sending packets to both radio and serial port simutaneously. Is it due 
to restrictions in hardware or simply the restriction of this component?
 
Thanks,
 
Sha



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

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


[Tinyos-help] Simultaneous Serial and Radio Communication

2008-01-24 Thread Sha Liu
Hi,

I noticed the GenericComm component in TinyOS 1.x does not allow sending
packets to both radio and serial port simutaneously. Is it due to
restrictions in hardware or simply the restriction of this component?

Thanks,

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