[Tinyos-devel] sending data over serial port using TinyOS2

Razvan Musaloiu-E. razvanm at cs.jhu.edu
Thu Jun 8 12:07:28 PDT 2006


Hi!

I'm trying to send some data over the serial port to a mote
running BaseStation and I have some questions.

Because the BaseStation uses AM I'm trying to send an AM. I'm doing this
in a small Python script. What I see on the sf is the following:

	$ ./sf 7777 /dev/ttyUSB1 115200
	clients 1, read 0, wrote 0
	writing 41 26 00 ff ff 0f 22 c1 20 00 ff ff 00 00 00 00 00 00 00 04 00 00 0a
	encoded 7e 41 26 00 ff ff 0f 22 c1 20 00 ff ff 00 00 00 00 00 00 00 04 00 00 0a 95 aa 7e
	foo
	raw 7e 40 26 68 49 7e 7e 42 03 cd 5b 7e
	Note: sync
	received 40 26 68 49
	  crc 4968 comp 4968
	received 42 03 cd 5b
	  crc 5bcd comp 5bcd

In my sending program I received only one byte with the value 1. There is
no other active mote except the one running BaseStation.

My questions are:
- why there are 2 packets send back from the mote? The first one is the
  ACK but what is the second one?
- what should be the correct behavior for sending a packet on the sender
  that uses the serial forwarder?

And one more Q: please let me know if the -help pool is a better
place for questions like these. :-)

--
Razvan ME



More information about the Tinyos-devel mailing list