Hi,
I need only to receive from GPS and only send to Computer.
UTDXD1 is used for computer's connection and URXD1 for gps. In this situation
it's not possible to transmit on gps and not possible to receive from computer.
Actually I send data to computer but I'm unable to receive from the GPS.
Thank you very much
Gwenhaƫl
On Mon, 20 Oct 2008 15:06:58 -0300
"Guillermo De Cesco" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I saw you were trying to connect a gps to your msp430 chip using TinyOS as
> operation system. It could be done, but reading your mails i have a few
> question before i can give you the answer you need.
> 1- you intend to receive and transmit to gps or just receive?
> 2-you intend to receive and transmit to pc or just transmit?
>
> Why I am asking this, because as you said you will share hardware pins
> between pc and gps so in order to do this you can only use rx to connect to
> gps and tx to connect to pc.
>
> You will need this configuration
>
> configuration UartGPSC {
> provides interface StdControl;
> provides interface UartStream;
> provides interface UartByte;
>
> }
>
> implementation {
>
> components new Msp430Uart0C() as UartC;
> UartStream = UartC;
> UartByte = UartC;
>
> components UartGPSP;
>
> StdControl = UartGPSP;
> UartGPSP.Msp430UartConfigure <- UartC.Msp430UartConfigure;
> UartGPSP.Resource -> UartC.Resource;
>
> }
>
> and this module
> module UartGPSP {
> provides interface StdControl;
> provides interface Msp430UartConfigure;
> uses interface Resource;
> }
> implementation {
>
> msp430_uart_union_config_t msp430_uart_gps_config = { {ubr: UBR_1MHZ_4800,
> umctl: UMCTL_1MHZ_4800, ssel: 0x02, pena: 0, pev: 0, spb: 0, clen: 1,
> listen: 0, mm: 0, ckpl: 0, urxse: 0, urxeie: 1, urxwie: 0, utxe : 1, urxe :
> 1} };
>
> command error_t StdControl.start(){
> return call Resource.immediateRequest();
> }
> command error_t StdControl.stop(){
> call Resource.release();
> return SUCCESS;
> }
> event void Resource.granted(){}
>
> async command msp430_uart_union_config_t* Msp430UartConfigure.getConfig()
> {
> return &msp430_uart_gps_config;
> }
>
> }
>
> In your application module you will need to wire to the stdcontrol of this
> configuration to request the resource and use UartStream or UartByte
> interfaces
> to send and receive. In this case the baud rate is set to 4800 as i used
> with a gps too.
>
> Related to the swithching you should do it in your application module. But
> first you should answer the 2 question a ask.
>
> Hope this helps.
>
> -Bill
--
Arsenic et vieilles ferrailles
http://www.trabucayre.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help