Badge Magic

Badge Magic

1/ Répertoire de travail.

util01@station66:~$ mkdir BADGEMAGIC
util01@station66:~$ cd BADGEMAGIC/
util01@station66:~/BADGEMAGIC$

2/ Installation des paquets Python.

util01@station66:~/BADGEMAGIC$ sudo pip3 install pyhidapi
util01@station66:~/BADGEMAGIC$ sudo pip install pyhidapi
util01@station66:~/BADGEMAGIC$ sudo pip install pillow
util01@station66:~/BADGEMAGIC$ sudo apt-get install libhidapi-hidraw0

3/ Configuration.

util01@station66:~/BADGEMAGIC$ sudo ln -s /usr/lib/x86_64-linux-gnu/libhidapi-hidraw.so.0 /usr/local/lib/

4/ Branchement du badge.

5/ Téléchargement du code source de l’application de gestion des leds du badge.


util01@station66:~/BADGEMAGIC$ git clone https://github.com/fossasia/led-name-badge-ls32.git

6/ Vérification.

util01@station66:~/BADGEMAGIC$ dmesg
...
[ 355.220939] usb 6-1: new full-speed USB device number 2 using ohci-pci
[ 355.416136] usb 6-1: New USB device found, idVendor=0416, idProduct=5020
[ 355.416140] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 355.416144] usb 6-1: Product: LS32 Custm HID
[ 355.416146] usb 6-1: Manufacturer: LSicroelectronics
[ 355.422780] input: LSicroelectronics LS32 Custm HID as /devices/pci0000:00/0000:00:13.1/usb6/6-1/6-1:1.0/0003:0416:5020.0005/input/input15
[ 355.423123] hid-generic 0003:0416:5020.0005: input,hidraw4: USB HID v1.10 Device [LSicroelectronics LS32 Custm HID] on usb-0000:00:13.1-1/input0

util01@station66:~/BADGEMAGIC$ sudo apt install input-utils
util01@station66:~/BADGEMAGIC$ sudo lsinput
...
/dev/input/event12
bustype : BUS_USB
vendor : 0x416
product : 0x5020
version : 272
name : "LSicroelectronics LS32 Custm HID"
phys : "usb-0000:00:13.1-1/input0"
uniq : ""
bits ev : (null) (null)

7/ Envoi de message vers le badge.

util01@station66:~/BADGEMAGIC/led-name-badge-ls32$ sudo python3 ./led-badge-11x44.py "Ilard/Hacklab - Samuel"
using [LSicroelectronics LS32 Custm HID] int=0 page=12080 via pyHIDAPI
Type: 11x44
util01@station66:~/BADGEMAGIC/led-name-badge-ls32$

8/ Lien.

https://github.com/fossasia/led-name-badge-ls32

Comments are closed, but trackbacks and pingbacks are open.