set length for all device messages