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

document device_id #57

Open
sneakers-the-rat opened this issue Nov 6, 2024 · 2 comments
Open

document device_id #57

sneakers-the-rat opened this issue Nov 6, 2024 · 2 comments

Comments

@sneakers-the-rat
Copy link
Collaborator

i think we probably want to make use of this in a few places, some unique identifier for a device, so let's document how it works or otherwise link to where it gets documented in the firmware docs from the docs here.

from: #48 (comment)

It's just a number burned into the firmware and nothing OS-related (similar to serial number in SCPI instruments). It's used to filter out commands sent to a specific Miniscope when there are several scopes in one experiment.

@t-sasatani
Copy link
Collaborator

t-sasatani commented Nov 6, 2024

The firmware is not really documented, but posting anyways. The definition is here. Agree we should come back here soon.
https://github.com/Aharoni-Lab/Miniscope-SAMD-Framework/blob/13fbb85c114ac290a462bda1250c6406384c9acb/include/MS_config.h#L74

@t-sasatani
Copy link
Collaborator

and this is used here to screen commands that come to the specific device.
https://github.com/Aharoni-Lab/Miniscope-SAMD-Framework/blob/13fbb85c114ac290a462bda1250c6406384c9acb/src/MS_callback.c#L119

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

No branches or pull requests

2 participants