Native SF Cowboy Bike Application to lock/unlock bike

I have nothing requested. I asked. It was a simple question. Which could be answered with simple answer(s). I got angry when i read bullshit answers, which has nothing to do with my question and are written only to troll or abuse me.

I can not know how much people has this bike here or not. Its a bike, which is 5 years old and cost 2000,- EUR when it was new.

It could be that someone could write me: “Hey i have the same bike and already tinkering around and reverse-engineered the BT communication” - which would be the starting point for the further communication.

I did not requested, that someone sits down and write me an app from scratch without source code for free.

And no, i am not on a mad trip. As i wrote before, i am SailfishOS user from day one. From Jolla 1 which i got in December 2013. I have done very much for this community, i am cbeta tester, one of the Admins of the German SailfishOS Telegram Group. OK, i am not a developer, but stil… And when you place a simple question in the forum, where you are active for more than 10 years - and get such answers, you simply think: “Do i need it? Do i really need this community?” For what? To get such answers for a simple question?

I dont understand, how this community which wrote the hashtag #together on their flag should survive when the average users with a simple question a treated like this. Next time, i would not ask any questions anymore. If this is what you want here - than ok. I am also fine to leave this place.

12 Likes

Maybe this can help someone get started:

Lots of BLE/GATT magic numbers in that code, and it has something about speed limits at lines 208 and 228

Also, this Android app is open source:

and has command codes here:

10 Likes

That’s probably all I would need

@explit Mind joining my telegram group? conversing on forum is not too fast

5 Likes

@nephros Thank you very much for finding the right lines of source code!
@Mister_Magister Sure, thank you!

1 Like

Ladies and Gentleman! my Friends, we have a working app now.
https://github.com/Michal-Szczepaniak/decibici

Its a great small app with the funny name

“decibici”

decibici can switch the bike on/off. Tested on Cowboy 2 bike.
All credits go to @Mister_Magister who wrote this app in 2 6 hours. After just 4 iterations, the app worked like it should. My Cowboy 2 bike could be switched on and off.

For me it is not only one handy SailfishOS app, its also an Open Source Replacement for the closed original Android Application, which never worked in Android App Support, because of the direct Bluetooth connection. Its an SailfishOS App which might be the base for further eBikes or another BTLE connected devices. And this make me very happy.

It makes me very happy, that after i got so much shitstorm only for a simple Question / Idea, there were still some good and talented people around, like @nephros - who found the right lines of code in the Android app, and of course @Mister_Magister who decided to step-in and to write this app.

This shows again, how the community should work, when we work #together and not against each other.

I am very thankful to you guys, who made this happen.

And to my fellow haters who trolled me and made fun of my posting, who wrote, that “nobody will make an app for you and your dumb bike” - look here, someone did it. And he did it not only for me. Not for fame, not for money…He did it for the Sailfish Community…

Thank you once again, Michal…

Edit1 - Who want to try the ready compiled RPM - ping @Mister_Magister
I hope he will put on Storeman later.

Edit2 - Short Video how the app works

28 Likes

It will land in storeman once my man gregguh makes icon for it

also i’ll add thanks to @piggz for qble and helping me with qble

*cough* that’s generous (it took like 6)

14 Likes

Users always see only the top of the iceberg :grin:
Sorry, man…

3 Likes

Lovely, lovely!

+1 @piggz is awesome, and so are his creations (like qble and many more)

10 Likes

It is amazing see community doing so great work! Shout out to @Mister_Magister for being so valuable member of the community and providing multiple native apps to the Sailfish :100:

6 Likes

Interesting stuff. I will certainly have a look at this app when it lands in openrepos. I wonder if I can adapt it for my Specialized ebike. Nice work guys!

1 Like

Thats also my hope. I think, all the BLE bikes work more or less the same way (of course with some special magic, but basic functionality like ON/OFF should be IMHO similar)

1 Like

If you got service uuid
and you got characteristic uuid
and you know what to write to it (in this case it was literally 0 or 1)

thats all you need. Worst case scenario you can just list them and try one by one lol. It’s very basic but expanding it to support entire functionality is also… well… very basic (which I said multiple times I’m not gonna do, because musikilo awaits me, but its so easy someone else can do it)

4 Likes

I made notes many months ago while playing with bluetoothctl and discovering info on my ebike battery.
I’m reaquainting myself with bluetoothctl as i write this. I got connected to my bike battery and have device info/uuid’s/etc as screenshot.
I may ask for pointers, but I’m not asking or expecting you/others to do it for me. I know how to make apps, so I’ll take cues from your cowboybike app when it lands in openrepos. I also note your github for the said app.
I don’t need an app for my bike in reality, but quite enjoy the process of making an app that works, even if it does only turn something on and off.

4 Likes

Just join my group and spam as much as you want lol