Merge "Add Duplex mode to ServiceState." into pi-dev