OctoPrint is successfully connected to my printer and all of the printer status (temperature, motion etc.) are update as should, but when I start a print job from my TFT35 LCD either via the main board SD card or via the USB flash drive on the LCD, the print is started and print successfully without an issue.
The only problem is that the print state in OctoPrint remain as "Operational" during the entire print (Pause and Cancel buttons are disabled and Print button is enabled).
Normally this is not a big issue for me as the print is successfully printed, but as I'm using the "The Spaghetti Detective" plugin there is my problem, the detective isn't working because it didn't detect the print job state (verified with the plugin support team).
Printing via the OctoPrint interface everything is as should.
Seems that this behavior started after I upgraded the stock Melzi board to the SKR Mini board.
[EDIT]
The official response from BIGTREETECH support:
Hello,
Now OctoPrint has a bug with our products, so if you can, you can use other printing software or use SD card to print. Or wait for OctoPrint official repair. I'm really sorry.
Interesting one. Now I thought OctoPrint did support picking up the status of the SD print, and that this is a firmware issue instead. Lazy response from. BTT support if you ask me...
I don't have my Marlin config around at the moment, maybe I can find it later, but I'm sure there is an option to report SD status back to OctoPrint.
I also thought the BTT response was lazy and not respect their customers.
Anyway, your suggestion didn't fix my problem but you are on the right direction.
I've enabled the AUTO_REPORT_SD_STATUS definition and tried to print both from the SD card and from the TFT35 flash drive (I don't know if that on purpose or you just miss that, but you didn't address the flash drive in your answer), and again no detection of the print in OctoPrint.
I searched in the serial.log (76.8 KB) the 'M27' command and it wasn't there, so I manually sent 'M27 S' command via the OctoPrint terminal (during a print) and immediately the state changed to 'Printing from SD'.
As a workaround I believe that I just can add the 'M27 S' command to my start Gcode but I would like to avoid that if possible.
Oh yeah, missed that. Imagine it's handled similar to the SD card anyway, although I don't know the specifics.
What does an M115 command output? It could be for some reason it is not reported as a capability, so OctoPrint doesn't know to send M27.
Or I may be wrong, however when I connect to the virtual printer in OctoPrint, it automatically reports the status of the 'virtual SD', so something's there.
Afraid I don't know how to get the capability report fixed, I just assumed that it would be generated by Marlin. Would have to have a look when I get a chance next week.
EDIT: I have just looked at your log, seems it does report SD Autoreport as 1, so OctoPrint should know to send M27......
That issue seems unrelated. I only have my phone with me, but it has OctoPrint installed , so I'm going to have a look at what the virtual printer does.
Capability report is good, so maybe it is something in OctoPrint