[Tinyos-devel] tmote P3.6 / P3.7 direction
Andreas Köpke
koepke at tkn.tu-berlin.de
Thu Jul 3 13:46:37 PDT 2008
I guess we are loosing track of the problem: whenever the tmote is
attached to USB it should configure the pins differently. This is
completely independent from the presence of a serial stack. So the
answer is: no, tying the pin configuration to the presence of serial
stack does not solve the problem. Yes, the presence of a serial stack is
a good indicator, but the problem would re-appear whenever "close to
deployment" tests are made (which in general do disable the serial
stack), preventing a successful reprogramming of the tmotes later on.
I'm looking forward to a solution as the tmotes in our testbed do have
this problem, too.
Thanks for figuring the culprit, Andreas
Am Donnerstag, den 03.07.2008, 10:59 -0700 schrieb David Moss:
> What Phil’s saying is the PlatformC file gets setup regardless of
> whether or not the serial stack is in the system. In the case where
> the serial stack is not compiled in, then PlatformC will set the pins
> up properly so there’s no conflict (assumes the no-USB connected
> case). Then, when the serial stack is present, the PlatformC’s
> settings get overridden so the pins are setup correctly to use USB.
>
>
>
> -David
>
>
>
>
> ______________________________________________________________________
> From:geoffrey.werner.allen at gmail.com
> [mailto:geoffrey.werner.allen at gmail.com] On Behalf Of Geoffrey
> Werner-Allen
> Sent: Thursday, July 03, 2008 10:52 AM
> To: Philip Levis
> Cc: David Moss; tinyos-devel at millennium.berkeley.edu
> Subject: Re: [Tinyos-devel] tmote P3.6 / P3.7 direction
>
>
>
>
> My understanding was that the problem was being caused by the lack of
> a serial stack when USB is present. If the application does not use
> the serial port how do the pins get set up properly, since the "no
> serial stack" defaults are what creates the conflict with the buffer.
> Am I missing something?
>
> -gwa-
>
> geoffrey werner-allen :: 617.694.7261 :: www.eecs.harvard.edu/~werner
>
> On Thu, Jul 3, 2008 at 12:37 PM, Philip Levis <pal at cs.stanford.edu>
> wrote:
>
>
> On Jul 2, 2008, at 5:48 PM, David Moss wrote:
>
> There's nothing wrong with your proposal - except I read the line of
> emails
> in reverse order, missing the serial stack proposal in the first
> place. :)
>
> So if the serial stack takes care of it, is there a way to do the
> flippage
> in a platform independent manner? Maybe through the tmote platform's
> PlatformSerial StdControl.start()/stop()? Or are you thinking of a
> different way
>
>
>
>
> My assumption was that PlatformInit (PlatformC) would set the pins up
> for when there is no serial stack, and then the serial stack would
> configure them for its own use in a SoftwareInit, and the serial
> stack's command call graph would eventually hit the UART HPL. Would
> this work?
>
> Phil
>
>
>
>
>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
More information about the Tinyos-devel
mailing list