[Tinyos-devel] GenericComm

David Gay dgay at intel-research.net
Mon Jun 28 15:24:29 PDT 2004

Philip Levis wrote:
> On Monday, June 28, 2004, at 02:44 PM, Joe Polastre wrote:
>> At one point in time (TinyOS 0.6?) we had GenericCommNoUART.  Although I
>> don't really like having 15 versions of GenericComm (normal, Promiscuous,
>> TinySec, NoUART, etc), I can see a real use for being able to remove 
>> all of
>> the UART components when deploying an application (especially now that
>> FramerM is a huge part of the application's RAM and ROM usage).  The 
>> problem
>> with enabling/disabling through an interface is that it won't be removed
>> from the code; on the other hand, having separate configurations is 
>> really
>> ugly and causes problems when you try to have two types of 
>> GenericComms in
>> an application.
> I'd think that the answer is for an application to have its own 
> GenericComm, which is the same as the normal one, with the UART cut out. 
> This would require AM to have defaults for sending to the UART. Putting 
> this into the app directory should change everything just fine. 
> Alternatively, the app GenericComm could also have an app AMWhatever 
> that doesn't test on address and sends UART packets to the radio. The 
> only other solution is to put it in a separate directory and include 
> that directory in your -I path.

The slightly simpler approach is for the application to have it's own 
UARTFramedPacket which just drops the packets (or passes them onto the radio if 
you really want).


More information about the Tinyos-devel mailing list