Open CozmoCyke opened 4 years ago
i have the same error... first i tried the example with -m 6. this went good. after that i tried -m 1, followed by -m 2, ... now i always get that lang id error event when not usinf -m and -s option...
pi@raspberry:~ $ sudo python3 ~/led-name-badge-ls32/led-badge-11x44.py -m 6 -s 8 "Hello World!"
using [LSicroelectronics LS32 Custm HID] bus=1 dev=4
Type: 11x44
pi@raspberry:~ $ sudo python3 ~/led-name-badge-ls32/led-badge-11x44.py -m 1 -s 8 "Hello World!"
Traceback (most recent call last):
File "/home/pi/led-name-badge-ls32/led-badge-11x44.py", line 475, in <module>
print("using [%s %s] bus=%d dev=%d" % (dev.manufacturer, dev.product, dev.bus, dev.address))
File "/usr/lib/python3/dist-packages/usb/core.py", line 852, in manufacturer
self._manufacturer = util.get_string(self, self.iManufacturer)
File "/usr/lib/python3/dist-packages/usb/util.py", line 325, in get_string
langid
File "/usr/lib/python3/dist-packages/usb/control.py", line 173, in get_descriptor
data_or_wLength = desc_size)
File "/usr/lib/python3/dist-packages/usb/core.py", line 1043, in ctrl_transfer
self.__get_timeout(timeout))
File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 883, in ctrl_transfer
timeout))
File "/usr/lib/python3/dist-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 32] Pipe error
pi@raspberry:~ $ sudo python3 ~/led-name-badge-ls32/led-badge-11x44.py -m 2 -s 8 "Hello World!"
Traceback (most recent call last):
File "/home/pi/led-name-badge-ls32/led-badge-11x44.py", line 475, in <module>
print("using [%s %s] bus=%d dev=%d" % (dev.manufacturer, dev.product, dev.bus, dev.address))
File "/usr/lib/python3/dist-packages/usb/core.py", line 852, in manufacturer
self._manufacturer = util.get_string(self, self.iManufacturer)
File "/usr/lib/python3/dist-packages/usb/util.py", line 314, in get_string
raise ValueError("The device has no langid")
ValueError: The device has no langid
EDIT: here the dmesg log:
[33049.942741] usb 1-1.4: new full-speed USB device number 4 using xhci_hcd
[33050.077979] usb 1-1.4: New USB device found, idVendor=0416, idProduct=5020, bcdDevice= 0.00
[33050.077996] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[33050.078009] usb 1-1.4: Product: LS32 Custm HID
[33050.078021] usb 1-1.4: Manufacturer: LSicroelectronics
[33050.093768] input: LSicroelectronics LS32 Custm HID as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:0416:5020.0005/input/input9
[33050.094147] hid-generic 0003:0416:5020.0005: input,hidraw2: USB HID v1.10 Device [LSicroelectronics LS32 Custm HID] on usb-0000:01:00.0-1.4/input0
[33747.480050] xhci_hcd 0000:01:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[33747.480060] xhci_hcd 0000:01:00.0: Looking for event-dma 000000001ed5d000 trb-start 000000001ed5d040 trb-end 000000001ed5d040 seg-start 000000001ed5d000 seg-end 000000001ed5dff0
[33747.481042] xhci_hcd 0000:01:00.0: ERROR Transfer event TRB DMA ptr not part of current TD ep_index 1 comp_code 1
[33747.481050] xhci_hcd 0000:01:00.0: Looking for event-dma 000000001ed5d010 trb-start 000000001ed5d040 trb-end 000000001ed5d040 seg-start 000000001ed5d000 seg-end 000000001ed5dff0
disconnect and reconnect the device will fix that issue for me on linux.
EDIT2: i can performe one or two shots in a row, before it breaks again. then i have to disconnect/reconnect the device again, to be able to do a new programming shot (seems to be related to #1)
Hello,
The "hello world" example is running ok : ) But I have an error when I want to use builtin icon : (
Windows 7 , Python 3.5.4 64 bits
D:\dev\sertronics\led-name-badge-ls32-master>python led-badge-11x44.py :ball: Traceback (most recent call last): File "led-badge-11x44.py", line 475, in
print("using [%s %s] bus=%d dev=%d" % (dev.manufacturer, dev.product, dev.bu
s, dev.address))
File "C:\Python35\lib\site-packages\usb\core.py", line 852, in manufacturer
self._manufacturer = util.get_string(self, self.iManufacturer)
File "C:\Python35\lib\site-packages\usb\util.py", line 314, in get_string
raise ValueError("The device has no langid")
ValueError: The device has no langid