Revisiting Datalogger - Help...
I posted the following message back quite a few months about anyone using the
Parallax DataLogger and possible code to operate it.
Received a reply from Peter:
"I am currently writing a class for it and will post it when it is ready.
I intend to support both serial and spi interface.
Please post your current code and I can check it against mine.
regards peter"
Peter, did you ever complete this class? If so, it would sure help.
I am having no problems initializing the USB, writing a file of logged
data, but I am having real problems getting the data back out from the
file. When I get the data, I want to spit it out a UART to a programmed PC
for analysis.
Any help from anybody would be greatly appreciated
Thanks,
Carey
Parallax DataLogger and possible code to operate it.
Received a reply from Peter:
"I am currently writing a class for it and will post it when it is ready.
I intend to support both serial and spi interface.
Please post your current code and I can check it against mine.
regards peter"
Peter, did you ever complete this class? If so, it would sure help.
I am having no problems initializing the USB, writing a file of logged
data, but I am having real problems getting the data back out from the
file. When I get the data, I want to spit it out a UART to a programmed PC
for analysis.
Any help from anybody would be greatly appreciated
Thanks,
Carey
Comments
I wrote a working object for the spin stamp some time ago.
Attached are javelin classes that I converted from my spinstamp objects.
Note that these classes compile and link, but I have not yet tested
it on a javelin. The interface used is SPI (don't forget to set the jumper to SPI mode
on the datalogger module) so it does not require a uart VP.
The classes go into folder ...\lib\stamp\peripheral\datalogger
regards peter
Thanks so much for the code, I think it will really help. However,
I am unable to get it to complile and link. I appear to be missing
some files locate in stamp.util.text.* which is used in the import in both the dataloggerSPI_test.java and
in the Datalogger.java files.
What is missing is the 'Format.printf' coding and it has been used a whole lot of times.
Many thanks again, Peter
Carey
http://tech.groups.yahoo.com/group/JavelinCode/files/Javelin%20Stamp%20IDE/lib/stamp/util/text/
regards peter
I do not appear to be talking to the datalogger at all.
Here is a snippet of code from the DataLoggerSPI_Test program which you sent me.
static void main() {
int t,c; boolean s;
//select datalogger
CPU.writePin(CPU.pin9,false);
CPU.writePin(CPU.pin8,false);
Format.printf("Datalogger Test Program for Javelin\r\n");
CPU.delay(105*25); //Wait for 250ms initialization
while (true) {
logger.receivePromptOrError(2000); //get unsollicited message from datalogger
if (logger.diskPresent()) {
I am confused on the select datalogger area as there is nothing attached to pins 8 and 9 of the Javelin.
The (logger.diskPresent()) is returning false and there is no data appearing in the ResponseBuffer in the diskPresent
routine. The drive ready light is not coming on either, indicating to me that I do not have the device
selected.
Any ideas??
Thanks again for your assistance. Don't know what I would do without it.
Carey
They were there because on my board pins 8 and 9 control a CD4052 multiplexer that
connects the datalogger via its channel 0.
You should have inserted a usb stick before powering on. The diskpresent() then
is probably working. If it isn't I can't say right now why it isn't because at the
moment I have no javelin module setup.
Also be sure to set the correct pin values for the pins you use to connect the datalogger.
regards peter
·