360manu / kettlerUSB2BLE

Bridge from USB to Bluetooth low energy for old Kettler Trainers (Ergorace, ..) for Zwift and other apps
MIT License
38 stars 28 forks source link

After connect to Zwift 0 Power #8

Closed MailFranzel closed 3 years ago

MailFranzel commented 4 years ago

Hi @360manu, I use a PI3 B with the internal Bluetooth and Wifi ... I installed Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1019-raspi aarch64). It works fine. My "bike" is a Kettler ErgoRacer 2 with a seriell connector and a Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC ... -> it is working with your program. In zwift I can connect Bluetooth an see the two sections, but I have no values in ---> 0 Watts; also when I riding the bike I see 0 watts. Do you have a idea want I have to change ? Greetings Franzl

360manu commented 4 years ago

Hello

It's probably the serial connection. Can you send a picture or a link of your model. Mine is an older ergo race (1 ?) with an USB port on the bike. Sound strange that the second version is using an old serial.

Emmanuel

Le mer. 30 sept. 2020 à 19:02, MailFranzel notifications@github.com a écrit :

Hi @360manu https://github.com/360manu, I use a PI3 B with the internal Bluetooth and Wifi ... I installed Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-1019-raspi aarch64). It works fine. My "bike" is a Kettler ErgoRacer 2 with a seriell connector and a Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC ... -> it is working with your program. In zwift I can connect Bluetooth an see the two sections, but I have no values in ---> 0 Watts; also when I riding the bike I see 0 watts. Do you have a idea want I have to change ? Greetings Franzl

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/360manu/kettlerUSB2BLE/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADACXMOW5CXPP7X76TUW5ZTSINQBPANCNFSM4R7LASHA .

MailFranzel commented 4 years ago

Hi Emmanuel,

I use a Kettler ErgoRacer 2 with a seriell link on a usb connector (strange). -> I will try just a USB-cabel without the FT232 USB-Serial .... IMG_20201001_131858 IMG_20201001_131913

Output from server.js: IMG_20201001_132107 When I start the server.js my ErgoRacer do not recognize the Connection: IMG_20201001_132217

Using kettlerWorldtour the display shows a USB- Sign ( after a reset triggered by the PC) IMG_20201001_132324

The Raspberry 3 with the FT232 USB-Serial IMG_20201001_131845

MailFranzel commented 4 years ago

Next step... I change the USB-Seriell-USB- cable to a normal USB-cable. Now I get a reset and The Display changes to USB-Sign. Super :-)) IMG_20201001_135650

With the web GUI I can set the power ... IMG_20201001_135323

I can connect to the Kett-Bridge but I have no Power ... IMG_20201001_135503 IMG_20201001_135315

MailFranzel commented 4 years ago

Next step ... I disabled the internal bluetooth module from the raspberry and uses a Bluetooth-Stick 4.0; but it is the same not stable bluetooth-connection

360manu commented 4 years ago

Hello

From the picture, it seems that we have similar bike. I probably have the first version as my computer case is slightly different.

From my experience

You can try the following

USB Link : the cable without FTDI is OK, and the physical link is working (logo on the bike computer) my guess is that the Baud Rate is not correct for your bike. I read somewhere that they changed this for the data on the new version. you can connect at 9600 but can't transfer any data. The source code of GoldenSheetah shows some examples of good settings (56000.?)

Le jeu. 1 oct. 2020 à 16:38, MailFranzel notifications@github.com a écrit :

Next step ... I disabled the internal bluetooth module from the raspberry and uses a Bluetooth-Stick 4.0; but it is the same not stable bluetooth-connection

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/360manu/kettlerUSB2BLE/issues/8#issuecomment-702180656, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADACXMNBQLK5AQXISOFLPKTSISH5XANCNFSM4R7LASHA .

MailFranzel commented 4 years ago

Hi Emmanuel, I tried different baud rates 9600 56000 57600, when I use 57600 the output from server.js look like:

ble1

It looks good; when I cycling I see different values.

I tried the test too; but zwift does not notices the fake data

ble3

Franzel

P.S. I ordered a new Bluetooth 5.0 stick for the raspberry, but I am not sure if it is necessary ... Today the connection was stable. The problem seems to be the data transfer to Zwift, not the connection ...

My Zwift see only one service -> Power

360manu commented 4 years ago

Hello

I quickly checked with my setup. And I am able to reproduce your problem with my PC. It works with my Iphone or my android tablet, but no signal with my PC. Connection is also OK but no data.

I'll try to investigate. Perhaps, my PC is not fully compatible with BLE. Or I am forgetting something

Emmanuel

Le ven. 2 oct. 2020 à 17:39, MailFranzel notifications@github.com a écrit :

Hi Emmanuel, I tried different baud rates 9600 56000 57600, when I use 57600 the output from server.js look like:

[image: ble1] https://user-images.githubusercontent.com/47360315/94941142-c931e400-04d4-11eb-98f3-4b4e4bb95b1b.jpg

I look good; when I cycling I see different values.

I tried the test too; but zwift does not notices the fake data

[image: ble3] https://user-images.githubusercontent.com/47360315/94941942-e915d780-04d5-11eb-8fdc-c588def75ec1.jpg

Franzel

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/360manu/kettlerUSB2BLE/issues/8#issuecomment-702805571, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADACXMMDRCOZQLRO3LQW6TLSIXX2TANCNFSM4R7LASHA .

360manu commented 4 years ago

If you have an Iphone or Android. Zwift companion can be a workaround

or https://forums.zwift.com/t/zwift-pc-bluetooth-issues/112759/4

MailFranzel commented 4 years ago

Thanks for the hint; i will try it tomorrow. Good night

weinzmi commented 4 years ago

Got the same issue with my project, with the companion app it’s working. Just keep in mind if you have any other app running in the background that could connect to the FTMS (Fitness Machine Service) via Bluetooth, it might not work, so make sure you disable your PC BLE connection.

Good luck 😉

MailFranzel commented 4 years ago

I try to connect the KettlerBLE (Raspberry Bluetooth) with my Android mobile, but the mobile denies the connection ... On my table gives a short meassage that the PIN may be wrong .... My Mobile uses Android 9 (Android ONE); My tablet uses 8.1 All other Bluetooth devices are disable ;-)

Screenshot_20201003-084657

weinzmi commented 4 years ago

Pairing is not necessary, just Enable Bluetooth and start the companion App, then start Zwift and change the settings to use the app instead of your PCs Bluetooth. Then use Zwift pairing dialog to search for devices.

weinzmi commented 4 years ago

I think that the implemented FTMS GATT Service is just broadcasting, so traditional pairing won’t work anyway.

weinzmi commented 4 years ago

https://support.zwift.com/en_us/using-the-zwift-companion-app-Hybn8qzPr

MailFranzel commented 4 years ago

Hello, what I did at the weekend: I made a new installation with Debian buster -> but there where errors building node.js (12.x) So I tried Debian Jessie with node.js (10.21). As I know, the result was that a Bluetooth connection can be established, but no data is sent to the PC or the android mobile phone.

MailFranzel commented 4 years ago

Hello, I made a new installation on my Orange Pi Zero and Armbian ... Now it is connected(!!) with the companion Zwift App!

IMG_20201007_111005

MailFranzel commented 4 years ago

I found my mistake; I forgot to set the IP in index.ejs ... Thanks for your help. Thanks for this software. In this evening I will test !!

MailFranzel commented 4 years ago

It runs! Sometimes the Bluetooth connection with the different devices is tricky!