-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct the protocol used for modern Hismith devices
This change is a bit of a cheat: legacy Hismith devices are hardcoded in the protocol and if the identifier doesn't match, the hismith-mini protocol is invoked instead. Fixes #682
- Loading branch information
1 parent
343312a
commit df50c02
Showing
5 changed files
with
172 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
buttplug/tests/util/device_test/device_test_case/test_hismith_v4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
devices: | ||
- identifier: | ||
name: "HISMITH" | ||
expected_name: "Hismith Sex Machine" | ||
device_init: | ||
- !Events | ||
device_index: 0 | ||
events: | ||
- !Reads | ||
- endpoint: rxblemodel | ||
data: [0x10, 0x05] | ||
device_commands: | ||
# Commands | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Scalar | ||
- Index: 0 | ||
Scalar: 0.5 | ||
ActuatorType: Oscillate | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xCC, 0x03, 0x32, 0x35] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Scalar | ||
- Index: 0 | ||
Scalar: 0.1 | ||
ActuatorType: Oscillate | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xCC, 0x03, 0x0a, 0x0d] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Stop | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xCC, 0x03, 0x00, 0x03] | ||
write_with_response: false |