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

StarIO10CommunicationError: Open failed. #45

Open
prashant828 opened this issue Jan 29, 2022 · 11 comments
Open

StarIO10CommunicationError: Open failed. #45

prashant828 opened this issue Jan 29, 2022 · 11 comments
Assignees
Labels
Platform: ios Status: help wanted Extra attention is needed Status: work in progress Currently working on this issue Target: stario10 Issues related to the API and other StarIO10 library.

Comments

@prashant828
Copy link

StarIO10CommunicationError: Open failed.

I get printer instance from discovery function, and use that instance to open connection. But it fails, can anybody help ?

@bandit-ibayashi
Copy link
Member

So far our verification has not shown like this report.

  • Device information which this issue occurs (Model name, OS)
  • Printer (Model name, Firmware version, Communication Interface)
  • Development environment
    • The result of executing the command ver on Windows, sw_vers on macOS, uname –a on Linux, or these equivalent commands, and the result of executing the command npx react-native info.
  • Reproduce procedure or your source code

Thank you in advance.

@bandit-ibayashi bandit-ibayashi added the Status: question Further information is requested label Mar 10, 2023
@gare-bear
Copy link
Contributor

@prashant828 please update your post to include all the information we requre in our bug report template

@zacdemi
Copy link

zacdemi commented Dec 20, 2023

This has happened to us a couple times. If we restart the device, forget the bluetooth connection and reconnect then the error goes away.

@shriganesh64
Copy link

shriganesh64 commented Mar 9, 2024

react-native info -

System:
  OS: macOS 14.0
  CPU: (8) arm64 Apple M1
  Memory: 82.48 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.0.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.10
    path: /usr/local/bin/yarn
  npm:
    version: 9.8.1
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.14.0
    path: /Users/shriganeshh/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10811636
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 2.7.4
    path: /Users/shriganeshh/.rvm/rubies/ruby-2.7.4/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

sw_vers -

ProductName:		macOS
ProductVersion:		14.0
BuildVersion:		23A344

Device information in which this issue occurs -

Device name - iPhone 14
OS - iOS 17

Printer -

Model name - TSP143IIIBI
Interface Type - Bluetooth
Firmware version - 3

The issue is on iOS, the connectivity works perfectly but when I try to open the printer, it gives me the error StarIO10CommunicationError: Open failed. But the same functionality works on Android.

FYR - I've also tried the soution given by @zacdemi, didn't work for me.

@can-miki can-miki added Status: work in progress Currently working on this issue Platform: ios Target: stario10 Issues related to the API and other StarIO10 library. and removed Status: question Further information is requested labels May 7, 2024
@can-miki can-miki self-assigned this May 7, 2024
@can-miki
Copy link
Contributor

@shriganesh64
So far, no such report has emerged from our verification. However, we would like to confirm this. Can you provide specifics on how to reproduce this?

@can-miki can-miki added Status: question Further information is requested and removed Status: work in progress Currently working on this issue labels Jul 23, 2024
@shriganesh64
Copy link

shriganesh64 commented Aug 20, 2024

Post connection establishment with the printer I tried to use the printer.open(), This fails with the above error on iOS but works with Android. I'm using the latest star print package with version 1.7.0.

Printer model - TSP100IIIBI, Printer type - Star graphics printer, Interface type - Bluetooth

@bandit-ibayashi bandit-ibayashi added Status: work in progress Currently working on this issue and removed Status: question Further information is requested labels Aug 30, 2024
@can-miki
Copy link
Contributor

Thank you for sharing the information. Please let us know the below:

  1. Can you build an app?
  2. Are you using the CLI? or Expo (EAS)?

@shriganesh64
Copy link

I'm able to build the app, Shared the react-native info here.
We're using the CLI for our app, Tested the integration on a temp project facing the same issue there as well.

react-native info -

System:
  OS: macOS 14.0
  CPU: (8) arm64 Apple M1
  Memory: 82.48 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.0.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.10
    path: /usr/local/bin/yarn
  npm:
    version: 9.8.1
    path: /opt/homebrew/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.14.0
    path: /Users/shriganeshh/.rvm/gems/ruby-2.7.4/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10811636
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.9
    path: /usr/bin/javac
  Ruby:
    version: 2.7.4
    path: /Users/shriganeshh/.rvm/rubies/ruby-2.7.4/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

sw_vers -

ProductName:		macOS
ProductVersion:		14.0
BuildVersion:		23A344

Device information in which this issue occurs -

Device name - iPhone 14
OS - iOS 17

Printer -

Model name - TSP143IIIBI
Interface Type - Bluetooth
Firmware version - 3

The issue is on iOS, the connectivity works perfectly but when I try to open the printer, it gives me the error StarIO10CommunicationError: Open failed. But the same functionality works on Android.

FYR - I've also tried the soution given by @zacdemi, didn't work for me.

@can-miki
Copy link
Contributor

can-miki commented Dec 5, 2024

We apologize for the long wait.
Regarding this problem, StarIO10CommunicationError: Open failed, could restart the printer solve the problem?

This error may occur if you try to connect from another session while a connection session between the printer and the terminal remains.
To identify the problem, could you please try that?

@can-miki can-miki added Status: question Further information is requested and removed Status: work in progress Currently working on this issue labels Dec 6, 2024
@shriganesh64
Copy link

I've tried restarting the printer as well as the application in debug, still facing the same issue on iOS only, works perfectly for Android.

@can-miki can-miki added Status: help wanted Extra attention is needed Status: work in progress Currently working on this issue and removed Status: question Further information is requested labels Dec 16, 2024
@can-miki
Copy link
Contributor

I understood that the issue occurs only on iOS.
I have conducted an investigation on Android, so I will also check on iOS.
Observing the difference in Bluetooth connection methods between iOS and Android, I found that iOS maintains a constant connection between the device and the printer, occupying the connection. On the other hand, Android only connects when printing and does not maintain the connection otherwise.

Is it possible that this difference between the OS is related to the issue?
Additionally, it would be helpful if you could provide detailed reproduction steps so that I can confirm the situation here.
Are you not connecting multiple devices via Bluetooth? Were there any strange changes before or after the error occurred?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: ios Status: help wanted Extra attention is needed Status: work in progress Currently working on this issue Target: stario10 Issues related to the API and other StarIO10 library.
Projects
None yet
Development

No branches or pull requests

6 participants