Hi, After reading the data by ReadStream, try to send the data to the serial port and then try to use "Bray's terminal (download it via web)" and you should be able to see exactly what is coming out of the serial port, if you take out the serial message specific data from what you read on Brays terminal, you should be able to get the exact payload that you are receieving. I don't know whether this will be of any help to you or not. I do not know much else about ReadStream buffering.
Cheers, Varun Jain From: Akankshu Dhawan [mailto:[email protected]] Sent: Thursday, 4 June 2009 1:12 PM To: Varun Jain Subject: Re: [Tinyos-help] sampling microphone data and storing I have the ReadStream buffer from the Microphone. .. I wish to send it over the radio.. but I dont know how many samples I am getting (rate of ReadStream) as well as a slicing mechanism to send the sampled data over the radio. Also once I get to know the sampling rate of ReadStream only then can I finalise an optimum value of buffer size. Please let me know if what I have said is unclear. Thanks a lot for your time. Regards Akankshu On Wed, Jun 3, 2009 at 7:27 PM, Varun Jain <[email protected]> wrote: What buffer are you talking about???? Cheers, Varun Jain From: Akankshu Dhawan [mailto:[email protected]] Sent: Thursday, 4 June 2009 12:26 AM To: Varun Jain Subject: Re: [Tinyos-help] sampling microphone data and storing Hi varun Thanks a lot for your help. I have been able to get the ReadStream to compile but it uses a buffer. I wanted to know how I can use that buffer ? Regards Akankshu Dhawan On Wed, May 6, 2009 at 2:15 AM, Varun Jain <[email protected]> wrote: I have not worked with microphone, but there is a "ReadStream" interface defined in Tinyos-2.x which can read a Stream of data or you can use 'Read' interface for single read . See the Oscilloscope application as it might help. Cheers, Varun Jain
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
