I explain better my problem if could help anybody in the answer:
I have done an application that read from a serial port USB0 in ubuntu 10.4,
where there's attached IPBaseStaion the output without do nothing is this:
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
RXTX Warning:  Removing stale lock file. /var/lock/LCK..ttyUSB0
Packet:126
Packet:126
Packet:67
Packet:56
Packet:126
Packet:126
Packet:67 13
Packet:126
Packet:126
Packet:126
Packet:11
Packet:126
Packet:126
Packet:3
Packet:96
Packet:126
Packet:35
Packet:67 36
Packet:38

I read in the class PACKETIZER (support/sdk/java/net/tinyos/packet) this
comment:
To summarise the protocol:
   * - the two sides (A & B) are connected by a (potentially
   *   unreliable) byte stream
   *
   * - the two sides exchange packets framed by 0x7e (SYNC_BYTE) bytes
   *
   * - each packet has the form
   *     <packet type> <data bytes 1..n> <16-bit crc>
   *   where the crc (see net.tinyos.util.Crc) covers the packet type
   *   and bytes 1..n
   *
   * - bytes can be escaped by preceding them with 0x7d and their
   *   value xored with 0x20; 0x7d and 0x7e bytes must be escaped,
   *   0x00 - 0x1f and 0x80-0x9f may be optionally escaped
   *
   * - There are currently 5 packet types:
   *   P_PACKET_NO_ACK: A user-packet, with no ack required
   *   P_PACKET_ACK: A user-packet with a prefix byte, ack
   *   required. The receiver must send a P_ACK packet with the
   *   prefix byte as its contents.
   *   P_ACK: ack for a previous P_PACKET_ACK packet
   *   P_UNKNOWN: unknown packet type received. On reception of an
   *   unknown packet type, the receicer must send a P_UNKNOWN packet,
   *   the first byte must be the unknown packet type.
   *
   * - Packets that are greater than a (private) MTU are silently
   *   dropped.

It means that i can discard this packet?Because i would like to know if
there's a manner to read the IPv6 packet sended by the tun0 interface.I'm
really confused.Thanks for any help,
Daniele.


2011/5/24 daniele mattiacci <[email protected]>

> Hi all,
> i'm using 2 motes with blip installed:1 works like IPbasestation and he's
> attached to the PC, 1 has TCPEcho application running and he's attached to
> my PC.
> I'm try to develop an application in Java that send IPv6 packet to a mote.I
> see by console that IPBaseStation doesn't discarded the packets send by me,
> but by telnet console (telnet localhost 6106) i can see that IPBAseStation
> doesn't forward my IPv6 packets to a mote with address fec0::2(the
> destination in the address is well setted).So what's wrong with my
> application?why IPBAsestation doesn't forward the packets in the subnet at
> the right mote?
>
> Any help will be appreciate.
> Thank you in advance
> Daniele.
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to