Detection of connection state of automobile battery line