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

Add Zalo documentation #68

Open
blackspherefollower opened this issue Sep 2, 2019 · 3 comments
Open

Add Zalo documentation #68

blackspherefollower opened this issue Sep 2, 2019 · 3 comments

Comments

@blackspherefollower
Copy link
Contributor

BLE name: ZALO-Queen
Servive UUID: 0000fff0-0000-1000-8000-00805f9b34fb
Tx Char UUID: 0000fff1-0000-1000-8000-00805f9b34fb

Tx prorocol: 0xAA 0xBB 0xCC
AA is mode:

  • 01 is manual control
    BB controls the oscillator at the tip (values 01-08, 01 is off)
    CC controls the vibrator (values 01-08, 01 is low, no off)
  • 02 is off
    BB and CC should be 01, but doesn't seem to matter
  • 03 is pattern:
    BB is the pattern (01-08)
    CC is the intensity (01-08)

I suspect that the same protocol applies for all Zalo devices, but I only have the Queen.

@TheHardew
Copy link

TheHardew commented Jan 28, 2021

BLE name: ZALO-King
Servive UUID: 0000fff0-0000-1000-8000-00805f9b34fb
Tx Char UUID: 0000fff1-0000-1000-8000-00805f9b34fb

Tx prorocol: 0xAA 0xBB 0xCC
AA is mode:

  • 01 is manual control
    BB controls the vibrator (values 01-04, no off)
    CC controls the oscillator at the tip (values 01-08, no off)
    (it is reversed wrt the Queen)
  • 02 is stop
    BB controls the vibrator
    CC controls the oscillator
    if BB or CC are 01, the respective function will be turned off
  • 03 is pattern:
    BB is the pattern (01-08)
    CC is the intensity (01-08)
  • 04 is shutdown
    BB and CC don't matter and can even not be sent

You can turn on just the oscillator by e.g. first sending 0x01 0x01 0x01 and then 0x02 0x01 0x00. I don't know if there's any other option.

I'm also attaching a log of all the things I was able to query via D-Bus.
ZALO-King.log

@blackspherefollower
Copy link
Contributor Author

BLE name: ZALO-Jeanne
Servive UUID: 0000fff0-0000-1000-8000-00805f9b34fb
Tx Char UUID: 0000fff1-0000-1000-8000-00805f9b34fb

Tx protocol: 0xAA 0xBB 0xCC
AA is mode:

01 is manual control
BB controls the vibrator at the tip (values 01-08, 01 is off)
CC unused (values 01-08, 01 is low, no off)
02 is off
BB and CC should be 01, but doesn't seem to matter
03 is pattern:
BB is the pattern (01-08)
CC is the intensity (01-08)

@blackspherefollower blackspherefollower changed the title Add Zalo Queen documentation Add Zalo documentation Jul 12, 2021
@blackspherefollower
Copy link
Contributor Author

@TheHardew I picked up a King... because I have issues... (See blackspherefollower/IoSTIndex#716)

I did some testing, and found that the vibrator on the King has a district tone difference between 4 and 8 (although the vibe's relativity weak so might not be noticeable to a real user).

I think this probably makes the protocol easier to document, since the 1 vibe and multi-feature devices have consistent control commands.

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