Added ping.

Now we know when the connection is interrupted by bluetooth or user.