Fix some issues with EMV - c and cn data types

- Fix some issues with EMV - c and cn data types
- Handle keepAlive message received from the other end of the connection