How To Get MAC Address of Arduino or GSM Shield?

I am using an Uno and Mega 2560. I am also using the official GSM shield.

Is it possible to extract the MAC address of the Arduino and/or the MAC address of the GSM shield? If so, how do I do that?

Thank you in advance.

It doesn't look as if this is possible

The library doesnt have a function for it, and if you look in the AT command set for the module that the sheild uses, I can't see anything about mac address

I think this is the doc for the commands

http://www.acmesystems.it/datasheets/GSM_ATC_AN_V1.1.pdf

but you'd need to double check.

BTW. You are better of posting to the networking board on this forum not the programmming one

Is it possible to extract the MAC address of the Arduino

The Arduino doesn't have a MAC address.

and/or the MAC address of the GSM shield?

No.

@paulS

I presumed he meant the GSM module :wink:

I think that only ethernet devices have a mac address.

michinyon:
I think that only ethernet devices have a mac address.

Many different types of network interfaces use the same concept of a MAC address. They are not interchangeable in the sense that you can't use a WiFi MAC address as an Ethernet MAC address, but they are conceptually equivalent in that they represent a physical layer interface to a network.

Thank you everyone for your replies.

In the end, to solve that problem, I used IMEI instead. :slight_smile: