Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steering on Zwift (iOS) #2486

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Steering on Zwift (iOS) #2486

wants to merge 7 commits into from

Conversation

cagnulein
Copy link
Owner

No description provided.

Copy link

stale bot commented Aug 16, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 16, 2024
@stale stale bot closed this Aug 23, 2024
@cagnulein cagnulein reopened this Aug 24, 2024
@stale stale bot removed the wontfix This will not be worked on label Aug 24, 2024
Copy link

stale bot commented Sep 8, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 8, 2024
@stale stale bot closed this Sep 15, 2024
@cagnulein cagnulein reopened this Sep 15, 2024
@stale stale bot removed the wontfix This will not be worked on label Sep 15, 2024
Copy link

stale bot commented Oct 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 1, 2024
@stale stale bot closed this Oct 12, 2024
@cagnulein cagnulein reopened this Oct 12, 2024
@stale stale bot closed this Oct 28, 2024
@cagnulein cagnulein reopened this Oct 28, 2024
@stale stale bot removed the wontfix This will not be worked on label Oct 28, 2024
@doudar
Copy link
Contributor

doudar commented Nov 8, 2024

I think you may have implemented this via the Zwift Ride characteristic, but if not, There's another characteristic that I think you're missing from the steerzo:

https://github.com/sebastienb/zwift-steering-joystick/blob/main/steering.ino

@cagnulein
Copy link
Owner Author

cagnulein commented Nov 8, 2024 via email

@doudar
Copy link
Contributor

doudar commented Nov 8, 2024

Unfortunately, there's a lot more to it than all this. I found a great youtube video that explains it. (And check the comments for the current state ... broken)

https://www.youtube.com/watch?v=BPVFjz5zD4g&t=5s

@cagnulein
Copy link
Owner Author

cagnulein commented Nov 8, 2024 via email

@doudar
Copy link
Contributor

doudar commented Nov 8, 2024

Actually my code is working, did you try? Roberto Viola Software engineer and open source enthusiast http://robertoviola.cloud Il giorno ven 8 nov 2024 alle 03:47 Anthony Doud @.> ha scritto:

Unfortunately, there's a lot more to it than all this. I found a great youtube video that explains it. (And check the comments for the current state ... broken) https://www.youtube.com/watch?v=BPVFjz5zD4g&t=5s — Reply to this email directly, view it on GitHub <#2486 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALYWFDXYSLW46767TQKCLZ7QQ3TAVCNFSM6AAAAABLR4KSZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRTGY2DSNBZGQ . You are receiving this because you modified the open/close state.Message ID: @.
>

Mine works, I just get this notification on the pairing screen:
image

@cagnulein
Copy link
Owner Author

I will try it ASAP, very busy in these days

@doudar
Copy link
Contributor

doudar commented Nov 8, 2024

That's with this as the authentication callback. Previous to the flip, I was looking for the response length to send the 03 11 ff ff or 03 10 ff ff

bool flip = false;

void BLE_SteeringCallbacks::onWrite(BLECharacteristic* pCharacteristic) {
  std::string rxValue = pCharacteristic->getValue();
  if (rxValue.length() > 0) {
    // Check if it's the authentication packet
    if (!flip) {
      uint8_t response[] = {0x03, 0x10, 0xff, 0xff};  // Authentication Challenge
      steeringService->getTxCharacteristic()->setValue(response, 4);
      steeringService->getTxCharacteristic()->notify();
    }
    if (flip) {                // Authentication packet is 4 bytes
      uint8_t response[] = {0x03, 0x11, 0xff};  // Authentication response
      steeringService->getTxCharacteristic()->setValue(response, 3);
      steeringService->getTxCharacteristic()->notify();
      steeringService->setAuthenticated(true);
    }
    flip = !flip;
  }
}``` 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants