-
@gordon, I have a question if possible.
I am trying to make the p8 connect to the wheel, and then replicate the wheel's services and offer them, so that a phone can connect to the watch and then the wheel, like a bridge
It is working, amazing what one can do with espruino, but I have come to a problem.
When it comes to the phone app that I want to use, it does some checks on a list of characteristics and services it expects to find, and closes the connection if one is not there. They are not needed, but it does it anyway.
The code that does the checks is like so:
detected_wheel = true; BluetoothGattCharacteristic characteristic = service.getCharacteristic(c_uuid); if (characteristic == null) { detected_wheel = false; break; }
and the services among others are those, that I cannot create.:
<string-array name="kingsong_services"> <item>00001800_0000_1000_8000_00805f9b34fb</item> <item>00001801_0000_1000_8000_00805f9b34fb</item> <item>0000180a_0000_1000_8000_00805f9b34fb</item> <item>0000fff0_0000_1000_8000_00805f9b34fb</item> <item>0000ffe0_0000_1000_8000_00805f9b34fb</item> </string-array> <string-array name="kingsong_00001800_0000_1000_8000_00805f9b34fb"> <item>00002a00_0000_1000_8000_00805f9b34fb</item> <item>00002a01_0000_1000_8000_00805f9b34fb</item> <item>00002a02_0000_1000_8000_00805f9b34fb</item> <item>00002a03_0000_1000_8000_00805f9b34fb</item> <item>00002a04_0000_1000_8000_00805f9b34fb</item> </string-array> <string-array name="kingsong_00001801_0000_1000_8000_00805f9b34fb"> <item>00002a05_0000_1000_8000_00805f9b34fb</item> </string-array>
lines starting with a 'greater than' denote quoted text
because they are on 0x1800 and 0x1801.
The app is wheellog from github, I removed the check and compiled it and it connects fine, but It would be nice if it worked with all programs.
Is it a dead end, of could I add the missing characteristics?
-
-
-
-
two small videos, one on alarms and one for the calculator.
I have a nice feature in alarms, where if one does a long hold on the settings page, the current time is auto set to that alarm, so one could move using the finger hours-tenths of ninutes- minutes, and time drags (10:55 becomes 11:05 with a move up in tenths of minutes), thus it can be also used as a timer. :)
the calculator has history that can be used in calculations simply by taping on it, the code is bad but it works nice :)
-
They are controlled by changing the center of gravity, think Magneto of the xmen :)
The scripts are for off the shelf (xiaomi/segway) ninebot one c/e/p models,
Here is a more down to earth video I shot myself, very interesting machines I believe.
https://www.youtube.com/watch?v=4nQZtHoyQ7s
Yes the bangle.js seems easier, I really did't know about it when I started playing with the dsd6/p8, I accidentally found a channel where atc1441 and fanoush were hacking things, and got engaged. I didn't even know any javascript at that time. :)
Thanks again for espruino, I really enjoy it. :)
-
thank you for the welcome Gordon.
i am leaving this little video here, in case someone doesn't know what an euc is.
I really believe that someone with more advanced skills than mine could have his time payed back if he develops a good watch for the euc world, there is not a standalone solution up to now, and there sure is interest.
ofcource, it is here( a lot of variants exist, but this is the first one I think)
https://github.com/JumpMaster/WheelLog
The part that does the checks is here:
https://github.com/JumpMaster/WheelLogAndroid/blob/44b9b2fbdb522d499bcf932baa0decde389f92cf/app/src/main/java/com/cooper/wheellog/WheelData.java#L1070
and the expected characteristics are here:
https://github.com/JumpMaster/WheelLogAndroid/blob/master/app/src/main/res/values/services_kingsong.xml
But the question is not really about the app, it is about the possibility of adding characteristics on 1800 and 1801
In any case I have asked the maintainer of eucWorld, the dominant app for EUCs in android, a derivative of wheellog, to remove 2a02, 2a03,2a05 from his list of checks, and he was kind enough to consider it, so I am all good. But it would still be nice if there is a way to add them.