Jump to content

Adding another camera


Go to solution Solved by CarloK,

Recommended Posts

Posted (edited) · Adding another camera

id be interested to see if it works for you, incase its something my end. I'll see if i can hunt down another camera just out of interest.

 

Reading above posts, "The camera stream is started for SVGA type". Maybe this is the issue and it can be changed to a res that matches the camera? no idea if that would make it active or not.

Edited by Super_paulie
  • Link to post
    Share on other sites

    Posted · Adding another camera

    No, it is not working.

     

    The cam will be detected automatically after connecting:

    # ls -l /dev/video*

    crw-rw---- 1 root video 81, 0 Oct 19 12:31 /dev/video0

    crw-rw---- 1 root video 81, 1 Oct 19 12:31 /dev/video1

     

    But the mjpg streamer process is only started automatically after a reboot, but then the process for the additional cam is started:

    # ps -ef | grep mjpg

    ultimak+   943     1  0 12:31 ?        00:00:01 /usr/bin/mjpg-streamer -i input_uvc.so -r SVGA -d /dev/video0 -o output_http.so -p 8080

    ultimak+  9812     1  0 12:36 ?        00:00:00 /usr/bin/mjpg-streamer -i input_uvc.so -r SVGA -d /dev/video1 -o output_http.so -p 8081

     

    But it is not working. A telnet localhost 8080 is ok, but 8081 not, looks like there is no service listening on this port. On the other hand the process should listening on 8081.

  • Link to post
    Share on other sites

    Posted · Adding another camera
    On 10/19/2022 at 4:05 AM, Smithy said:

    Here we go:

    https://github.com/SmithyAT/UltiTuner/releases/latest

     

    It changes the firewall rule from 8080 to 8080-8083 so you can add additional 3 webcams if you want.

     

    If you already have activated the additional webcams with UltiTuner and fire the command a second time, you will get a message that your printer is not compatible. That's not nice, but also don't hurt. Will change it to a better message if I have more time.

     

    Additionally I will implement a feature to revert the change with UltiTuner, which is currently not possible.

     

    Usage:

    ultituner webcam -p 192.168.0.123 

     

    Remember to reboot your printer after the change or add the -r flag to the command line.

     

     

    @Smithy could you help get the application running in cmd. I have no experience using cmd. 

  • Link to post
    Share on other sites

    Posted · Adding another camera

    Which OS do you use? Windows?

    Then just open a cmd window (WIN+R and type cmd, press ENTER) 

    Change to your download folder or wherever the ultituner.exe is stored with cd <PATH>

    then just type ultituner.exe, press ENTER

     

  • Link to post
    Share on other sites

    Posted · Adding another camera

    @Smithy Do you think it is possible to use a go pro as the second camera? Let me know. 

  • Link to post
    Share on other sites

    Posted · Adding another camera

    The gopro would have to behave like a webcam. This is possible on your mac/pc, but only with additional software/drivers, and that software/driver cannot be installed on the printer. So, in short: probably not.

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Adding another camera

    I bought some "external" TP-Link Tape C100 webcams, which I have placed above the printers. The webcam is connected to my wifi, can be accessed with an app and don't use a cloud or whatever, so can run fully isolated. But any other cam like that will do the same. 

    • Heart 1
    Link to post
    Share on other sites

    Posted · Adding another camera

    @Smithy I’m trying to add the webcam ultintuner command to my S5. How ever it says not compatible. I have the latest firmware. 

  • Link to post
    Share on other sites

    Posted · Adding another camera

    The release with the webcam was a quick one and was only tested on my S3. But will do some testing on the S5 as well. 

  • Link to post
    Share on other sites

    Posted · Adding another camera

    Is it possible that you have already enabled it?

    It works on the S5 with the latest firmware, but I just checked the code and see that when you already fired to webcam command once, that you will get the error message "not compatible" when you want to send it again.

     

    I have to rewrite the error messages to be more specific, otherwise it is misleading.

  • Link to post
    Share on other sites

    Posted · Adding another camera

    So it is exactly as mentioned above:

     

    First run:

    ❯ ./ultituner -p 192.168.0.55 webcam
    UltiTuner 0.9.0 - Copyright by Smithy (Christian Schmied)
    Connecting to the printer 192.168.0.55.....done, connected
    --------------------
    Ultimaker-S5
    model: 9051
    version: 7.1.3
    --------------------
    Checking printer/firmware compatibility.....done, compatible
    Changing firewall rules.....done

     

    Second run:

    ❯ ./ultituner -p 192.168.0.55 webcam
    UltiTuner 0.9.0 - Copyright by Smithy (Christian Schmied)
    Connecting to the printer 192.168.0.55.....done, connected
    --------------------
    Ultimaker-S5
    model: 9051
    version: 7.1.3
    --------------------
    Checking printer/firmware compatibility.....done, but not compatible

     

    When I find more time I will rewrite the check for compatibility and try to give a more specific and useful error message.

     

     

    • Heart 1
    Link to post
    Share on other sites

    Posted (edited) · Adding another camera

    Hi Smithy,

    as for the Firmware 8.1.2 it seems, that the contents of the nftables_firewall_on.conf file has slightly changed image.thumb.png.b6844bbef3dde663e86ad35a9c36835b.png

    The Line you search for in your compatibility check (add rule ip filter INPUT ip protocol 6 ct state new tcp dport 8080 accept) is now:

    "add rule ip filter INPUT protocol 6 ct state established accept"

     

    I will try to add the line manually and hope i dont break anything.

    This is just FYI.

    Edited by KronosMagna
  • Link to post
    Share on other sites

    Posted · Adding another camera

    Also, can we start a list with supported Cams, that work as an additional cam?
    I can confirm C270 is not working as it wont get initialized.

    I tried C920, that didnt seem to work either.

     @Smithy you tried TP-Link C100 (Tapo?) and they work?

     

     

  • Link to post
    Share on other sites

    Posted · Adding another camera
    1 minute ago, KronosMagna said:

     @Smithy you tried TP-Link C100 (Tapo?) and they work?

    Yes, but this cam is a Wifi cam 🙂 

  • Link to post
    Share on other sites

    Posted · Adding another camera

    Hi guys I want to take snapshot of each layer of my Ultimaker S5  print using an USB camera Logitech C922 Pro Stream Webcam. I want to trigger the camera only when I ask to print head to move slightly and wait for some time

    I have the following questions

    1.       How can I use the USB port of the printer to connect the camera and enable live stream or snapshot

    2.       Do I need to use any additional software i.e Ultituner for doing the above

    3.       Can I use Raspberry Pi/ Octaprint to do so.

    4.       How can I use my Laptop cmd to enable image capturing form the USB camera

     

    Thank you so much

  • Link to post
    Share on other sites

    Posted · Adding another camera
    On 3/27/2023 at 2:15 PM, Smithy said:

    Yes, but this cam is a Wifi cam 🙂 

     

    On 11/25/2022 at 11:13 PM, Smithy said:

    So it is exactly as mentioned above:

     

    First run:

    ❯ ./ultituner -p 192.168.0.55 webcam
    UltiTuner 0.9.0 - Copyright by Smithy (Christian Schmied)
    Connecting to the printer 192.168.0.55.....done, connected
    --------------------
    Ultimaker-S5
    model: 9051
    version: 7.1.3
    --------------------
    Checking printer/firmware compatibility.....done, compatible
    Changing firewall rules.....done

     

    Second run:

    ❯ ./ultituner -p 192.168.0.55 webcam
    UltiTuner 0.9.0 - Copyright by Smithy (Christian Schmied)
    Connecting to the printer 192.168.0.55.....done, connected
    --------------------
    Ultimaker-S5
    model: 9051
    version: 7.1.3
    --------------------
    Checking printer/firmware compatibility.....done, but not compatible

     

    When I find more time I will rewrite the check for compatibility and try to give a more specific and useful error message.

     

     

     

    Hi @Smithy

    I tried the ultituner and it shows compatibility issue. Can you help me in this ..TIA

     

    >ultituner -p <ip> webcam

    UltiTuner 0.9.0 - Copyright by Smithy (Christian Schmied)

    Connecting to the printer <ip>.....done, connected

    --------------------

    UltimakerSPro

    model: 213482 213483 213484 214475 214476 214477 5078167 5078168

    version: 8.3.1

    --------------------

    Checking printer/firmware compatibility.....done, but not compatible

  • Link to post
    Share on other sites

    Posted · Adding another camera
    On 3/23/2022 at 1:23 PM, jeremymorgan said:

    @gr5

    Please can you point me in the direction of your posts regarding adding a second USB camera?

     

    I have tried this on my S3. I plugged a Microsoft Webcam into the front USB port. Both internal and second external cameras are visible if I SSH in to the S3 and look in /dev. I can now see /dev/video0 and /dev/video1 (normally only there is only video0).

     

    The second camera is now available on my S3's IP 'http://<IP address>:8080/?action=stream', but I see nothing on port 8081.

     

    Is it possible to have streaming endpoints for both internal & external cameras? Does this now have to be configured somewhere?

     

    Thanks for any help.

    I had the similar issue I did the following ... install ultituner>> reboot >enable webcam>>(Updated firmawre optional) and it work https://github.com/SmithyAT/UltiTuner/releases/latest

  • Link to post
    Share on other sites

    Posted · Adding another camera
    On 6/19/2024 at 2:36 AM, Abdur said:

    Hi guys I want to take snapshot of each layer of my Ultimaker S5  print using an USB camera Logitech C922 Pro Stream Webcam. I want to trigger the camera only when I ask to print head to move slightly and wait for some time

    I have the following questions

    1.       How can I use the USB port of the printer to connect the camera and enable live stream or snapshot

     

     

    Just get yourself a blink netcam, load the app and go..  no need to start hacking the printer firmware and you get sound too.

    image.thumb.png.564d38ee1527b2257672c3156b567085.png

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...