gashton / bambustudio_tools

Unofficial BambuStudio tools and scripts
18 stars 2 forks source link

How should I debug bambudiscovery.sh? #3

Open mprowe opened 1 year ago

mprowe commented 1 year ago

I hope you wouldn't mind giving me a pointer to get this working? I have a couple of overview questions, if I may?

  1. Port 2021/udp. I think the port is open, but only when Studio is running? Is this expected? This is nmap with Studio running:
    
    Starting Nmap 7.92 ( https://nmap.org ) at 2023-10-17 14:41 BST
    Nmap scan report for localhost (127.0.0.1)
    Host is up.

PORT STATE SERVICE 2021/udp open|filtered xinuexpansion1

Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds Gzunder:~ #


... and again without Studio running:

```Gzunder:~ # nmap -sU -p 2021 127.0.0.1
Starting Nmap 7.92 ( https://nmap.org ) at 2023-10-17 14:45 BST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000044s latency).

PORT     STATE  SERVICE
2021/udp closed xinuexpansion1

Nmap done: 1 IP address (1 host up) scanned in 0.10 seconds
Gzunder:~ #

If the port is only open when Studio is running, should bambudiscovery.sh be run AFTER Studio? Regards, M

gashton commented 1 year ago

Yes, you need to run it once BambuStudio is running and listening.

That's what this line checks.

mprowe commented 1 year ago

Thank you for confirming that. Would you mind having a look at the following to see if you can see anything else that I can do to investigate?

  1. Run Bambu Studio (from the desktop) and check the process name.
    
    mprowe@Gzunder:~> ps -aux | grep [b]ambu-
    mprowe   31603 24.8  1.2 10184764 419256 ?     Sl   19:50   0:02 /tmp/.mount_Bambu_sGnj9T/bin/bambu-studio
2. Check that port 2021 is open

mprowe@Gzunder:~> sudo nmap -sU -p 2021 127.0.0.1 [sudo] password for root: Starting Nmap 7.92 ( https://nmap.org ) at 2023-10-19 19:53 BST Nmap scan report for localhost (127.0.0.1) Host is up. PORT STATE SERVICE 2021/udp open|filtered xinuexpansion1 Nmap done: 1 IP address (1 host up) scanned in 2.10 seconds

3. Run bambudiscovery.sh

mprowe@Gzunder:~> /home/AppImages/bambudiscovery.sh 192.168.0.82 Please start BambuStudio

Thus, with the message "Please start BambuStudio", I assume all is not well?

Regards, M.