Hi list. For my app I want to store as much data as possible in a queue. (the app runs on tmote sky on tinyos2.x). Using flash with LogRead and LogWrite is an option, but I'd like the huge queue to be as fast as possible.
BigQueue's upper limit seems to be 4KB. I assume this is a msp430 limitation for individual variables? Would it be possible to create a HugeQueue type which breaks this limit? Since TinyOS does not (afaik) support dynamic memory allocation (malloc and friends), I would do something like this in the HugeQueueC public module: 1) Declare 16 arrays, each an appropriate size (of the users type, with number of user's requested elements / 16). 2) Declare an array of 16 pointers, and point each to the address of one of the 16 arrays. 3) Point the head and tail to the beginning of the 1st array. 4) All the functions move the head & tail to the correct array and index when they are executed. Would something like this work? Could this be added to TinyOS 2.x by one of the developers? David. _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
