
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-05-17 09:32 AM
I'd like to create a Room Controls JSON file that turns on and off a Samsung display. The hex string requires both a Power data field (0 is off, 1 is on) and a checksum; the checksum will obviously depend on the value of the Power data field.
If I wanted to use parameters in my methods definitions, how do I specify both the data and the checksum?
===
From Samsung:
All communications take place in hexadecimals. The checksum is calculated by adding up
all values except the header. If a checksum adds up to be more than 2 digits as shown below
(11+FF+01+01=112), the first digit is removed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-05-30 12:05 PM
If you needed a different checksum at the tail of the command, you wouldn't be able to use the modulus sign, but you could just as easily build two separate full strings (one for each power state). I think that's your question, but please feel free to clarify if not
Please be sure to mark 'accept as solution' if this answered your question and thanks for using Zoom!
Shane
Architect @ Zoom

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-05-25 07:42 AM
Any thoughts at all? Or isn't this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-05-30 12:05 PM
If you needed a different checksum at the tail of the command, you wouldn't be able to use the modulus sign, but you could just as easily build two separate full strings (one for each power state). I think that's your question, but please feel free to clarify if not
Please be sure to mark 'accept as solution' if this answered your question and thanks for using Zoom!
Shane
Architect @ Zoom

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2023-05-30 12:07 PM
That's exactly what I meant. Thanks for the confirmation.
Henry
