star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
91 stars 55 forks source link

How to connect with USB printers? #92

Closed smalik02 closed 1 year ago

smalik02 commented 1 year ago

Description

I have been able to use the library to discover Bluetooth & WiFi/Lan printers. However, I was wondering how the usb connections would work if an app is running on tablet. Does it require additional hardware to interface with the USB connection? Can it communicate through the Square stand?

Tatsuki-Yamamoto2731 commented 1 year ago

@smalik02 You don't need additional hardware to use USB printer.

To answer your question more correctly, could you please provide the following information?

Regarding printer models supported by Square, please refer to the links below. https://squareup.com/us/en/compatibility/accessories/receipt-printers?country_redirection=true

smalik02 commented 1 year ago

I would be looking at supporting the TSP100IIIU (USB version of the TSP100III).

I don't have the self printing for that printer on hand, but I can get one at a later stage. My question is - how would the tablet pick up the USB printer? I see that there is a Supported external accessory protocols key that you have to use.

gare-bear commented 1 year ago

@smalik02 The TSP100III is an Apple MFi certified product, and we use the External Accessory framework to interface with it. Our library wraps some parts of the External Accessory framework and by specificying that your app supports Star's accessory protocol, you can access the printer.

smalik02 commented 1 year ago

Awesome - that makes sense.