Skip to content

Bluetooth pairing - strange behaviour / TWC error log #614

Open

Description

@MiRoCZ

Hello Nathan @ngardiner.
Any idea what´s going on here with Bluetooth and how to resolve it please ?

Image

A new (TWC) key was successfully added to my Tesla car through Action button "Pair with Vehicle" (even ..../vehicle/localMgmt TWC web page did not displayed), but BLE Control Status is stil "Not Implemented"

Image

Image

Can you please share your experience. Any advice really appreciated. Thx.

Activity

  1. ngardiner commented on Feb 24, 2025

    @ngardiner
    Owner

    My apologies for the confusion. It has worked, the Not Implemented is there to reflect that I haven't implemented a way to actively poll a vehicle to give you positive confirmation that it worked, but if the key has paired with the car then it is working.

    There is a way for me to confirm that peering has worked (polling vehicles over BLE) so I should have that fixed very shortly, but in the meantime you should be all set for BLE control.

  2. MiRoCZ commented on Feb 26, 2025

    @MiRoCZ
    Author

    Dear Nathan @ngardiner. Thank you very much for your prompt response.

    Unfortunatelly BLE control doesn´t work as there is a issue with Bluetooth on my Rasperry PI 2W -

    Image

    Please see Error: failed to find a BLE device below:

    Image

    Bluetooth status:

    Image

    Image

  3. MiRoCZ commented on Mar 1, 2025

    @MiRoCZ
    Author

    Is there anybody with RPi Zero 2W with build in Bluetooth who has up and running Bluetooth with TWC Manager ? I´m experiencing Bluetooth down status / busy issue. Any advice really appriciated.

    Image

    @ngardiner What kind on Bluetooth (RPi) do you use ?

  4. MiRoCZ commented on Mar 1, 2025

    @MiRoCZ
    Author

    The problem is related to the cyclic unsuccessfull initialization of the SAP driver (SAP Bluetooth profile) on RPi Zero 2W build in Bluetooth which results into shut down of the Bluetooth hci0 as is visible on the screenshots below. @ngardiner Does TWC Manager use/need SAP profile initiated ? Does anyone else is experiencing this issue ? What kind of hardware do you use for smooth use with TWC ? I´m really desperate now and don´t know how to make it work.

    Image

    hci0 is UP RUNNING shortly after reboot and then goes DOWN when kernel: Bluetooth: hci0: Opcode 0x2010 failed: -16 appear in the log

    Image

  5. ngardiner commented on Mar 2, 2025

    @ngardiner
    Owner

    Is there anybody with RPi Zero 2W with build in Bluetooth who has up and running Bluetooth with TWC Manager ? I´m experiencing Bluetooth down status / busy issue. Any advice really appriciated.

    Image

    @ngardiner What kind on Bluetooth (RPi) do you use ?

    I'm using an RPi Zero W. Appreciate your troubleshooting of what's causing it @MiRoCZ - We do not have a dependency on SAP profiles, neither do we require bluetoothd to be running. Could you please try:

    systemctl stop bluetooth

    And see if that helps?

  6. MiRoCZ commented on Mar 2, 2025

    @MiRoCZ
    Author

    Hello @ngardiner, TWC rebooted and systemctl stop bluetooth used, but unfortunatelly no change:

    Image

    Image

    Can you please tell me how long it should take to switch back to use API for stop charging command if Bluetooth not working ? My car is still charging even it should stop.

    This is a TWC setting:

    Image

  7. ngardiner commented on Mar 2, 2025

    @ngardiner
    Owner

    Okay, could you try this please:

    systemctl disable bluetooth

    Then reboot, and check again?

    Can you please tell me how long it should take to switch back to use API for stop charging command if Bluetooth not working ? My car is still charging even it should stop.

    It should be immediate. The only thing I can think of is that it is detecting that the BLE command is working when it isn't - I'll do some further investigation. There's a PR I am working on which would provide us with real-time stats on whether it's successful or failing which would confirm this for us, I'll see if it's something I can merge early so we can use it for troubleshooting

  8. MiRoCZ commented on Mar 2, 2025

    @MiRoCZ
    Author

    Done a this is a result:

    Image

    and after reboot

    Image

    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions