I have HSP7000 printer. following is device details.
https://starmicronics.com/support/products/hsp7000-support-page/
I’m using windows 10 so I have installed required drivers and lib.
and I have try to use PyUSB lib. of python to read data of cheque from HSP7000 as it’s getting connected using USB to my system.
but I’m not able to read data.
does any one have any idea how to read data of cheque from HSP7000 machine?
Thank You
import usb.core
import usb.util
VENDOR_ID = 'VID_0519'
PRODUCT_ID = 'PID_0002'
# Find the device USBVID_0519&PID_0002
dev = usb.core.find(idVendor=VENDOR_ID, idProduct=PRODUCT_ID) # Replace with your device's vendor and product IDs
dev.set_configuration()
def read_data():
while True:
try:
data = dev.read(0x81, 64, timeout=100) # Adjust endpoint and buffer size as needed
print("Received:", data)
except usb.core.USBError as e:
print(e)
# Example: Start reading data
read_data()
New contributor