# Printer.cfg for Anycubic Kobra 2 Plus/Pro/Max

**URL:** https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658
**Category:** Configs
**Created:** [November 17, 2023, 11:56pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658 "2023-11-17T23:56:49Z")
**Posts on this page:** 20
**Page:** 9

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [February 2, 2024, 12:47am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/167 "2024-02-02T00:47:35Z")

</div>

We haven’t found a way to run klipper yet on the default hardware.

But what we have found is we can now create custom .swu updates with custom rootfs and modifications. (This is just a modified image and not one created with some SDK.)

EDIT: We have made the `tools` repo private for now. We just wanna stay in front of anycubic so it will be harder for them to patch our findings.

EDIT 2: Progress is being made! Will take a long time though.

---

<div class="post-metadata">

### Author: ![AGG2020](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AGG2020](https://klipper.discourse.group/u/AGG2020)
#### Post date: [February 2, 2024, 7:05pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/168 "2024-02-02T19:05:41Z")

</div>

One more note here. Use `sudo` for both unsquashfs and mksquashfs because the user must be root, not the one you are using on your linux machine. Alternative way is to use the option -all-root with mksquashfs.

---

<div class="post-metadata">

### Author: ![kt1040](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@kt1040](https://klipper.discourse.group/u/kt1040)
#### Post date: [February 9, 2024, 6:13am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/170 "2024-02-09T06:13:07Z")

</div>

Thanks for your work, sounds good.

Please correct me, if I’m wrong.

My goal would be to have a minimal firmware with moonraker flashed via USB-Stick on the standard hardware and connect to this via WiFi from a box with mainsail or fluidd. In my environment the box would be a Pi.

Does your work go towards this goal?

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [February 9, 2024, 7:01am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/171 "2024-02-09T07:01:16Z")

</div>

Of course. We are progressing! At least understanding things easier now!

---

<div class="post-metadata">

### Author: ![Catnippr](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/catnippr/32/9691_2.png) [@Catnippr](https://klipper.discourse.group/u/Catnippr)
#### Post date: [February 9, 2024, 8:52am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/172 "2024-02-09T08:52:55Z")

</div>

Uuuuhhhh that’s great news! I’m excited! 🥳  
Thanks for your work!

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [February 9, 2024, 2:32pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/173 "2024-02-09T14:32:28Z")

</div>

