Attention all Brainiacs ? Need MAC
Comments
-
I ran into the same issue a year or two ago on a couple of NI-3000s but I don’t know why it happens. I was asking for the Unique_ID at startup but was getting all nulls. I then tried delaying the query until about a minute after startup and that helped *most* of the time but some of the time I still needed to reboot. I think I ended changing the code to retry once a minute until it got a correct response. I never did figure out what the deal was. I guess all masters aren’t created equal.I use get_unique_id quite often to identify processors. Works great. Yesterday I installed some code and get_unique_id is returning all zeros. I rebooted several times while working on the system, and eventually I did get a proper "unique id", but after a subsequent reboot I'm back to getting zeros.
Unfortunately I didn't get the firmware version, it is possible that the master is running a slightly out of date version.
Any ideas why this would be happening? -
Joe Hebert wrote: »I ran into the same issue a year or two ago on a couple of NI-3000s but I don’t know why it happens. I was asking for the Unique_ID at startup but was getting all nulls. I then tried delaying the query until about a minute after startup and that helped *most* of the time but some of the time I still needed to reboot. I think I ended changing the code to retry once a minute until it got a correct response. I never did figure out what the deal was. I guess all masters aren’t created equal.
Try putting in a data_Event[0:1:0]
I get this same info from the dev_info_struct. It has all the stuff in it. I don't think I've ever gotten a null from it. -
I use get_unique_id quite often to identify processors. Works great. Yesterday I installed some code and get_unique_id is returning all zeros. I rebooted several times while working on the system, and eventually I did get a proper "unique id", but after a subsequent reboot I'm back to getting zeros.
Unfortunately I didn't get the firmware version, it is possible that the master is running a slightly out of date version.
Any ideas why this would be happening?
My information is that the serial number is changeable by AMX, which would indicate being stored somewhere on the EEPROM? AMX can change it for you if you need to. -
The unique_id and serial number are two different animals. The unique_id is *normally* the mac address. The serial number can be wiped out so it's not reliable to hook into.My information is that the serial number is changeable by AMX, which would indicate being stored somewhere on the EEPROM? AMX can change it for you if you need to. -
Joe Hebert wrote: »The unique_id and serial number are two different animals. The unique_id is *normally* the mac address. The serial number can be wiped out so it's not reliable to hook into.
Good point.
Thanks Joe. -
You could just hardcode a GUID into your program and use that as your unique ID.
-
You could just hardcode a GUID into your program and use that as your unique ID.
I like the "hands off" approach that get_unique_id allows (when it works!). I'll probably use Joe's suggestion and keep checking until I get a valid id. -
Side effect?
This has only happened once, so I can't say this is 100% a positive relationship yet, but I just had the Card slots not coming online issue with a 4100 ... and my get_unique_id returned all nulls. Hmmmm.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums