On Wed, 2006-01-18 at 15:39 -0600, Sam Pierson wrote: > Hi everyone, > > I dug through the mailing list archives looking for some info on > the received signal strength of incoming packets. I have one > mote that transmits messages of type IntMsg over the radio. > The other mote has TOSBase installed on it and is on the programming > board, which is then connected to the serial port. When I > use the java tool ListenRaw, I get things like the following: > > 7E 42 FF FF 04 7D 5D 04 22 00 01 00 EA 1E > 7E 42 FF FF 04 7D 5D 04 23 00 01 00 5E 68 > 7E 42 FF FF 04 7D 5D 04 24 00 01 00 73 39 > > So from what I've gathered from micaz/AM.h: > > uint8_t length = -| > uint8_t fcfhi = | Not sure about these top four. > uint8_t fcflo = 7E | > uint8_t dsn = 24 _| > uint16_t destpan = FF FF > uint16_t addr = 04 7D > uint8_t type = 5D > uint8_t group = 04 > int8_t data = 22 > uint8_t strength = 00 <-- ?? >
IntMsg.h: typedef struct IntMsg { uint16_t val; uint16_t src; } IntMsg; In the first packet (little endian): 22 00 is the data value (34). 01 00 is the source (node 1) EA 1E is the signal strength (7914) Phil _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help