peripage-python icon indicating copy to clipboard operation
peripage-python copied to clipboard

host is down

Open mycomedico opened this issue 1 year ago • 2 comments

Hi!

I'm having a good deal getting this working on my ubuntu 24.04.

Bluetooth connection looks good. A6 is paired trusted and connected. when I try to run a print job i receive an error that the host is down, any help appreciated:

(peripage-env) rubing@rubing-To-Be-Filled-By-O-E-M:~$ peripage -m 28:82:0B:0A:1D:CC -p A6 -e Traceback (most recent call last): File "", line 3, in connect _bluetooth.error: (112, 'Host is down')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/rubing/peripage-env/bin/peripage", line 8, in sys.exit(main()) ^^^^^^ File "/home/rubing/peripage-env/lib/python3.12/site-packages/peripage/main.py", line 87, in main printer.connect() File "/home/rubing/peripage-env/lib/python3.12/site-packages/peripage/init.py", line 173, in connect self.sock.connect((self.mac, 1)) File "", line 5, in connect bluetooth.btcommon.BluetoothError: [Errno 112] Host is down

mycomedico avatar Jan 24 '25 23:01 mycomedico

Possibly related to https://stackoverflow.com/questions/70603906/

bitrate16 avatar Jan 28 '25 11:01 bitrate16

@mycomedico

Just to be sure what to do, have you tried:

  • Restarting host (pc/laptor/rpi/whatever)
  • Re-plug bluetooth adapter
  • Power off/on printer
  • Disconnect every other device from printer
  • Disconnect every other device from pc/laptop/rpi/whatever
  • Another bluetooth adapter

Can you send bluetooth adapter info, OS info, printer model, version info and python version?

bitrate16 avatar Jan 28 '25 12:01 bitrate16