IP-based M2M communication for serial applications