See https://canhacker.com/ch-obd-m02/ for great pinout image. Yes both GND are needed for reliable ELM327 operation. https://rusefi.com/forum/viewtopic.php?f=5&t=2233