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

Trouble connecting to BX1 #6

Open
dev-git opened this issue Aug 18, 2022 · 2 comments
Open

Trouble connecting to BX1 #6

dev-git opened this issue Aug 18, 2022 · 2 comments

Comments

@dev-git
Copy link

dev-git commented Aug 18, 2022

Hi,

I'm trying to connect to the BX1 (HOLMAN_CO3111) with holmanctl (on a raspberry pi) but can't seem to get it to work. It looks like I can connect but then the connection instantly drops and I can't retrieve any of the settings or switch the timer on/off. Have followed your instructions for adding the BTX1 and they appear to have the same service UUID (c521f000-0d70-4d4f-8e43-40d84c50ab38). Have run nRF on my android phone and here's the content. Any help much appreciated. Thanks.

nRF Connect, 2022-08-18
BX1 (AA:BB:CC:DD:EE:FF)
V 19:42:15.157 Connecting to AA:BB:CC:DD:EE:FF...
D 19:42:15.157 gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D 19:42:16.080 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I 19:42:16.080 Connected to AA:BB:CC:DD:EE:FF
V 19:42:16.099 Discovering services...
D 19:42:16.099 gatt.discoverServices()
D 19:42:16.118 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I 19:42:16.368 Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D 19:42:16.703 [Callback] Services discovered with status: 0
I 19:42:16.704 Services discovered
V 19:42:16.718 Generic Access (0x1800)

  • Device Name [R W] (0x2A00)
  • Appearance [R] (0x2A01)
  • Peripheral Preferred Connection Parameters [R] (0x2A04)
    Generic Attribute (0x1801)
    Unknown Service (46a60001-ca26-425a-9bc6-d917829d2906)
  • Unknown Characteristic [N W] (46a60001-ca26-425a-9bc6-d917829d2906)
    Client Characteristic Configuration (0x2902)
    Unknown Service (c521f000-0d70-4d4f-8e43-40d84c50ab38)
  • Unknown Characteristic [R] (0000f003-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [R] (0000f004-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [R W] (0000f005-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [W] (0000f006-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [R W] (0000e001-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [W] (0000c001-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
  • Unknown Characteristic [R W] (0000c002-0000-1000-8000-00805f9b34fb)
    Characteristic User Description (0x2901)
    D 19:42:16.719 gatt.setCharacteristicNotification(46a60001-ca26-425a-9bc6-d917829d2906, true)
@nathcoad
Copy link

Did you ever get anywhere with this?

@dev-git
Copy link
Author

dev-git commented Nov 12, 2024

Did you ever get anywhere with this?

I gave up with the holman client and tried a few other Bluetooth clients. After some expermination, I settled on the Bleak Client which was stable and worked well.
Here's some of my code that turns the timer on for 20 mins (from a RPi):
https://github.com/dev-git/thepythonfiles/blob/main/gardenpi/bleak/write.py
There should be some code around that reads the other settings (Battery/Watering status/etc)
Hope that's useful.

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

No branches or pull requests

2 participants