VirtCode / SmartMouse

use your smartphone as a normal computer mouse
GNU General Public License v3.0
97 stars 6 forks source link

Stuck on Initialising #18

Open iamasink opened 4 months ago

iamasink commented 4 months ago

This project seems really cool!
However the app gets stuck on "Initializing" on my phone, I tried using using SensorServer and it says Logged In successfully but receives no data after in the csv.
I tried resetting/reinstalling the app but just can't seem to get it to work. Am I doing something wrong?

Screenshot_20240504-192330189

VirtCode commented 4 months ago

Thanks for trying it out! This looks like something is going wrong while initializing bluetooth.

Normally, this app uses the Bluetooth HID profile to connect and transmit movement data to a computer. Such a connection is still required when doing debugging (i.e. capturing data with SensorServer) so it won't transmit data until Bluetooth is initialized (which is what seems to be failing) and such a connection is established.

So could you quickly check whether your phone supports the Bluetooth HID profile? This app should check for support and show a message otherwise, but maybe that's broken. You can easily check your support with apps like this. Afterwards we'll have to check whether we find something in the logs.

iamasink commented 4 months ago

Ah, unfortunately I get "No Bluetooth HID Profile Detected!" on that app. I imagine there's no way to get this to work then? I have an ASUS Zenfone 8.

VirtCode commented 4 months ago

I'm afraid not. Some vendors have a toggle for the HID profile in the developer settings, but I couldn't find whether that's the case for the Zenfone. Maybe they could ship an update which enables it but realistically that won't happen.

Using the app without the HID profile also isn't really possible. I've specifically opted for this profile because of its ease of use. Otherwise you'd have to have an additional app/server on the target PC, that supports all/most platforms with acceptable UX, and you have to be in the same network, etc. The SensorServer is really only intended for making captures for debugging.

I'll label this as a bug, as this app should've shown "Unsupported" instead of "Initializing".

iamasink commented 4 months ago

Yeah I had a look for any option like that but couldn't find anything. Thanks for the help anyways.