Automatic detecting UART and I2C OBD adapter