star-micronics / react-native-star-io10

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

StarSpoolJobSettings not working on TSP650ii #109

Closed manage-some closed 3 months ago

manage-some commented 5 months ago

I have a star tsp650ii printer and it works fine for regular printing jobs using this library. However I need it enable spooler settings in order to printer continues print jobs without missing any print, but I'm having an error when trying to print with spooler settings.

This is my printer settings WhatsApp Image 2024-01-19 at 6 31 20 AM WhatsApp Image 2024-01-19 at 6 31 21 AM

This is the error I'm getting

Screenshot 2024-01-19 at 6 35 29 AM

For Reference, this is the settings on the chip at the back of my printer WhatsApp Image 2024-01-19 at 6 40 17 AM

I'm using the code from the example folder here

Screenshot 2024-01-19 at 6 36 20 AM
bandit-ibayashi commented 5 months ago

@manage-some StarSpoolJobSettings class is available for mC-Label3 (MCL32CI and MCL32CBI) with spooling at the printer. We are afraid to say that this class is not available for the TSP654II.

We would ask for an implementation such as sending the next printout after the printout is completed and successful on the host application side.

スクリーンショット 2024-01-19 115135

manage-some commented 5 months ago

@bandit-ibayashi this class is only available for two models. We're trying to integrate star printer sdk for RN in our POS app which needs to sends regular/simultaneous/overlapping print jobs. We require a queue mechanism so no print misses out. Is there any other way we could achieve the objective if SarSpoolJobSetting class is not supported in majority of models?

Objectives: 1 - Implement Queue mechanism to support multiple print jobs simultaneously 2 - Automatic reprinting (Retry on fail)

The sdk is useless in a practical manner if it does not support the above mentioned points for the majority of the models

bandit-ibayashi commented 4 months ago

@manage-some I'm afraid the late response. It prevents lost print data by holding print data until printing is successfully completed on the host device side and processing errors appropriately.

When printing from multiple host devices to one Ethernet-connected TSP650II, wait until printing from the other device is completed. From your Self-Printing information, TCP#9100 Multi-Session is disabled, so a host device will occupy the communication from StarPrinter.open() to StarPrinter.close() of one host terminal. If another host terminal executes StarPrinter.open() , StarIO10InUseError will be returned. Therefore, waiting for a bit in case of an StarIO10InUseError and then resending the data will allow it to be printed.

When printing from one host device to one TSP650II, a mechanism for holding print data in the application can be implemented so that the next data is printed after one data has been successfully printed, which will ensure reliable printing.

If my understanding is different, please let me know.

Thanks.