Avisos
Vaciar todo

How to Update?  

Página 3 / 3
  RSS
DadBod
(@dadbod)
Miembro
RE: How to Update?

Wow I take that back, I just haven't used this PI3 in so long, the base image had the camera disabled. Both USB and Onboard camera work perfectly it seems in the latest build. Nice work dude!

Respondido : 07/02/2023 2:11 pm
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

Awesome, glad to hear that. Let me know if any unexpected bugs crop up.

Respondido : 07/02/2023 2:23 pm
DadBod
(@dadbod)
Miembro
RE:

When I initially start the device (the pi) everything loads, and the info on the PICamera is shown. It grabs an initial image, and it displays it, it shows BOTH my USB cam and my PiCam. But then some time immediately after, it disconnects the Picam, the USB stays running/good. 

I see the following error all though the syslog, but its not super helpful. Any thoughts on what might be helpful to troubleshoot? Thanks!

 prusa.link.cameras.picamera_driver[709]: WARNING: Taking a photo! {take_a_photo():291}Feb 7 17:10:41 PrusaLink camera_driver[709]: ERROR: The driver PiCamera broke while taking a photo. Disconnecting {_photo_taker():234}#012Traceback (most recent call last):#012 File "/home/pi/.local/lib/python3.9/site-packages/prusa/connect/printer/camera_driver.py", line 232, in _photo_taker#012 snapshot.data = self.take_a_photo()#012 File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/cameras/picamera_driver.py", line 301, in take_a_photo#012 raise TimeoutError("Taking a photo timed out")#012TimeoutError: Taking a photo timed out
Esta publicación ha sido modificada el hace 2 years por DadBod
Respondido : 07/02/2023 5:20 pm
DadBod
(@dadbod)
Miembro
RE: How to Update?

Just as a heads up, I've tried searching the syslog for anything more helpful and haven't seen anything yet that indicates an initial error/issue.

Respondido : 07/02/2023 5:36 pm
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

Ah, sorry, missed the first message, hm, somehow it gets stuck while taking a photo. I should have inserted an interesting logger trigger when this happens. Will make a branch that does this so we can look where did it get stuck.

A stuck camera should get auto re-connected in the master, does that succeed?

Respondido : 07/02/2023 5:41 pm
bendrumin
(@bendrumin)
Active Member
RE: How to Update?

After updating from RC1, I get this error while starting,

 

Traceback (most recent call last):

  File "/home/pi/.local/bin/prusalink", line 5, in <module>

    from prusa.link.__main__ import main

  File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/__main__.py", line 28, in <module>

    from .daemon import Daemon  # noqa: E402

  File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/daemon.py", line 11, in <module>

    from .printer_adapter import prusa_link

  File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/printer_adapter/prusa_link.py", line 22, in <module>

    from ..cameras.v4l2_driver import V4L2Driver

  File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/cameras/v4l2_driver.py", line 20, in <module>

    from .encoders import MJPEGEncoder, BufferDetails, get_appropriate_encoder

  File "/home/pi/.local/lib/python3.9/site-packages/prusa/link/cameras/encoders.py", line 19, in <module>

    jpeg = TurboJPEG()

  File "/home/pi/.local/lib/python3.9/site-packages/turbojpeg.py", line 298, in __init__

    self.__find_turbojpeg() if lib_path is None else lib_path)

  File "/home/pi/.local/lib/python3.9/site-packages/turbojpeg.py", line 926, in __find_turbojpeg

    raise RuntimeError(

RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually.

e.g. jpeg = TurboJPEG(lib_path)

 

Any help?

Respondido : 07/02/2023 5:44 pm
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

You must have updated from the repo without re-flashing. Please don't do that for this bump. They switched over to libcamera and we added TurboJPEG as a dependency. You probably don't have it installed

Respondido : 07/02/2023 5:56 pm
DadBod
(@dadbod)
Miembro
RE: How to Update?

No, it never recovers. Just constantly tries to take a pic with the PICamera, and can't, times out, retries.

I should note I've tried a Variety of ways to BREAK this, and so far, everything is working really well. You can hot swap cameras in and out, and they just get picked up. Its slick.

One thing that I'm working to do, is create a Nozzle cam, and a bed cam. Idk how many other people are going to use a setup like that, and not asking for anything special, just know that that is my use case 🙂 PiCamera for the Bed cam, and a USB camera for the close up nozzle cam.

Respondido : 07/02/2023 6:04 pm
Tojik
(@tojik)
Miembro Moderator
RE:

You say you've tried a variety ways to break this. Do you mean USB cameras? The PiCamera hardly takes one photo regardless what you do. Right?

I have created a branch called diagnose-stuck-cameras in SDK and PrusaLink. If you instal these, any time the camera is determined to be stuck, it should output a ~300-500 lines of output including the stack traces of all threads. I'm interested in the stack trace of the thread(s) named Photographer

2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]: Thread Photographer stack trace: 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/opt/pycharm-professional/plugins/python/helpers/pydev/_pydev_bundle/pydev_monkey.py", line 795, in __call__ 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     ret = self.original_func(*self.args, **self.kwargs) 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/usr/lib/python3.10/threading.py", line 973, in _bootstrap 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     self._bootstrap_inner() 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     self.run() 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/usr/lib/python3.10/threading.py", line 953, in run 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     self._target(*self._args, **self._kwargs) 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/home/tojik/git/Prusa-Connect-SDK-Printer/prusa/connect/printer/camera_driver.py", line 232, in _photo_taker 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     snapshot.data = self.take_a_photo() 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:   File "/home/tojik/git/Prusa-Link/prusa/link/cameras/v4l2_driver.py", line 514, in take_a_photo 
2023-02-07 19:07:09,803 WARNING {camera_governor._govern():33} [camera_governance]:     sleep(50) 

 Send more if you don't feel like digging

