[Tinyos-help] motetest.c - stargate - tinyos 2.x

KURT PETERS peterskurt at msn.com
Sun Nov 4 10:39:24 PST 2007


OK, after reading the TEP more thoroughly, and looking at the source code, I 
see that the two are actually a union.  So, I guess the last question is, is 
the metadata dropped when transmitting the serial packet, it seems like it 
isn't?
Kurt

----Original Message Follows----
From: "KURT PETERS" <peterskurt at msn.com>
To: tinyos-help at Millennium.Berkeley.EDU
Subject: [Tinyos-help] motetest.c - stargate - tinyos 2.x
Date: Sat, 03 Nov 2007 09:31:00 -0500
I'm trying to rewrite motetest.c for the stargate so it works with tinyos 
2.x.  I guess my first question is:
Has anyone done this yet? Or does someone have something with similar 
functionality?

I'm using the BaseStationx.nc included with TinyOS 2.x.  That being said, 
when the message forwarded is sent from serial AM to radio AM, does the 
header change?  This seems to be very difficult to figure out by tracing the 
source code.  I noticed the header format for serial is:
typedef nx_struct serial_header {
  nx_am_addr_t dest;
  nx_am_addr_t src;
  nx_uint8_t length;
  nx_am_group_t group;
  nx_am_id_t type;
} serial_header_t;
while the radio header should be:
typedef nx_struct cc2420_header_t {
  nxle_uint8_t length;
  nxle_uint16_t fcf;
  nxle_uint8_t dsn;
  nxle_uint16_t destpan;
  nxle_uint16_t dest;
  nxle_uint16_t src;

  /** I-Frame 6LowPAN interoperability byte */
#ifdef CC2420_IFRAME_TYPE
  nxle_uint8_t network;
#endif

  nxle_uint8_t type;
} cc2420_header_t;

which one should I expect to deal with at the stargate side?
Regards,
Kurt









_______________________________________________
Tinyos-help mailing list
Tinyos-help at Millennium.Berkeley.EDU
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




More information about the Tinyos-help mailing list