示例#1
0
        public void ShouldGetVersionsProvidingSystems(ControllerInfo controllerInfo)
        {
            var    client  = MultipleUploaderClient.Create();
            string version = client.GetFirmwareVersion(controllerInfo.Ip);

            _output.WriteLine(controllerInfo.Name + ": Version:" + version);
            Assert.NotNull(version);
            Assert.NotEmpty(version);
        }
示例#2
0
        private void RunFirmwareUpload(ControllerInfo controllerInfo, string pathToRessorce)
        {
            var client  = MultipleUploaderClient.Create();
            var logfile = new List <string>()
            {
                "Start"
            };
            var  retryCounter = 0;
            bool success      = false;

            while (!logfile[^ 1].Contains("[SUCCESS]") && retryCounter < 4)
示例#3
0
 public void ShouldUpdateFirmwareScaleControllerOLED(ControllerInfo controllerInfo)
 {
     RunFirmwareUpload(controllerInfo, @"Y:\motorcontroller\PlatformIO\ScaleControllerOLED");
 }
示例#4
0
 public void ShouldUpdateFirmwareConveyorController(ControllerInfo controllerInfo)
 {
     RunFirmwareUpload(controllerInfo, @"Y:\motorcontroller\PlatformIO\ConveyorController");
 }
示例#5
0
 public void ShouldUpdateFirmwareVibrationController(ControllerInfo controllerInfo)
 {
     RunFirmwareUpload(controllerInfo, @"Y:\motorcontroller\PlatformIO\V-FeederController");
 }
示例#6
0
 public void ShouldUpdateFirmwareLifterController(ControllerInfo controllerInfo)
 {
     RunFirmwareUpload(controllerInfo, @"Y:\motorcontroller\PlatformIO\LifterControllerVNH7070AS");
 }