Skip to content

Cannot get Epson TM-T88IV Receipt E4 to work #38

@sofianegargouri

Description

@sofianegargouri

Hi,

I can't find a way to make my printer work with this library. It is plugged as USB, and I tried both USB dans NativeUsb drivers, without success.

My latest issue is that I'm getting the no suitable interface number found for USB device, but I can't really understand how and why I'm getting this error.

The printer is currently working with other softwares, and the test page from windows does print something.

I'm not that familiar with Rust, I think I'm here like others because we're trying to make printers work with our Tauri app 😅

Here is the code I have that is raising the error:

let driver_result = NativeUsbDriver::open(0x04b8, 0x0202);

let driver = match driver_result {
  Ok(file) => file,
  Err(error) => panic!("{error:?}"),
};

I got the manufacturer and product id by running the examples available in the repository:

for device in nusb::list_devices().unwrap() {
        println!(
            "Bus: {:03} address: {:03} VID: {:04x} PID: {:04x} Manufacturer: {} Product: {} S/N: {}",
            device.bus_number(),
            device.device_address(),
            device.vendor_id(),
            device.product_id(),
            device.manufacturer_string().unwrap_or_default(),
            device.product_string().unwrap_or_default(),
            device.serial_number().unwrap_or_default(),
        );
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions