Repository navigation
Lights 2: NEEWER FS230B / FS300B control over GATT (#209) - #265
Merged
Merged
Conversation
The frame codec and driver decoded from the NEEWER app's traffic (#207): power, and one frame carrying intensity, white and the dimming curve, so the driver keeps each light's last values and sends all three. 150 ms after power-on, 100 ms pace, the app's hello replayed on connect. Every captured frame was rebuilt byte for byte (outside the repo, the capture holds real addresses); the committed tests use a made-up address. Scan suggestions read NEEWER's model code (NW-20230051 = FS230B). LightState gains the curve; startState gives the shared start values. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Power, intensity, white, green/magenta and dimming curve, as the kind allows, greyed out while not connected. Slider: drag on a 48 dp track or step with − and +. Docs: the NEEWER protocol on the lights page, the Slider in the design docs, known issues moved from #208 (tested on the phone) to #209. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The white frame's green/magenta byte, −50..+50 sent as +50 as in the published NEEWER protocol; the FS230B stays neutral (its app has no such control). Not captured: the owner checks the range on the light. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #209. Part of the Lights epic #206.
The NEEWER FS230B and FS300B can now be switched, dimmed, set to a white and given a dimming curve from a light's screen.
What changed
fixtures/codecs/neewer.ts: the frame (78 <tag> <len> <MAC> <payload> <checksum>), power, the white frame and the app's hello, plus notification parsing. Decoded from the capture in Lights 0: capture an HCI snoop log of the NEEWER app (owner) #207; the details are on the lights page and in the comment on Lights 2: Neewer FS230B / FS300B control over GATT #209.fixtures/drivers/neewerInfinity.ts:NW-20230051= FS230B; unknown codes fall back to every NEEWER kind).LightState.curve, andstartState(kind)for the values shown before the phone has set any.Sliderin the phone's component library: drag on a 48 dp track, or − and + for exact steps.Decisions
Checked
make checkis green: 50 phone tests, including the codec and the driver against a fake link and clock.Not clicked through
Nothing has run against a light from OpenClapper yet. That needs the owner's phone and lights.
🤖 Generated with Claude Code