If anyone want any clues this flashforge ad5m printer literally have the same board as the kobra 2 series t113-s3: [GitHub - FlashforgeOfficial/AD5M\_Series\_Klipper](https://github.com/FlashforgeOfficial/AD5M_Series_Klipper)

---

<div class="post-metadata">

### Author: ![CodexNovus](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/codexnovus/32/8697_2.png) [@CodexNovus](https://klipper.discourse.group/u/CodexNovus)
#### Post date: [February 9, 2024, 3:10pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/174 "2024-02-09T15:10:36Z")

</div>

It may be the same processor but is hardly LITERALLY the same board:  
 ![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/7/75d0c69f2dfd843297d5b217f5b92cf6cbc64d3b.jpeg)

Unfortunately it seems the repository is just almost a copy of the Klipper branch, with the added firmware. No config, only the precompiled code, so I don’t know if we can use this as is. but is a start.

---

<div class="post-metadata">

### Author: ![Rnd2094](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Rnd2094](https://klipper.discourse.group/u/Rnd2094)
#### Post date: [February 9, 2024, 10:35pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/175 "2024-02-09T22:35:05Z")

</div>

Thanks everyone for contributing here. I’ve learned a lot from this thread!

Here is the easiest way I found to access a camera on Kobra 2 max over local network: [https://gist.github.com/EdikSimonian/fef4a9be78410fd688477b3c97880d11](https://gist.github.com/EdikSimonian/fef4a9be78410fd688477b3c97880d11)

---

<div class="post-metadata">

### Author: ![AGG2020](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AGG2020](https://klipper.discourse.group/u/AGG2020)
#### Post date: [February 11, 2024, 2:17am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/176 "2024-02-11T02:17:41Z")

</div>

Did you try to install it and use it? I found that it also needs:  
`opkg install fswebcam`  
Then the python script crashes because the main app takes control over the inserted camera and /dev/video0 is no longer accessible to other processes. When I kill the app the python script start working for a while but then the printer reboots because of that. So, all this to work for the latest version 3.09 needs the main app to be patched to not auto open the inserted device /dev/video0. Maybe it will work in the previous versions where the camera is not yet processed in app.

---

<div class="post-metadata">

### Author: ![Rnd2094](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Rnd2094](https://klipper.discourse.group/u/Rnd2094)
#### Post date: [February 11, 2024, 2:47am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/177 "2024-02-11T02:47:01Z")

</div>

You are correct. I missed mentioning that you need `opkg install fswebcam`. You are also correct about /dev/video0 and there being a race condition between /app and this script. I will try to come up with a cleaner solution but for now you can run `fswebcam -l 1` in terminal before plugging in your webcam just so /app can’t not connect to it. Definitely don’t kill /app process.

---

<div class="post-metadata">

### Author: ![AGG2020](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AGG2020](https://klipper.discourse.group/u/AGG2020)
#### Post date: [February 11, 2024, 4:26am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/178 "2024-02-11T04:26:27Z")

</div>

Killing the app was just to prove that the app was opening this device before the script. Tomorrow I will find a solution by patching the app. Maybe modifying the text /dev/video to something else inside the /app/app will do the trick, one sed line of code. Also I have to add starting the script at boot even though python working all the time might not be a good idea, and checking for webcam presence to use it otherwise to show a default image that the webcam is missing. Try-except should be also included to have no way to crash, etc. improvements. Your idea is great, just needs a bit polishing.

---

<div class="post-metadata">

### Author: ![Rnd2094](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@Rnd2094](https://klipper.discourse.group/u/Rnd2094)
#### Post date: [February 11, 2024, 7:46am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/179 "2024-02-11T07:46:12Z")

</div>

You could also use `lsof | grep video` to find what process has the video open. Turned out there was a way to unbind/bind the uvcvideo module and grab the camera before app does! I fixed the python script. Your sed idea is great I just prefer not to touch the app.

---

<div class="post-metadata">

### Author: ![AGG2020](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@AGG2020](https://klipper.discourse.group/u/AGG2020)
#### Post date: [February 11, 2024, 12:27pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/180 "2024-02-11T12:27:52Z")

</div>

I’m using the latest version 3.0.9. Unfortunately, your last solution is still not working for me. I prefer patching. The main app does not need camera access at all. AC may want to video spy us with this constant connection to their cloud. I don’t need that.

 ![error](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/9/91e6e2807bd1e56452d36aa8a00ba16162c0c06c.png)

It needed just this:  
sed -i ‘s/video4linux/videoXlinux/g’ /app/app && sync && reboot

and now all is working, no more camera icon on the top right corner of the screen, no more cloud \<\> video communication.

Under auto detect a camera I mean something like this:

```auto
# Function to continuously capture images
def capture_images():
    while True:
        # Capture an image to a temporary file
        subprocess.run(["rm", "-f", TEMP_IMAGE_PATH])
        subprocess.run(["fswebcam", "--no-banner", "-r", "1024x576", TEMP_IMAGE_PATH])
        # Atomically move the temporary file to the target file
        try:
            shutil.move(TEMP_IMAGE_PATH, IMAGE_PATH)
            time.sleep(2) # Wait for 2 second before capturing the next image
        except:
            print("Couldn't connect to the camera!")
            time.sleep(10)

```

It is waiting for a camera, if present start generating images, if disconnected wait for connection and recover. In the exept we can add also:

```auto
shutil.copy(DEFAULT_IMAGE_PATH, IMAGE_PATH)

```

to show a default image on the web interface that the camera is disconnected, not the latest taken image which is no longer valid.

---

<div class="post-metadata">

### Author: ![Dump](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dump](https://klipper.discourse.group/u/Dump)
#### Post date: [February 12, 2024, 11:34pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/181 "2024-02-12T23:34:37Z")

</div>

We’ve made significant progress, but to continue our journey, we need the expertise of exceptional individuals. We’re actively seeking seasoned Linux specialists, adept electronic engineers, proficiency in Chinese as a secondary language is highly advantageous (but not mandatory), proficient programmers, skilled reverse engineers, and DSP experts.

If you possess any of these talents, we invite you to join us in our endeavors. Please direct message @Matm8p (tg) explaining who you are, how you can contribute, and provide your username here. We prioritize efficient contributors and won’t add lurkers or those unable to contribute effectively.

Thank you.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [February 14, 2024, 8:00pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/182 "2024-02-14T20:00:17Z")

</div>

2 posts were split to a new topic: [Storage place of Gcode files](https://klipper.discourse.group/t/storage-place-of-gcode-files/14113)

---

<div class="post-metadata">

### Author: ![ultimatelifeform](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ultimatelifeform/32/8342_2.png) [@ultimatelifeform](https://klipper.discourse.group/u/ultimatelifeform)
#### Post date: [February 16, 2024, 3:39pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/183 "2024-02-16T15:39:41Z")

</div>

Nvm I got them!

Also btw I’m taking down the old tina SDK copy I have on my bucket.

Since it’s old and not relevant.

---

<div class="post-metadata">

### Author: ![Fajka](https://avatars.discourse-cdn.com/v4/letter/f/3e96dc/32.png) [@Fajka](https://klipper.discourse.group/u/Fajka)
#### Post date: [February 19, 2024, 9:12am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/184 "2024-02-19T09:12:22Z")

</div>

Hi, I am a beginner in 3D printing, I have a Kobra 2 Plus printer. I would like a 100C heat bed.  
I can’t connect to the printer by IP address to rewrite this setting ☹ I pinged the printer and the connection is established between the printer and the PC.  
Can someone help me and send me a firmware to get the 105C heat bed

---

<div class="post-metadata">

### Author: ![Dump](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dump](https://klipper.discourse.group/u/Dump)
#### Post date: [February 19, 2024, 10:18pm UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/185 "2024-02-19T22:18:25Z")

</div>

Hi, and welcome.  
Is not by pinging your machine that you will be able to change the hotbed temp.  
You don’t even need root the machine to do that, you can overwrite the printer cfg by “printing” g-codes found by an our friend here (just read).  
If in you, I would not set the hotbed to 100c especially with that little mosfet that does not even have an heatsink.  
Feel free to try if you want but you might risk to ruin something.

Good luck

---

<div class="post-metadata">

### Author: ![KirbyCrouton](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/kirbycrouton/32/10021_2.png) [@KirbyCrouton](https://klipper.discourse.group/u/KirbyCrouton)
#### Post date: [February 20, 2024, 1:17am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/186 "2024-02-20T01:17:59Z")

</div>

> [@Fajka](#):
>
> Can someone help me and send me a firmware to get the 105C heat bed

Sorry, thats not really how it works and is a terrible idea.

1. Custom/modifiable firmware is not available for the Kobra 2 series (including your Plus).
2. Even if it were, the unit is only rated for a 90C heatbed. Trying to crank it above that would be a bad idea as the heater bed itself is not rated for higher than that, never mind the electronics. Think fire/meltdown.

![image](https://global.discourse-cdn.com/free1/uploads/klipper/original/2X/6/6556557d9fdbede4b7b700f3b65eff3158304774.png)

If you need greater than 100C heatbed, you’re going to want to use a printer with a heatbed designed for that.

---

<div class="post-metadata">

### Author: ![idontnowcoding](https://avatars.discourse-cdn.com/v4/letter/i/7feea3/32.png) [@idontnowcoding](https://klipper.discourse.group/u/idontnowcoding)
#### Post date: [February 20, 2024, 8:41am UTC](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658/187 "2024-02-20T08:41:11Z")

</div>

Hi everyone, now I can get the root acces and I was able to install ssh thing but I don’t now how to use ssh, how I am gonna connect via putty, when I use hostname -i command only thing that I see is TinaLinux name, can someone can help me with that issue, I will be appreciated.

[Previous page](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658.md?page=8)

[Next page](https://klipper.discourse.group/t/printer-cfg-for-anycubic-kobra-2-plus-pro-max/11658.md?page=10)
