support
support copied to clipboard
[Feature] Make unique device identifier readable
Is your feature request related to a problem? Please describe. Sometimes it can be useful to tell motors and sensors apart, beyond their device type ID. For example:
- to inventory parts
- to tell different robotic attachments apart despite using the same motor type
This was requested by @biasedlogic.
Describe the solution you'd like
Some devices have a unique device identifier. We could make it readable in the PUPDevice.info() dictionary, which is intended precisely for this sort of thing.
I have two 'user stories' for this:
- I first thought about the IDs themselves when I was doing a lecture on robotics where in one part I'm assembling a demo robot going module by module and explaining what each one does. Doing that I plugged something I had two of, I think the colour sensors, the wrong way around and obviously the whole thing didn't work. So I thought: would it be possible to actually tell the sensors apart and dynamically reassign ports? If I could read the IDs I could tie a physical sensor (or motor) to its function rather than to the port it's plugged into. Then I could even plug everything in at random. Sure, swapping a sensor out suddenly gets harder, but it's not about replacing the port assignments, but expanding possibilities of identifying connected peripherals.
- The idea of using internal IDs for tracking components came up as a loaned set (not robotics) came back with an PU XL motor that was very suspect (worn and banged up). This brought me to the question of whether the motors and sensors have serial numbers that can be read out to identify them as 'mine' or 'changeling' and prove someone was an a**. This lead to the idea of actually using the digital IDs instead of any stickers also for lab inventory keeping, as stickers can peel off and are cumbersome to apply on everything anyway, so if one could just plug it in to identify and register in inventory tracking software we could forgo inventory stickers on these devices altogether.