For BMW, you just hate to register in BMW website and install all the software that they have. There is instructions, but if you need any help, please be free to contact me.
About Mercedes, you have to order or find in the internet, a Xentry version exclusive for J2534. If you order the DVD from Mercedes it will cost about 100€. And then is ready to work.