How read the MAC ADDRESS ???

Hello

I’m working with the software DIGI ESP for NET+OS for my CONNECTME with jtag

I need read the MAC ADDRESS of my board???

you can send me a example??

customizeGetInterfaceMACAddress()
getDefaultMacAddress()

These are both described in the API reference guide.

I’m using the compiler DIGI ESP FOR NET+OS for my CONNECTME with JTAG

I need read the value of the MAC ADDRESS of my Connect ME

I use the function:
customizeGetInterfaceMACAddress
this function returns the value of BP_SUCCESS, it means that the value is stored in “read_MAC_ADDRESS”.

But the value of “read_MAC_ADDRESS” does not correspond to the MAC ADDRESS (00:40:9D:43:35:97). The value of “read_MAC_ADDRESS” is:

read_MAC_ADDRESS[0] = '@'
read_MAC_ADDRESS[1] = .
read_MAC_ADDRESS[2] = 'C'
read_MAC_ADDRESS[3] = '5'
read_MAC_ADDRESS[4] = .
read_MAC_ADDRESS[5] = .
read_MAC_ADDRESS[6] = .
read_MAC_ADDRESS[7] = .
read_MAC_ADDRESS[8] = .

void applicationStart (void)

{
BYTE read_MAC_ADDRESS[7];

if(customizeGetInterfaceMACAddress(“eth0”,read_MAC_ADDRESS)==BP_SUCCESS)
{
printf(“SUCESSS”);

}

}

Message was edited by: isaac

Message was edited by: isaac

What are the actual values? Not the ASCII equivalents.

ex.
read_MAC_ADDRESS[0] == 0x00
read_MAC_ADDRESS[1] == 0x4D

Could well be right, or maybe one position out in the array.

Given your MAC ADDRESS (00:40:9D:43:35:97) (numbers are in hexadecimal):

Look at the hex values of the characters

read_MAC_ADDRESS[0] = '@' = 0x40
read_MAC_ADDRESS[1] = .
read_MAC_ADDRESS[2] = 'C' = 0x43
read_MAC_ADDRESS[3] = '5' = 0x35
read_MAC_ADDRESS[4] = .
read_MAC_ADDRESS[5] = .
read_MAC_ADDRESS[6] = .
read_MAC_ADDRESS[7] = .
read_MAC_ADDRESS[8] = .

Depending on how you printed out the values, ‘.’ could well represent any unprintable character.

And you’ve declared a 7-element array for the MAC address, but are printing out 9 bytes.

Hello Steven!!!
much thanks for you Help to my!!!

thank you