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

Oral-B Bluetooth Toothbrush #440

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Oral-B Bluetooth Toothbrush #440

merged 1 commit into from
Oct 30, 2023

Conversation

DigiH
Copy link
Member

@DigiH DigiH commented Oct 30, 2023

Initial submission of Oral-B Bluetooth Toothbrush decoder

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

Initial submission of Oral-B Bluetooth Toothbrush decoder
@DigiH DigiH merged commit 88279fe into theengs:development Oct 30, 2023
7 checks passed
@DigiH DigiH deleted the lookup branch October 30, 2023 19:18
Comment on lines +481 to +490
{"Oral-B", "Oral-B", "dc0004710502360000000f0004"},
{"Oral-B", "Oral-B", "dc000471050332010301030a04"},
{"Oral-B", "Oral-B", "dc00047105013a000002010004"},
{"Oral-B", "Oral-B", "dc000471050432010e03032e04"},
{"Oral-B", "Oral-B", "dc000471057332010e05032e04"},
{"Oral-B", "Oral-B", "dc000471050332010e06032e04"},
{"Oral-B", "Oral-B", "dc000471050332010e07032e04"},
{"Oral-B", "Oral-B", "dc000471050332010e08032e04"},
{"Oral-B", "Oral-B", "dc000202060220000001010004"},
{"Oral-B", "Oral-B", "dc000202067320020f07080004"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here too

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are fine though as they only specify the test name and device braodcast name, with the latter not relevant for this decoder.

Comment on lines +124 to +133
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"idle\",\"mode\":\"off\",\"pressure\":54,\"time\":0}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"running\",\"mode\":\"daily clean\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":63}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"initialising\",\"mode\":\"sensitive\",\"sector\":\"sector 1\",\"pressure\":58,\"time\":0}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"charging\",\"mode\":\"massage\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":74}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"sleeping\",\"mode\":\"deep clean\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":74}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"running\",\"mode\":\"tongue cleaning\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":74}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"running\",\"mode\":\"turbo\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":74}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"running\",\"sector\":\"sector 3\",\"pressure\":50,\"time\":74}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"idle\",\"mode\":\"daily clean\",\"sector\":\"sector 1\",\"pressure\":32,\"time\":0}",
"{\"brand\":\"Oral-B\",\"model\":\"BT Toothbrush\",\"model_id\":\"OralB_BT\",\"type\":\"BODY\",\"state\":\"sleeping\",\"mode\":\"turbo\",\"sector\":\"sector 8\",\"pressure\":32,\"time\":135}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the model_ids here

{
"brand":"Oral-B",
"model":"BT Toothbrush",
"model_id":"OralB_BT",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The model_id would need to be all caps as well

@@ -118,6 +118,7 @@ class TheengsDecoder {
ABN07,
ABTEMP,
AMPHIRO,
OralB_BT,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be in all caps for consistency.

@kabili207
Copy link
Contributor

Ah, seems I wasn't quick enough to get my comments in before it was merged

@DigiH
Copy link
Member Author

DigiH commented Oct 30, 2023

I suppose so ;) that's what you get digging out ancient decoder trials and focusing more on the functionality than consistency.

Thanks for pointing it out! :) will sort it in a new commit

@kabili207
Copy link
Contributor

Hahaha, yeah I've done that myself a few times.

I've got one of these brushes myself, so it's nice to see someone adding a decoder for it

@DigiH
Copy link
Member Author

DigiH commented Oct 30, 2023

The decoder might still require some refinements in the future, especially with so many different Oral-B model around.

If you find any issues or suggestions for additions with your model in the future any comments will be appreciated.

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