Respondido : 07/02/2023 6:16 pm
DadBod
(@dadbod)
Miembro
RE: How to Update?

Where is this logged to? Not seeing it in syslog...

Respondido : 07/02/2023 6:53 pm
Tojik
(@tojik)
Miembro Moderator
RE:

Would you consider hopping into the discord server for instant messaging stuff? https://discord.gg/ntFX3wk
It should be in the syslog. If it's not i'm suspecting either the install not working, or maybe i screwed up somewhere.
Did you do

git fetch
git checkout diagnose-stuck-cameras
[sudo ]pip install .

for both the SDK and Link?

Respondido : 07/02/2023 6:58 pm
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

Found the picamera problem in the master, if anyone else is looking at this, it fixed in a branch diagnose-stuck-cameras and soon will be in master

Respondido : 08/02/2023 1:44 pm
bendrumin
(@bendrumin)
Active Member
RE: How to Update?

I am stuck with a loop of downloading the .ini file, where do I upload it?

Respondido : 08/02/2023 8:24 pm
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

Okay, this thread is getting very long and off topic. I'll create a new one for @bendrumin - https://forum.prusa3d.com/forum/postid/637611/

Respondido : 09/02/2023 9:40 am
FoxRun3D
(@foxrun3d)
Famed Member
RE: How to Update?

Thank you 😊 

 

Formerly known on this forum as @fuchsr -- until all hell broke loose with the forum software...

Respondido : 09/02/2023 11:34 am
Mathieu
(@mathieu-3)
Eminent Member
RE: How to Update?

If it can help someone else... I have upgraded from 0.7.0 rc1 ro 0.7.0 rc3 with:

prusalink stop

sudo apt-get update
sudo apt-get upgrade
sudo apt install git python3-pip pigpio libcap-dev libmagic1 libturbojpeg0 libatlas-base-dev

pip3 install -U  https://[email protected]/prusa3d/Prusa-Connect-SDK-Printer/archive/refs/tags/0.7.0rc3.tar.gz 
pip3 install -U  https://[email protected]/prusa3d/Prusa-Link/archive/refs/tags/0.7.0rc3.tar.gz 

prusalink start

I am now trying to make it work with Home Assistant but I get an error.

Respondido : 18/03/2023 8:43 pm
KmanSweden y Tojik me gusta
KmanSweden
(@kmansweden)
Active Member
RE: How to Update?

So how IS it actually done via SSH?

Respondido : 06/04/2023 6:56 am
KmanSweden
(@kmansweden)
Active Member
RE: How to Update?

Thanks @Mathieu.

 

Respondido : 06/04/2023 7:11 am
Tojik
(@tojik)
Miembro Moderator
RE: How to Update?

Just a reminder, going from 0.6.x to 0.7.0 uing this will not make your picameras work. Everything else hopefully will. Flash the rc3 image to have that work

Respondido : 06/04/2023 8:49 am
Página 3 / 3
Compartir: