Open Paddy8 opened 5 years ago
Attach your code to a txt file. I can take a look. on line 327 it checks if buffer is filled, and if it is then it writes it to a SD card. It seems that you are not filling buffer. TNI is slow on answering, busy man :)
Thank you for your time @imberest . There is no problem if I am trying to capture analog data.
SdDatSDIO.txt Sorry, uploaded the wrong file.
From first look it seems that you are blocking writing with do while cycle. I would suggest to check it with if statement. Also you don't have time reference. I would suggest adding RTC to your circuit.
I don´t think this is the problem, because everything works fine, if I am using a sensor with analog output. But in this case I need a sensor with digital output. Is it possible, that calling the sensor function: Dps310PressureSensor.measurePressureOnce(pressure_dps310, oversampling); is blocking buffer writing somehow?
But all in all thank you very much so far.
If you want i could help you with debugging, but would like to go off this comment thing. TNI will get tons of notifications, and this is not the best place to chat :) so if you have any ideas how we can get in touch privately, i will help you as much as i can.
Okay, thank you. Now there is a new problem, it starts writting to the SD Card, but no bytes are written. elapsed: 9s bytes written: 0 buffer overflow count: 0 next write sector: 54693948 max buffers used during last 5s: 0 elapsed: 14s bytes written: 0 buffer overflow count: 0 next write sector: 54693948 max buffers used during last 5s: 0
Hey there,
I got a problem implementing my Data capturing. void captureData() { ret = Dps310PressureSensor.measurePressureOnce(pressure_dps310, oversampling);; logEntry( { pressure_dps310 } ); } If I am adding my Data capturing like this, the code never starts logging Data. It stops in Line 327 in the original code.
Any suggestions what I am doing wrong?
Best regards!