-
Notifications
You must be signed in to change notification settings - Fork 44
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
VIDs should be hexadecimal values #272
Comments
+1 it should be even both way |
Need more investigation. |
maybe not the storage just the way it is displayed |
I believe we need to apply the same change for PIDs, not for VIDs only. |
We can send REST API and CLI requests in hex format:
CLI:
|
We cannot output hexadecimal numbers in JSON format. Summary: we can only change in structure integer to string. |
There are two options for this issue:
|
Our current recommendation is to go with Option 1 (non-breaking change), but please note that it will have the following consequences (in particular, please see the text in bold):
So, the following changes need to be done for that Option:
|
We could always ask Zigbee to update their VID table to include a decimal value column.
… On Mar 11, 2022, at 12:23 AM, Jonathan Mégevand ***@***.***> wrote:
+1 it should be even both way
and VID:PID display like USB style
—
Reply to this email directly, view it on GitHub <#272 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABEZS5ZSDU37QXCNC66ZPA3U7L7JDANCNFSM5P4ATCGQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.
|
At least on the input side of the CLI I would advocate for falling back onto unambiguous format for numbers and accepting commonly understood (at the very least) From brief browsing around, it looked like there are provisions for expressing hexadecimal numbers in JSON5, but that is not a likely solution for us. |
Now is the time to not shy from breaking changes for long term stability .. in Option 1, we will have one case where REST Api calls can lead to confusion ... for sake of consistency (same response regardless of which interface is used), I recommend option 2. |
I would recommend option 1, and the confusion people may have, they will have to just take. It's not that confusing that a format that looks like a decimal number is a decimal number. |
TT decided on option 1. It will allow insertion using hex 0x designator for VID to suppress confusion of INT -> hex conversion during DCL key input (proposal). |
We did not change the VID/PID output format for the CLI, as this can lead to non trivial consequences. |
CSA has traditionally maintained Vendor IDs (Manufacturer Codes) as hexadecimal values, see https://groups.csa-iot.org/wg/members-all/document/10905.
DCL reports, and presumably accepts, decimal values for VIDs. This discrepancy raises the prospect that incorrect values for VID might be entered, either by error in converting from hex to decimal or by misinterpreting a hex value as decimal (when all digits are less than 'A').
DCL should accept and report hex values to conform with Alliance historical precedent.
The text was updated successfully, but these errors were encountered: