WebBluetoothCG / demos

Demo applications showing off Web Bluetooth
https://webbluetoothcg.github.io/demos/
Apache License 2.0
624 stars 188 forks source link

Printer not working #64

Closed archimede2021 closed 5 years ago

archimede2021 commented 7 years ago

Hi guys

Just tested Bluetooth demo with the printer and it doesn't work.

I have enabled chrome experimental web platform feature . chrome://flags/#enable-experimental-web-platform-features

No device in list to pair when I tap print button.

Any advice?

Thank you

beaufortfrancois commented 7 years ago

Which OS did you test with? Can you share logs? see https://www.chromium.org/developers/how-tos/file-web-bluetooth-bugs

andersonprante commented 7 years ago

Hello guys, first sorry my english.. I was very excited with the printer example, but does not work.

I am using Android 7.1.2. When i click on button print, i select a printer on list, but nothing happens. Debugging on chrome, i note that the code stop on "device.gatt.connect()".

Any advice? Thanks

beaufortfrancois commented 7 years ago

@entertailion may help

NoRulesJustFeels commented 7 years ago

Unfortunately, I don't have the printer with me. You might want to try this on a different platform like a desktop or a chromebook to see if it makes any difference.

andersonprante commented 7 years ago

Hello guys, i forgot to comment, but I already tested with my notebook, but it also did not work...

NoRulesJustFeels commented 7 years ago

On a chromebook it is possible to enable logging for the bluetooth stack and that might give a better idea of what is going wrong. You will have to use the command line console to do this while trying to connect to the device via the browser.

scheib commented 7 years ago

https://www.chromium.org/developers/how-tos/file-web-bluetooth-bugs has tips for getting logs.

On Fri, Jul 7, 2017 at 8:21 AM, Leon Nicholls notifications@github.com wrote:

On a chromebook it is possible to enable logging for the bluetooth stack and that might give a better idea of what is going wrong. You will have to use the command line console to do this while trying to connect to the device via the browser.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/WebBluetoothCG/demos/issues/64#issuecomment-313712332, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXnm4Ynpht4XEOr6wfYEm5TxLlBks-eks5sLk0HgaJpZM4MkN8d .

andersonprante commented 7 years ago

I'm tried view chrome://bluetooth-internals on google-chrome in android 7.1.2. Follows some screenshots... It seems to me that my printer is not compatible because GATT "never connect" imagem_montada

scheib commented 7 years ago

Can https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=en connect?

g-ortuno commented 7 years ago

The printer linked above does not support BLE (Bluetooth 4.0)[1] it only supports Bluetooth 2.0. So it would not work with Web Bluetooth.

andersonprante commented 7 years ago

@scheib Yes connected resultado_programa

scheib commented 7 years ago

g-ortuno@ has it right (but had a typo in comment, since it does not support BLE it "would not work with Web Bluetooth") (I'll edit the comment to correct it). nrf connect also shows that because after connecting you can see it doesn't have any printing services listed.

andersonprante commented 7 years ago

Thank's for all, I knew it that works only BLE devices. My printer support bluetooth 4.0 but not BLE, the solution i found, was to use a cordova plugin, and make a hybrid app.

getgizmo commented 5 years ago

Does this software only work with BLE devices? I have this same printer, and its got 4.0 support but not sure if the software has been updated to give it support.