BambuSource2Raw icon indicating copy to clipboard operation
BambuSource2Raw copied to clipboard

Does not recover after power off and on of the P1P

Open sidamos opened this issue 2 years ago • 3 comments

Thanks for this project! I was able to get it running on Gentoo Linux.

Could you maybe enhance it so that it recovers automatically after the P1P was powered down for a while and was started again?

At the moment, I have to do it manually by pressing CTRL-C and starting it again.

sidamos avatar Dec 18 '23 15:12 sidamos

I update the code to detect read timeout. It will close stream when timeout error occurs.

You can write a shell script to recover the stream immediately or check the online status of printer then recover the stream.

Currently I don't have enough time to test . Please let me know if there is any problem.

hisptoot avatar Dec 19 '23 06:12 hisptoot

Thank you! BTW, I had to add "-use_wallclock_as_timestamps 1" to the ffmpeg command in your script, so that the stream was convertible to h264 (either directly in this command or by an external converter).

sidamos avatar Dec 19 '23 11:12 sidamos

Just noticed that the process stops when I send a new print job to the printer via the cloud. And I cannot start it again fully until after the printer starts printing. Then I can start it again and it works again. I guess, this is probably not avoidable but is another reason why it would be good if the process recovers by itself.

sidamos avatar Dec 20 '23 10:12 sidamos