I am paired and connected to printer. When I bluetoothcl conneect, the device beeps (same as it when connecting via phone).
However when I try to run eg. using either of the MACs eg.
python ./__main__.py -m b1 -c bluetooth -a 16:F9:13:17:15:B7 -i ../examples/B21_30x15mm_240x120px.png
I get
$ sudo python ./__main__.py -m b1 -c bluetooth -a 13:16:F9:17:15:B7 -i ../examples/B21_30x15mm_240x120px.png
Traceback (most recent call last):
File "/home/user/workspace/niimprint/niimprint/./__main__.py", line 80, in <module>
print_cmd()
File "/home/user/.cache/pypoetry/virtualenvs/niimprint-PR6jxpar-py3.11/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.cache/pypoetry/virtualenvs/niimprint-PR6jxpar-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/user/.cache/pypoetry/virtualenvs/niimprint-PR6jxpar-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/.cache/pypoetry/virtualenvs/niimprint-PR6jxpar-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/workspace/niimprint/niimprint/./__main__.py", line 59, in print_cmd
transport = BluetoothTransport(addr)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/workspace/niimprint/niimprint/printer.py", line 61, in __init__
self._sock = socket.socket(
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/socket.py", line 232, in __init__
_socket.socket.__init__(self, family, type, proto, fileno)
OSError: [Errno 93] Protocol not supported
USB is not detecting serial port although the printer is listed
lsusb
Bus 002 Device 009: ID 3513:0002 NIIMBOT B1 LABEL PRINTER
and dmesg
[8520142.593368] usb 2-1: new full-speed USB device number 9 using xhci_hcd
[8520142.734201] usb 2-1: New USB device found, idVendor=3513, idProduct=0002, bcdDevice= 1.00
[8520142.734211] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[8520142.734214] usb 2-1: Product: B1 LABEL PRINTER
[8520142.734217] usb 2-1: Manufacturer: NIIMBOT
Hi was wondering if someone could help with following problem. I cannot connect to my B1 neither via USB nor Bluetooth.
When using BT: I see two MACs related
I am paired and connected to printer. When I bluetoothcl conneect, the device beeps (same as it when connecting via phone). However when I try to run eg. using either of the MACs eg.
python ./__main__.py -m b1 -c bluetooth -a 16:F9:13:17:15:B7 -i ../examples/B21_30x15mm_240x120px.png
I get
USB is not detecting serial port although the printer is listed
and dmesg
and udevadm info -a /dev/bus/usb/002/009
Any pointers greatly welcomed :)