İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3978 Görünümler

based on posbox guide , I can't find supported_devices.py and I also can't modify or add any files to that folder because
posbox image version 14 is readonly. Is there any way I can modify ?
when i use "lsusb" command in ssh terminal

i get the following 
Bus 001 Device 004: ID 0416:5011 Winbond Electronics Corp. Virtual Com Port ( this is my printer i think)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
then i issue another command below
lsusb -vvv -d 0416:5011 | grep bEndpointAddress | grep OUT
bEndpointAddress     0x03  EP 3 OUT
how can i make this printer to work ?
I am using raspberry pi 3 Model B with posbox image version 14.Regards,
Soe Khaing
Avatar
Vazgeç
En İyi Yanıt

Did you manage to resovle this?

I manage to add a star printer by runnign this command to first it writable

mount -o remount,rw /


The file you needed to modify is this. 

odoo/addons/hw_escpos/controllers/main.py

printers = usb.core.find(find_all=True, idVendor=0x0d3a)

change the 0x0d3a to your printer Vendor ID

in you case 0416

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ara 22
2341
1
Nis 20
6926
0
Şub 19
3452
1
Tem 18
2354
0
Kas 17
2889