Look at these two links: http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf http://tinyos.net/tinyos-2.x/doc/txt/tep113.txt
MS [email protected] wrote: > Hi Jorge. > > In your example, the message has more than one escape byte in the end? > If it was on tinyos 2.x, how would this message be? > Thanks for this software tip, its gonna be useful. > > Greetings, > Daniel Jorge > >> Dear Daniel, >> >> In tinyos 1.x the packet include bytes for syncronization each frame >> (7E). I`m use Dockligth hiperterminal for this task. >> http://www.docklight.de/ >> >> Example: >> >> 7E 42 2C 01 08 00 FF FF FF FF >> 0F 9D 02 00 00 00 00 00 09 00 >> 00 00 00 07 03 01 F0 86 7E >> 7E 00 >> >> The crc is: F0 86 >> >> the crc calcule only include: >> >> 42 2C 01 08 00 FF FF FF FF 0F >> 9D 02 00 00 00 00 00 09 00 00 >> 00 00 07 03 01 >> >> >> Jorge Higuera >> http://isi.upc.es >> >> >>> ------------------------------ >>> >>> Message: 2 >>> Date: Thu, 18 Dec 2008 19:53:24 +0000 >>> From: "[email protected]" >>> <[email protected]> >>> Subject: [Tinyos-help] Java (TestSerial) packet format >>> To: [email protected] >>> Message-ID: <[email protected]> >>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >>> >>> Hi everybody, >>> >>> We have successfully manage to communicate with base >>> station mote using >>> java support. But what we really want to do is communicate >>> with the base >>> station using matlab. For that we are trying to understand >>> the packet >>> format that java is sending to the motes, so that we can >>> try sending it >>> in matlab. >>> >>> We print the message sent with java, and this is what we >>> get: >>> >>> 01 00 00 04 00 07 00 01 00 00 >>> >>> Destination address: 01 >>> Source address: 00 00 >>> Message Lenght: 04 >>> Group ID: 00 >>> Data Type: 07 >>> Payload: 00 01 00 00 >>> >>> Does java send the packet with crc bytes? >>> We are not able to send with the fwrite command in >>> matlab?Why is that >>> so?Is it packet format?Some serial configuration? >>> >>> Thanks in advance, >>> Daniel Jorge >>> >>> >> >> >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >> > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Platform: WinXP/Cygwin TinyOS version: 1.x, Boomerang Programmer: MIB510 Device(s): Mica2, MicaZ, Tmote Sensor board: homebrew _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
