Servers by jDrones

Pixhawk no log files or folder


(anparkinson) #1

My Pixhawk is not writing log files. The SD card has the Terrain folder but no Log folder. I’ve tried a new SD card and have the same problem.

Am I missing something really simple here? I can’t find any obvious Turn Logs On option.

Thanks


(Hunt0r) #2

I think DataFlash logging doesn’t start until the plane is armed. Are you arming it?

There is also a parameter you can set which begins logging at boot, but this is off by default because logs would get very long with not-interesting details. But if you can’t arm for some reason, this would let you test if there’s still a log-creation problem.


(anparkinson) #3

Yes, plane armed and sent on Auto flight. No logs at all on SD card.
I’ve tried with logging at boot on and off but no difference.
Is there a basic way to enable or disable logging that I’ve missed?


(Hunt0r) #4

Strange. I don’t know any way you could disable logging without modifying the firmware. Perhaps you could try re-flashing the firmware?

Or maybe someone else on these forums knows something that I don’t?


(peterbarker) #5

[45.png]
anparkinson
November 3

Yes, plane armed and sent on Auto flight. No logs at all on SD card.
I’ve tried with logging at boot on and off but no difference.
Is there a basic way to enable or disable logging that I’ve missed?

No, it shoul dlog out-of-the-box.

Setting the parameter LOG_DISARMED should cause it to log all of the time.

Setting the parameter LOF_FILE_DSRMROT should close the current log file
each time you disarm ('though if you are not logging while disarmed it
will only be created when you next arm).

So. To your problem.

Is your LOG_BITMASK non-zero?

Is your LOG_BACKEND_TYPE 1 or 3?


(anparkinson) #6

LOG_BITMASK set to 65535which is Pixhawk default
LOG_BACKEND_TYPE set to 2. I’ll change to 3.
Why would it be on 2?
Thanks


(peterbarker) #7

LOG_BITMASK set to 65535which is Pixhawk default
LOG_BACKEND_TYPE set to 2. I’ll change to 3.
Why would it be on 2?

That I can’t say. It’s certainly not the default!

Peter


(anparkinson) #8

Update - now getting log files after changing LOG_BACKEND_TYPE to 3. Thanks Peter.

BUT - cannot download by Mavlink either wireless or with cable. I get the error message in rhe link below. It means I Have to remove the SD card and put it in my laptop to get the log files.

Is there a solution to this?

(http://www.medifarm.co.uk/log_files.png)


(peterbarker) #9

BUT - cannot download by Mavlink either wireless or with cable. I get the
error message in rhe link below. It means I Have to remove the SD card and
put it in my laptop to get the log files.

Is there a solution to this?

(http://www.medifarm.co.uk/log_files.png)

Disarm your vehicle?