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

Unable to change Manufacturer ID #27

Open
stumouse opened this issue Jan 17, 2020 · 1 comment
Open

Unable to change Manufacturer ID #27

stumouse opened this issue Jan 17, 2020 · 1 comment

Comments

@stumouse
Copy link

Im trying to change the manufacturer ID to that of one i've gained.
Under which location do I change this?
Thanks

@peternewman
Copy link
Contributor

peternewman commented Jan 18, 2020

Hi @stumouse ,

That bit isn't really "productised" I'd say, you can currently either write it into the EEPROM yourself, and it will be read out:

DEVICEID deviceID; // store the device ID to allow easy software updates.

Or edit the code here and then it will be set as the default:

// The Device ID must be a unique number for each individual device.
// The first 2 bytes are specific for a manufacturer.
// The list of codes is available at http://tsp.plasa.org/tsp/working_groups/CP/mfctrIDs.php
// I use the number 0x0987 that is registered with myself.
// For the other 4 bytes I use the date of creation: 0x2012 0x11 0x02
// When the EEPROM values are valid, the _devID is taken from these values.
// This allows software updates without losing a specific device ID.
// It was an easy job to register a manufacturer id to myself as explained
// on http://tsp.plasa.org/tsp/working_groups/CP/mfctrIDs.php.
// Feel free to use my manufacturer id yourself if you promise only to use it
// for experiments and never to put a real device.
// If no valid EEPROM parameter block was found the following device ID is used and the last 2 bytes are randomized.
// If you plan for more please request your own manufacturer id
// and adjust the next line and the first two values in the array below that to use it:
DEVICEID _devID = { 0x09, 0x87, 0x20, 0x12, 0x00, 0x00 };
// The Device ID for addressing all devices of a manufacturer.
DEVICEID _devIDGroup = { 0x09, 0x87, 0xFF, 0xFF, 0xFF, 0xFF };

Make sure you change the first two bytes of _devID AND _devIDGroup so it responds properly to RDM.

Alternatively this commit in the TeensyDMX library does an equivalent change there to productise it, and that could was itself initially based on @mathertel 's library (amongst other things), so it should be possible to apply the changes without too much work if you fancy giving that a go:
chrisstaite/TeensyDmx@a0263cc

@peternewman peternewman mentioned this issue May 25, 2021
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