This thread covers the coding topic pretty well. I don't know that you can use this method for diagnostics.
http://www.bimmerfest.com/forums/sho...d.php?t=631884
The cable is called ENET. It has an OBDII connector on one end and an Ethernet cable on the other.