Contributions to Smart Metering Protocol Design and Data Analytics