Problems with data logger
Posted: Fri Jul 20, 2018 1:45 am
Dear Freematics,
I have recently bought a Freematics one and I was trying to run the data logger example from v4 in github.
For testing purposes I wanted to read the voltage with the getVoltage() function. This seems to work until I mount the sd card. This happens because then sd.open() is successfully called. When I comment this out, getVoltage seems to work again. Also with the sd card in.
The problem is that the sendcommand function for getvoltage does not receive anything and then the receive function says "no spi". So my guess is that sd.open somehow messes with the spi bus.
I was wondering if you might know what the problem could be. Do you maybe recognize this problem and/or maybe have a solution? This would be appreciated greatly because we are planning using the freematics one in our new product. So we are working with a deadline and for your interest this also does determine if we are going to use them in series for our new product.
Many thanks!
Yours faithfully,
Ruben Obbink
I have recently bought a Freematics one and I was trying to run the data logger example from v4 in github.
For testing purposes I wanted to read the voltage with the getVoltage() function. This seems to work until I mount the sd card. This happens because then sd.open() is successfully called. When I comment this out, getVoltage seems to work again. Also with the sd card in.
The problem is that the sendcommand function for getvoltage does not receive anything and then the receive function says "no spi". So my guess is that sd.open somehow messes with the spi bus.
I was wondering if you might know what the problem could be. Do you maybe recognize this problem and/or maybe have a solution? This would be appreciated greatly because we are planning using the freematics one in our new product. So we are working with a deadline and for your interest this also does determine if we are going to use them in series for our new product.
Many thanks!
Yours faithfully,
Ruben Obbink