Monday, 2025-05-19

Mister_Magisterpiggz[m]: mind explaining to me how to use qble09:08
piggz[m]<Mister_Magister> "piggz: mind explaining to me how..." <- i can try, just kinda subclass everything, pass in the required params, whichbare the service uuid's, and call methods, connect events...09:32
Mister_Magisterpiggz[m]: uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh09:33
piggz[m]Best example is amazfish, look at a simpler 'device' in there, like the banglejs code09:33
Mister_Magisteryeah but amazfish is bit complicated (im reading it)09:33
Mister_Magisterpiggz[m]: first thing i'm bit confused about, taking amazfish as example, there's pair menu in the app, is it necessary?09:33
Mister_Magisteror is it just nice-to-have09:34
piggz[m]Yeah, i get that, so, im focussing you on a simpler part :)09:34
piggz[m]If you can connect without pait, it might not be needed..... Is the device visible to bluez?09:35
piggz[m]*pair09:35
Mister_Magisterpiggz[m]: yeap its paired in normal settings, although it needs code to pair and official app displays it so maybe there's some magic sauce to pair it09:35
Mister_Magisterbut its paired in bluez09:35
Mister_Magistervisible in settings and it can connect and stuff09:36
piggz[m]You can probably skip that then09:36
Mister_Magisteralright so i uhh need to get list of adapters from bluez to get correct uuid and then i can just add service and talk to it?09:36
piggz[m]Its all ontop of bluez, so you can do things externally09:36
Mister_Magisteris my thinking roughly correct? lol09:37
piggz[m]To create the device, its the bluez path, which is the adapter + dev_(mac) ish09:38
piggz[m]Yeah, pretty much correct09:38
Mister_MagisterSo i'll first snatch this https://github.com/piggz/harbour-amazfish/blob/9a7d2ceac381003b0395e4c61165f83320e3c970/daemon/src/devices/asteroidosdevice.cpp#L12809:38
Mister_Magisterand then i should have service?09:39
Mister_Magisteridk how device is uhh made09:39
piggz[m]Yeag, create a device, connect, wait for services to be resolved, then parse the sercices xml, and create all your services09:40
Mister_Magisterhttps://github.com/piggz/harbour-amazfish/blob/9a7d2ceac381003b0395e4c61165f83320e3c970/daemon/src/deviceinterface.cpp#L3509:41
Mister_Magisterthis09:41
Mister_Magisterit's quite… complicated09:41
piggz[m]Ignore deviceinterface, thats the glue between my ui and daemon09:42
piggz[m]Nothibg to do with talking to the hw09:42
Mister_Magisterwell that's not confusing at all :)09:43
Mister_Magisterso how do i go about the device09:44
piggz[m]Look at abstractdevice.h09:45
piggz[m]also, devicefactory09:45
Mister_Magisterpiggz[m]: yeah but that doesn't tell me how to use it09:53
Mister_Magisterthey're used only in the deviceinterface09:53
piggz[m]Ok, yeah, theyre created in the device interface, but ignore everything else about registering dbus etc10:06
Mister_Magistermmm okay10:11
Mister_Magisterpiggz[m]: so i got it almost all sorted but the device is not firing propertiesChanged. Do i have to do something other than connectToDevice()?13:13
Mister_Magisteri basically just create device, set path, connectToDevice13:13
Mister_Magisterguess I had to wait13:23
piggz[m]So, it connect eventually?13:26
Mister_Magisterpiggz[m]: i think so13:40
Mister_Magisternot sure xd13:40
Mister_Magisterpiggz[m]: if you have a second do you mind having a look if i did something obviously wrong? (the app works)14:14
Mister_Magisterhttps://github.com/Michal-Szczepaniak/decibici/tree/master/src14:15
askolsamWell this is weird. I rebooted my Xperia 10 III because mobile certificate (mobiilivarmenne) was (again) not working. But after the reboot signal (android version) no longer works; it closes as soon as it tries to start. Tried rebooting the phone but issue remains. Now, my skills regarding anything android or Sailfish appsupport are sketchy at best, but I've managed to access the lxc-container and16:32
askolsamused 'logcat': https://dpaste.org/23w4q16:32
askolsamThat fatal exception happens when I try to start signal. If "Failed to mount /mnt/appfuse/10036_1: Permission denied" the real culprit and not a red herring, I have no clue where to go from here.16:34
askolsamOh, and everytime I tried to start the app, a new directory  was created to /mnt/appfuse/ (10036_1, 10036_2, 10036_3, ...)16:36
piggz[m]Mister_Magister: looks good .. quite the simple service there!16:37
Mister_Magisterpiggz[m]: yeap18:17
Mister_Magisterpiggz[m]: it can be expanded to support full functionality but i can't be arsed18:17
*** phlixi is now known as Guest1631921:57
*** phlixi_ is now known as phlixi21:57

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!