Re: [Tinyos-help] Serial Communication using C/C++ on Windows

2011-03-24 Thread Breno Guimarães
Hi!
Thanks for the tips Michael! After I read your comments I noticed that I
forgot to specify which tools and system configuration required to
understand and run everything at the guide.

I'll write about that when I have the chance.

Omprakash, thanks for the advice! I will add it there very soon! =)

Bye!

2011/3/24 Omprakash Gnawali 

> Breno,
>
> It will be great if you can add your document as a tutorial under user
> contributed tutorials on this page:
> http://docs.tinyos.net/index.php/TinyOS_Tutorials
>
> - om_p
>
> 2011/3/24 Breno Guimarães :
> >> Hi,
> >> I noticed that some people have trouble using the serial port to
> >> communicate with the base using the BaseStation application. So I wrote
> a
> >> guide to help on that with code suggestions and some explanation about
> >> serial port using and ActiveMessage protocol.
> >
> >
> http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c
> >>
> >> I hope somebody finds it useful. =)
> >> (For those who might read it, sorry about my english. I did my best
> hehe)
> >> Breno Rodrigues Guimarães
> >> Universidade Federal de Minas Gerais, Brasil.
> >> Federal Universty of Minas Gerais, Brazil.
> >>
> >
> >
> > ___
> > 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] Serial Communication using C/C++ on Windows

2011-03-24 Thread Omprakash Gnawali
Breno,

It will be great if you can add your document as a tutorial under user
contributed tutorials on this page:
http://docs.tinyos.net/index.php/TinyOS_Tutorials

- om_p

2011/3/24 Breno Guimarães :
>> Hi,
>> I noticed that some people have trouble using the serial port to
>> communicate with the base using the BaseStation application. So I wrote a
>> guide to help on that with code suggestions and some explanation about
>> serial port using and ActiveMessage protocol.
>
>     http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c
>>
>> I hope somebody finds it useful. =)
>> (For those who might read it, sorry about my english. I did my best hehe)
>> Breno Rodrigues Guimarães
>> Universidade Federal de Minas Gerais, Brasil.
>> Federal Universty of Minas Gerais, Brazil.
>>
>
>
> ___
> 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] Serial Communication using C/C++ on Windows

2011-03-24 Thread Michael Schippling
Looks good! Hope it actually helps...

Your English is very good, just a couple little glitches,
no need to fix them even.

The process of replacing internal 0x7{d,e} values is
called "Escaping" in TOS and general framing documents.

I think your doc is specific to TOS2.x, I only use T1
so I'm not sure. In T1 there are two serial header formats
depending on the type of radio -- the mica2 style and the
telosb style. To make it more interesting the micaz
basestation translates from "telosb" to "mica2"
(meaning platfrom/micaz/AM.h to system/types/AM.h structs).
I don't know if this has been "fixed" in T2, but users
of Moteworks will probably have to deal with it. You might
at least mention that some rummaging in the TOS headers
could be in order.

thanks
MS

Breno Guimarães wrote:
> Hi,
> 
> I noticed that some people have trouble using the serial port to
> communicate with the base using the BaseStation application. So I
> wrote a guide to help on that with code suggestions and some
> explanation about serial port using and ActiveMessage protocol.
> 
> 
> http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c 
> 
> 
> I hope somebody finds it useful. =)
> (For those who might read it, sorry about my english. I did my best
> hehe)
> 
> Breno Rodrigues Guimarães
> Universidade Federal de Minas Gerais, Brasil.
> Federal Universty of Minas Gerais, Brazil.
> 
> 
> 
> 
> 
> 
> ___
> 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] Serial Communication using C/C++ on Windows

2011-03-24 Thread Breno Guimarães
>
> Hi,
>
> I noticed that some people have trouble using the serial port to
> communicate with the base using the BaseStation application. So I wrote a
> guide to help on that with code suggestions and some explanation about
> serial port using and ActiveMessage protocol.
>

http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c

>
> I hope somebody finds it useful. =)
> (For those who might read it, sorry about my english. I did my best hehe)
>
> Breno Rodrigues Guimarães
> Universidade Federal de Minas Gerais, Brasil.
> Federal Universty of Minas Gerais, Brazil.
>
>
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help