[Tinyos-help] Possible bug on ReadStream on TelosB - msp430

Jan Hauer jan.hauer at gmail.com
Wed May 6 02:53:39 PDT 2009


Hi Jordi,

can you check with the latest CVS version, there have been some fixes
some time ago. http://sourceforge.net/scm/?type=cvs&group_id=28656

Jan

On Tue, Apr 28, 2009 at 10:15 AM, Jordi Vilaseca
<jordi.vilaseca at entel.upc.edu> wrote:
> Hello everybody,
>
> I've just ported an application to sample data from ADC ports utilizing
> ReadStream interface from tinyos2.0 to tinyos2.1. The application on
> tos2.0 was working correctly. Now, on tos2.1, I also do the same
>
> #define BUF_SIZE 100;
> uint16_t buf[BUF_SIZE];
> ...
> call ReadStream.postBuffer(buf, BUF_SIZE);
> call ReadStream.read(250);
> ...
>
> In
> event void ReadStreamy.bufferDone ( error_t result, uint16_t* buffer,
> uint16_t count)
> the value of count is always equal to 0 and no error is detected
> and in
> event void ReadStream.readDone ( error_t result, uint32_t actualPeriod)
> only the 16 first positions on the buffer are filled with data, the other
> positions are equal to 0, and no errors are detected.
>
> The application was working correctely on tos2.0.
> Is it a possible bug? Has anyone found and solved a similar problem? Has
> anyone checked the /msp430/AdcStreamP.nc component?
>
> Any help will be greatful. Thanks in advanced.
>
>
> --
> Jordi Vilaseca Posa
> Research Engineer
> Departament d'Enginyeria Telemàtica
> Universitat Politècnica de CatalunyaHello everybody,
>
>
>
> _______________________________________________
> 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