bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
2.25k stars 303 forks source link

Bambu Studio 'forgets' lan mode access if printer is not online when print is startedd0817b8a #3481

Closed DaafSamson closed 9 months ago

DaafSamson commented 10 months ago

Bambu Studio Version

1.8.2.56

Where is the application from?

Bambu Lab Official website

OS version

Windows 11

Additional system information

Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz 2.21 GHz / 32,0 GB Ram

Printer

X1C

How to reproduce

The following assumes you are using the printer in LAN Only mode.

  1. turn off the printer
  2. start a print in studio
  3. wait for connect to the printer to time out
  4. turn on the printer
  5. reconnect in the select printer dialog
  6. get prompted for the printer access code again.

Actual results

Connection fails, with error: "Connect 3DP-XXX-XXX failed! [SN:XXXXXXXXXXXXXX, code=-1]" bug1

Reselecting the printer after it's been turned on, prompts for access code Screenshot 2024-01-26 093910

It seems that on the timeout the access code is deleted from the system.

Expected results

Expected result would be that after turning on the printer, the software still has the lan mode access code an can simply connect

Project file & Debug log uploads

unrelated to project. happens on all projects

Checklist of files to include

DaafSamson commented 10 months ago

I could not easily find related code. Perhaps this is part of the network plugin, not studio itself?

LJKraus commented 10 months ago

Studio updates are frequent, there is not much point in submitting a bug report for anything but the most recent version.

Try using the current version 1.08.04.51, which includes the 1.08.03 connection timeout bugfix.

walterwongbbl commented 10 months ago

@DaafSamson Because we do not manage the access code settings, we hope that users can re-enter them every time. Although it may be a bit troublesome, there is currently no better way. We are conducting large-scale optimization, including input of access code. Thank you very much for your feedback.

AlphaEndgame commented 4 months ago

This is possible to achieve on the latest version 1.9.3.50, at least on Windows:

Open Bambu Studio, go to Device, No Printer, and select your LAN only printer. Input its access code and make sure you can connect to it. Afterwards, close Bambu Studio.

Navigate to the following file:

"C:\Users\\AppData\Roaming\BambuStudio\BambuStudio.conf"

Edit this file and search for "user_access_code"

You will find something like this:

"user_access_code": {
    "<PRINTER_ID>": "<ACCESS_CODE>"
}

Now, change the name of the field to just "access_code", like this:

"access_code": {
    "<PRINTER_ID>": "<ACCESS_CODE>"
}

Save the file. Now, Bambu Studio will remember your printer's access code each time it boots up.

FlorianKuehne commented 4 months ago

It Works in Linux too. Thanks a lot.

Path for me was in /home/user/.config/BambuStudio

diver-ch commented 3 months ago

@AlphaEndgame: Thanks alot! This was buggin' me since several weeks now. In my case there where 2 entries, "access_code" and "user_access_code". The "access_code" contained a old one, the "user_access_code" was correct. I've just updated the "access_code" and just left the user entry aswell > so far it works fine.

Rello commented 3 months ago

macOS: user/Library/Application Support/BambuStudio/BambuStudio.conf

oltsukoo commented 3 months ago

This also works on OrcaSlicer, just make the same change in C:\Users\\AppData\Roaming\OrcaSlicer\OrcaSlicer.conf.

woolmonkey commented 1 month ago

OMG thanks so much this was so annoying and it seems to have fixed it. My thought they are making it less convient for LAN mode since all these outages more people are probably using it and they don't like it.

Gruensil commented 3 weeks ago

Solved my problem on Linux too. I installed with flatpak and config file was under ~/.var/app/com.bambulab.BambuStudio/config/BambuStudio/BambuStudio.conf