Finding the MAC address

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Greenwing
Posts: 3
Joined: Tue Oct 13, 2009 10:54 am

Finding the MAC address

Post by Greenwing »

Greetings, I have a problem I'm hoping somebody will be kind enough to help me out with. I'm trying to read the MAC address of the PlayStation, to generate a persistent unique key. I've found the dev9 IOP function "dev9GetEEPROM" which seems to do what I'm looking for, but I'm unsure how to call this IOP function from code running on the EE.
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

This is only available if the HDD adapter is connected or if the program is running on slim PSTwo.
I didn't test it, but the function ps2ip_getconfig() seems to read it if you loaded the network modules. There is the attribute hw_addr in the second parameter. I think the netif_name is "sm0" or "sm1". You need to try it.
Greenwing
Posts: 3
Joined: Tue Oct 13, 2009 10:54 am

Post by Greenwing »

That is, indeed, the answer, or at least it gets me the MAC address, which is all I really need to solve at this point.

Thanks,
Post Reply