A number of questions like that have appeared on this list recently,
but I don't remember that anyone announced that they were successful.
Perhaps someone will post something useful...

Otherwise the place to start is getting a full message buffer
including sync bytes and headers, and try to send it back.
If you don't know the structure look at:
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
The difficulty is probably reverse engineering the CRC generation.
You should be able to use the Java code in Packetizer.java and
Crc.java as a guide.

MS


Micfox Micfox wrote:
> Thanks. But after I checked that folder, I could not find any program 
> that is relevant to this matter: If the packet is sent from mote to PC, 
> then those *listen.c can help, but now I need to send packet from PC to 
> motes (maybe in C, or other alternatives that can work, any suggestion 
> is appreciated).
> 
> 
>> From: Michael Schippling <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> To: Micfox Micfox <[EMAIL PROTECTED]>
>> CC: [email protected]
>> Subject: Re: [Tinyos-help] The connection between some program in C and 
> the mote
>> Date: Wed, 09 May 2007 13:19:10 -0600
>>
>> If you're using TOS1.x there're some C examples under:
>>  tinyos*/tools/src
>>
>> MS
>>
>> Micfox Micfox wrote:
>> > Hi,
>> >  I have the following problem I need to solve and hope I can get some
>> > advice from this mailing list.
>> >  Let me say I have a program called A (in C language). It can generate
>> > some output (denoted as B). I need to pass B to the motes through 
> serial
>> > port. However, the packets from the PC to motes are sent through Java
>> > program. How can I make B to be passed to mote? (B is a dynamic 
> variable
>> > and changing as A goes).
>> >
>> > _________________________________________________________________
>> > 与世界各地的朋友进行交流,免费下载  Live Messenger;
>> > http://get.live.com/messenger/overview
>> > _______________________________________________
>> > Tinyos-help mailing list
>> > [email protected]
>> > 
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to