ID'ing the Espressif product by MAC address?
ID'ing the Espressif product by MAC address?
I have to ID a lot of devices on networks using only the MAC addresses of those devices. Do Espressif device MAC addresses have identifiers (past the OUI) to determine which Espressif device it is? Is there a Espressif MAC address decoder ring for devices?
Re: ID'ing the Espressif product by MAC address?
There isn't one built in. What would the unique names look like?
FYI the last six digits should be unique between all of the units since the prefix values identify manufacturer, etc. So you don't need the entire MAC to distinguish them.
If you want a readable, friendly unique name, consider using means. In my software I create a hostname from a friendly prefix identifying the product and suffix with the last six Mac address digits to ensure each is unique. This name is accessible via mDMS and NetBIOS.
FYI the last six digits should be unique between all of the units since the prefix values identify manufacturer, etc. So you don't need the entire MAC to distinguish them.
If you want a readable, friendly unique name, consider using means. In my software I create a hostname from a friendly prefix identifying the product and suffix with the last six Mac address digits to ensure each is unique. This name is accessible via mDMS and NetBIOS.
- Vader_Mester
- Posts: 300
- Joined: Tue Dec 05, 2017 8:28 pm
- Location: Hungary
- Contact:
Re: ID'ing the Espressif product by MAC address?
It is possible, to edit MAC addresses, and use the customized MACs to ID devices. By default ESP reads the base MAC from eFUSE which is factory programmed, but you can set the base MAC and store in flash, like with NVS, with this API.
Happy reading
Code: Select all
task_t coffeeTask()
{
while(atWork){
if(!xStreamBufferIsEmpty(mug)){
coffeeDrink(mug);
} else {
xTaskCreate(sBrew, "brew", 9000, &mug, 1, NULL);
xSemaphoreTake(sCoffeeRdy, portMAX_DELAY);
}
}
vTaskDelete(NULL);
}
Re: ID'ing the Espressif product by MAC address?
My hope was that some sort of logic was already in use. As an example Sonos, Apple and several other vendors use the next 2 hexadecimal numbers to identify the model. I was hoping Espressif also had such a scheme so that a more detailed identification could be made.
Re: ID'ing the Espressif product by MAC address?
Apple, et al, have written code to generate and publish a host name. You still need to write such code for esp32, so you can use any scheme you like.
Who is online
Users browsing this forum: No registered users and 91 guests