Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port open failure may occur on LAN I/F with continuous open/close #128

Open
bandit-ibayashi opened this issue Nov 5, 2024 · 0 comments
Open
Assignees
Labels
Platform: ios Status: work in progress Currently working on this issue Target: stario10 Issues related to the API and other StarIO10 library. Type: bug Something isn't working

Comments

@bandit-ibayashi
Copy link
Member

Phenomenon

When repeatedly printing with an execution of StarPrinter.open() and StarPrinter.close() methods via LAN interface, StarIO10Error.inUse error may be occurred in StarPrinter.open() method.

Conditions for Occurrence

Cause

It has been identified that after calling the iOS API by Apple Inc. to close the communication port of the printer, there can be a delay before the iOS device sends the communication for the closing process.
During this interval, until the printer receives the port closing process from the iOS device, the next port opening will fail.

Workaround

If the StarIO10Error.inUse error is thrown, please add an wait for approximately 500 milliseconds (*) before re-executing the StarPrinter.open() method.

  • In our testing, we have confirmed that a wait time of 500 milliseconds prevents this issue from occurring. However, please adjust according to your individual environment.
@bandit-ibayashi bandit-ibayashi added Type: bug Something isn't working Status: work in progress Currently working on this issue Platform: ios Target: stario10 Issues related to the API and other StarIO10 library. labels Nov 5, 2024
@bandit-ibayashi bandit-ibayashi self-assigned this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: ios Status: work in progress Currently working on this issue Target: stario10 Issues related to the API and other StarIO10 library. Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant