cstimer icon indicating copy to clipboard operation
cstimer copied to clipboard

Connect Giiker cube under Linux/Ubuntu

Open peisenh opened this issue 5 years ago • 5 comments

I have some strange behaviour here:

If a try to use cstimer under Linux/Chome and connect my Giiker i3se the cube is not shown in the windows which is searching for bluetooth devices - so I cannot connect.

Using chrome://bluetooth-internals/#devices a can see the device. If a then inspect and connect the device with bluetooth-internals: Trying then to use cstimer shows the device, I can connect and everything is working fine. Trying without this connect on bluetooth will not show the cube.

This is strange since e.g. https://avaver.github.io can be used without this workaround using the same system/browser.

Anybody else having this problem? Any idea which could be the cause of the problem?

Greetings, Peter

peisenh avatar Dec 19 '19 20:12 peisenh

I cannot reproduce the bug. The connection logic of cstimer and avaver.github.io is almost the same. What's the device name of your cube?

cs0x7f avatar Jan 01 '20 08:01 cs0x7f

I did some further tests.

Looking into the source there seems to be a filter of services for the bluetooth connection in bluetooth.js (that is the difference since e.g. avaver.github.io is only filtering namePrefix)

One of he filtered service is showing up for the cube: UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) UUID: Unknown (0000aaaa-0000-1000-8000-00805f9b34fb) UUID: Unknown (0000aadb-0000-1000-8000-00805f9b34fb)

So the cube should be shown in the bluetooth windows but is missing.

After deleting the services filters but leaving the namePrefix filters from bluetooth.js the cube is then shown and everything is fine.

Looks like some weird behaviour/bug of service filtering under Linux and Chrome.

Did you really try to reproduce this under linux or some other system?

Greetings, Peter

peisenh avatar Jan 01 '20 10:01 peisenh

I tried chromium in ubuntu 18.04, everything works as expected for my Giiker i3S.

cs0x7f avatar Jan 01 '20 10:01 cs0x7f

Tested here with Ubuntu 18.04. Both chromium and latest stable chrome from google showing the same. Also tested with Ubuntu 18.04 and chrome stable 14 days ago under different hardware.

Cube I am using is Giiker i3se (2019 version), so this is a difference.

peisenh avatar Jan 01 '20 11:01 peisenh

I am not sure whether this belongs here, but if it does the title of this issue should probably be changed I have the exact same problem with my Giiker i3se on my phone (android/chrome):

I was able to connect the cube with chrome://bluetooth-internals/#devices and only after that I was able to connect the cube with on https://cstimer.net (although it is a bit inconsistent and sometimes it still does not work). On https://avaver.github.io the cube connected without any problem.

So my guess would be that this has something to do with the this version of the cube (Giiker i3se) and not the operating system.

sonofhypnos avatar Jun 16 '20 11:06 sonofhypnos