[Contiki-developers] PC to Mote communication

68 views
Skip to first unread message

Mohammad Sajjad Hossain

unread,
Sep 30, 2011, 12:20:05 AM9/30/11
to contiki-developers
Hi all,
I am trying to send a packet from PC to a telosb mote using serial communication. Is there an example for that?
Thanks...
--Mohammad

Rainer Thome

unread,
Oct 3, 2011, 1:36:02 PM10/3/11
to Contiki developer mailing list

Hi!
I don't think there is an explicit example for that but what you need is the serial-line.h. There is a method for initializing the driver in there and afterwards, all you need to do is let your process wait for a serial line event. On the PC side I used Java and the RXTX library. It was a bit tricky, because sometimes, the TTY line can be pretty unreliable and just randomly loose some of the data you send. If you want, I can post a basic example here. I also think that there is a serial line example in the contiki dist?


Greetz

Rainer

Am 30.09.2011 06:21 schrieb "Mohammad Sajjad Hossain" <sajjad....@gmail.com>:
Reply all
Reply to author
Forward
0 new messages