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

Can't print after selecting the printer #192

Open
jsy11 opened this issue Apr 30, 2024 · 8 comments
Open

Can't print after selecting the printer #192

jsy11 opened this issue Apr 30, 2024 · 8 comments

Comments

@jsy11
Copy link

jsy11 commented Apr 30, 2024

Hello,

We were able to make the bluetooth label printer on the list. However, upon selecting the printer nothing happens.

Can you advise how we can make it print on connected bluetooth label printer?

Thanks so much for your help in advance,

7863D6CE-CCE1-4719-B804-ED9F1EFF64B6

@TareqFl
Copy link

TareqFl commented May 5, 2024

2
D/BluetoothSocket( 6613): close() this: XX:XX:XX:XX:07:97, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@7ebaab1, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@33fcb96, mSocket: null, mSocketState: CLOSED
E/DeviceConnFactoryManager( 6613): ******************* close Port macAddress -> 86:67:7A:00:07:97
I/BluetoothAdapter( 6613): cancelDiscovery
I/BluetoothSocket( 6613): connect() for device XX:XX:XX:XX:07:97 called by pid: 6613
W/System.err( 6613): java.io.IOException: bt socket closed, read return: -1
W/System.err( 6613): at android.bluetooth.BluetoothSocket.read(BluetoothSocket.java:797)
W/System.err( 6613): at android.bluetooth.BluetoothInputStream.read(BluetoothInputStream.java:91)
W/System.err( 6613): at java.io.InputStream.read(InputStream.java:218)
W/System.err( 6613): at com.gprinter.io.BluetoothPort.readData(BluetoothPort.java:130)
W/System.err( 6613): at com.example.bluetooth_print.DeviceConnFactoryManager.readDataImmediately(DeviceConnFactoryManager.java:308)
W/System.err( 6613): at com.example.bluetooth_print.DeviceConnFactoryManager$PrinterReader.run(DeviceConnFactoryManager.java:387)
E/BluetoothPort( 6613): connection device is lost
E/DeviceConnFactoryManager( 6613): ******************* read 0
E/DeviceConnFactoryManager( 6613): ******************* wait read
E/BluetoothPort( 6613): read length1
E/DeviceConnFactoryManager( 6613): ******************* read 1
E/DeviceConnFactoryManager( 6613): ******************* wait read

i keep on geting wait read , im using a bluetooth thermal printer that support reciept and label printing

@AmanBhangre
Copy link

I am facing the same issue. Did you find any resolution?

@jsy11
Copy link
Author

jsy11 commented May 18, 2024

I am facing the same issue. Did you find any resolution?

no... same. hopefully the contributors can address this issue soon.

@AmanBhangre
Copy link

I am facing the same issue. Did you find any resolution?

no... same. hopefully the contributors can address this issue soon.

I finally found the solution. Basically the package was not supporting the Bluetooth version of my printing device which is V2. I found this flutter blue plus package which worked really well with V2 devices.

@jsy11
Copy link
Author

jsy11 commented May 20, 2024

flutter blue plus package ? can you share the url? I can't find this.

@AmanBhangre
Copy link

flutter blue plus package ? can you share the url? I can't find this.

Here it is : https://pub.dev/packages/flutter_blue_plus

@jsy11
Copy link
Author

jsy11 commented May 20, 2024

I am facing the same issue. Did you find any resolution?

no... same. hopefully the contributors can address this issue soon.

I finally found the solution. Basically the package was not supporting the Bluetooth version of my printing device which is V2. I found this flutter blue plus package which worked really well with V2 devices.

Thanks! will explore this.

@jsy11
Copy link
Author

jsy11 commented May 23, 2024

The library you recommend not supported in printing as they dnt support Bluetooth classic and printer uses Bluetooth classic not BLE. "❗ Bluetooth Classic is not supported ❗ i.e. Arduino HC-05 & HC-06, speakers, headphones, mice, keyboards, gamepads, and more are not supported. These all use Bluetooth Classic. Also, iBeacons are not supported on iOS. Apple requires you to use CoreLocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants