Hi all,

I managed to make an app that sends bytes from the 10 pin header of the TelosB. But I have some problems, I will appreciate if you can make some points clear for me, or point me to some documentation (I couldn't find any by myself).

At the moment I only send one command at the time, for example:

call UartByte.send(96);

By using this, on the terminal window of PC I receive 2 bytes (My terminal is set to DEC mode):

Data received: 000
Data received: 002

I can't figure out why I receive 2 bytes, no matter what I send I always get a '000' byte. Also, Why the second byte is '002' ? I sent the number 96 but I receive 002.

I have in my app's implementation:

App.UartByte -> PlatformSerialC;

And the port configuration is:

  msp430_uart_union_config_t msp430_uart_telos_config =
  {
          {
              ubr: UBR_1MHZ_57600,
              umctl: UMCTL_1MHZ_57600,
              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
        }
    };

I want a 57600 connection so I guess I am doing the configuration right. Please tell me how can I get rid of the first 000 byte I always receive and how can I send numbers and receive them correctly on the terminal.

Please let me know if my question is not clear.

Regards,
Sean.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to