Files
Aaru/Aaru.Core/Devices/Info/DeviceInfo.cs

597 lines
27 KiB
C#
Raw Normal View History

2018-09-01 19:22:46 +01:00
// /***************************************************************************
2020-02-27 12:31:25 +00:00
// Aaru Data Preservation Suite
2018-09-01 19:22:46 +01:00
// ----------------------------------------------------------------------------
//
// Filename : DeviceInfo.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Core.
//
// --[ Description ] ----------------------------------------------------------
//
// Retrieves the device info.
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2020-01-03 17:51:30 +00:00
// Copyright © 2011-2020 Natalia Portillo
2018-09-01 19:22:46 +01:00
// ****************************************************************************/
using System;
using System.Collections.Generic;
2020-02-27 00:33:26 +00:00
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Structs.Devices.SCSI;
using Aaru.Console;
using Aaru.Decoders.ATA;
using Aaru.Decoders.SCSI;
using Aaru.Devices;
using Inquiry = Aaru.CommonTypes.Structs.Devices.SCSI.Inquiry;
namespace Aaru.Core.Devices.Info
2018-09-01 19:22:46 +01:00
{
public partial class DeviceInfo
{
public DeviceInfo(Device dev)
{
Type = dev.Type;
Manufacturer = dev.Manufacturer;
Model = dev.Model;
FirmwareRevision = dev.FirmwareRevision;
Serial = dev.Serial;
ScsiType = dev.ScsiType;
IsRemovable = dev.IsRemovable;
IsUsb = dev.IsUsb;
UsbVendorId = dev.UsbVendorId;
UsbProductId = dev.UsbProductId;
UsbDescriptors = dev.UsbDescriptors;
UsbManufacturerString = dev.UsbManufacturerString;
UsbProductString = dev.UsbProductString;
UsbSerialString = dev.UsbSerialString;
IsFireWire = dev.IsFireWire;
FireWireGuid = dev.FireWireGuid;
FireWireModel = dev.FireWireModel;
FireWireModelName = dev.FireWireModelName;
FireWireVendor = dev.FireWireVendor;
FireWireVendorName = dev.FireWireVendorName;
IsCompactFlash = dev.IsCompactFlash;
IsPcmcia = dev.IsPcmcia;
Cis = dev.Cis;
2018-09-01 19:22:46 +01:00
switch(dev.Type)
{
case DeviceType.ATA:
{
bool sense = dev.AtaIdentify(out byte[] ataBuf, out AtaErrorRegistersChs errorRegisters);
if(sense)
{
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "STATUS = 0x{0:X2}", errorRegisters.Status);
AaruConsole.DebugWriteLine("Device-Info command", "ERROR = 0x{0:X2}", errorRegisters.Error);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "NSECTOR = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.SectorCount);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "SECTOR = 0x{0:X2}", errorRegisters.Sector);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "CYLHIGH = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.CylinderHigh);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "CYLLOW = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.CylinderLow);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "DEVICE = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.DeviceHead);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "Error code = {0}", dev.LastError);
2018-09-01 19:22:46 +01:00
break;
}
if(dev.Error)
{
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("Error {0} querying ATA IDENTIFY", dev.LastError);
break;
}
2018-09-01 19:22:46 +01:00
AtaIdentify = ataBuf;
dev.EnableMediaCardPassThrough(out errorRegisters, dev.Timeout, out _);
if(errorRegisters.Sector == 0xAA &&
errorRegisters.SectorCount == 0x55)
2018-09-01 19:22:46 +01:00
AtaMcptError = errorRegisters;
break;
}
2018-09-01 19:22:46 +01:00
case DeviceType.ATAPI:
{
bool sense = dev.AtapiIdentify(out byte[] ataBuf, out AtaErrorRegistersChs errorRegisters);
if(sense)
{
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "STATUS = 0x{0:X2}", errorRegisters.Status);
AaruConsole.DebugWriteLine("Device-Info command", "ERROR = 0x{0:X2}", errorRegisters.Error);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "NSECTOR = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.SectorCount);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "SECTOR = 0x{0:X2}", errorRegisters.Sector);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "CYLHIGH = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.CylinderHigh);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "CYLLOW = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.CylinderLow);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "DEVICE = 0x{0:X2}",
2020-02-29 18:03:35 +00:00
errorRegisters.DeviceHead);
2020-02-27 23:48:41 +00:00
AaruConsole.DebugWriteLine("Device-Info command", "Error code = {0}", dev.LastError);
2018-09-01 19:22:46 +01:00
break;
}
if(!dev.Error)
AtapiIdentify = ataBuf;
else
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("Error {0} querying ATA PACKET IDENTIFY", dev.LastError);
2018-09-01 19:22:46 +01:00
// ATAPI devices are also SCSI devices
goto case DeviceType.SCSI;
}
2018-09-01 19:22:46 +01:00
case DeviceType.SCSI:
{
bool sense = dev.ScsiInquiry(out byte[] inqBuf, out byte[] senseBuf);
if(sense)
{
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("SCSI error:\n{0}", Sense.PrettifySense(senseBuf));
2018-09-01 19:22:46 +01:00
break;
}
ScsiInquiryData = inqBuf;
ScsiInquiry = Inquiry.Decode(inqBuf);
sense = dev.ScsiInquiry(out inqBuf, out senseBuf, 0x00);
if(!sense)
{
ScsiEvpdPages = new Dictionary<byte, byte[]>();
byte[] pages = EVPD.DecodePage00(inqBuf);
if(pages != null)
foreach(byte page in pages)
{
sense = dev.ScsiInquiry(out inqBuf, out senseBuf, page);
if(sense)
continue;
2018-09-01 19:22:46 +01:00
ScsiEvpdPages.Add(page, inqBuf);
}
}
var devType = (PeripheralDeviceTypes)ScsiInquiry.Value.PeripheralDeviceType;
2018-09-01 19:22:46 +01:00
sense = dev.ModeSense10(out byte[] modeBuf, out senseBuf, false, true,
ScsiModeSensePageControl.Current, 0x3F, 0xFF, 5, out _);
if(!sense &&
!dev.Error)
ScsiModeSense10 = modeBuf;
2018-09-01 19:22:46 +01:00
if(sense || dev.Error)
{
sense = dev.ModeSense10(out modeBuf, out senseBuf, false, true,
ScsiModeSensePageControl.Current, 0x3F, 0x00, 5, out _);
if(!sense &&
!dev.Error)
ScsiModeSense10 = modeBuf;
2018-09-01 19:22:46 +01:00
}
if(!sense &&
!dev.Error)
ScsiMode = Modes.DecodeMode10(modeBuf, devType);
2018-09-01 19:22:46 +01:00
bool useMode10 = !(sense || dev.Error || !ScsiMode.HasValue);
sense = dev.ModeSense6(out modeBuf, out senseBuf, false, ScsiModeSensePageControl.Current, 0x3F,
0xFF, 5, out _);
if(!sense &&
!dev.Error)
ScsiModeSense6 = modeBuf;
2018-09-01 19:22:46 +01:00
if(sense || dev.Error)
{
sense = dev.ModeSense6(out modeBuf, out senseBuf, false, ScsiModeSensePageControl.Current, 0x3F,
0x00, 5, out _);
if(!sense &&
!dev.Error)
ScsiModeSense6 = modeBuf;
2018-09-01 19:22:46 +01:00
}
if(sense || dev.Error)
{
sense = dev.ModeSense(out modeBuf, out senseBuf, 5, out _);
if(!sense &&
!dev.Error)
ScsiModeSense6 = modeBuf;
2018-09-01 19:22:46 +01:00
}
if(!sense &&
!dev.Error &&
!useMode10)
ScsiMode = Modes.DecodeMode6(modeBuf, devType);
2018-09-01 19:22:46 +01:00
switch(devType)
{
case PeripheralDeviceTypes.MultiMediaDevice:
{
sense = dev.GetConfiguration(out byte[] confBuf, out senseBuf, dev.Timeout, out _);
if(!sense)
MmcConfiguration = confBuf;
2018-09-01 19:22:46 +01:00
// TODO: DVD drives respond correctly to BD status.
// While specification says if no medium is present
// it should inform all possible capabilities,
// testing drives show only supported media capabilities.
/*
byte[] strBuf;
sense = dev.ReadDiscStructure(out strBuf, out senseBuf, MmcDiscStructureMediaType.DVD, 0, 0, MmcDiscStructureFormat.CapabilityList, 0, dev.Timeout, out _);
if (!sense)
{
Decoders.SCSI.DiscStructureCapabilities.Capability[] caps = Decoders.SCSI.DiscStructureCapabilities.Decode(strBuf);
if (caps != null)
{
foreach (Decoders.SCSI.DiscStructureCapabilities.Capability cap in caps)
{
if (cap.SDS && cap.RDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can READ/SEND DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
else if (cap.SDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can SEND DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
else if (cap.RDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can READ DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
}
}
}
sense = dev.ReadDiscStructure(out strBuf, out senseBuf, MmcDiscStructureMediaType.BD, 0, 0, MmcDiscStructureFormat.CapabilityList, 0, dev.Timeout, out _);
if (!sense)
{
Decoders.SCSI.DiscStructureCapabilities.Capability[] caps = Decoders.SCSI.DiscStructureCapabilities.Decode(strBuf);
if (caps != null)
{
foreach (Decoders.SCSI.DiscStructureCapabilities.Capability cap in caps)
{
if (cap.SDS && cap.RDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can READ/SEND DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
else if (cap.SDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can SEND DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
else if (cap.RDS)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("Drive can READ DISC STRUCTURE format {0:X2}h", cap.FormatCode);
2018-09-01 19:22:46 +01:00
}
}
}
*/
#region Plextor
if(dev.Manufacturer == "PLEXTOR")
{
bool plxtSense = true;
bool plxtDvd = false;
byte[] plxtBuf = null;
switch(dev.Model)
{
2020-02-29 18:03:35 +00:00
case "DVDR PX-708A":
case "DVDR PX-708A2":
case "DVDR PX-712A":
2018-09-01 19:22:46 +01:00
plxtDvd = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorReadEeprom(out plxtBuf, out senseBuf, dev.Timeout,
out _);
2018-09-01 19:22:46 +01:00
break;
2020-02-29 18:03:35 +00:00
case "DVDR PX-714A":
case "DVDR PX-716A":
case "DVDR PX-716AL":
case "DVDR PX-755A":
case "DVDR PX-760A":
2018-09-01 19:22:46 +01:00
{
plxtBuf = new byte[256 * 4];
2018-09-01 19:22:46 +01:00
for(byte i = 0; i < 4; i++)
{
plxtSense = dev.PlextorReadEepromBlock(out byte[] plxtBufSmall,
out senseBuf, i, 256, dev.Timeout,
out _);
if(plxtSense)
break;
2018-09-01 19:22:46 +01:00
Array.Copy(plxtBufSmall, 0, plxtBuf, i * 256, 256);
}
plxtDvd = true;
2018-09-01 19:22:46 +01:00
break;
}
2018-09-01 19:22:46 +01:00
default:
{
if(dev.Model.StartsWith("CD-R ", StringComparison.Ordinal))
plxtSense = dev.PlextorReadEepromCdr(out plxtBuf, out senseBuf, dev.Timeout,
out _);
2018-09-01 19:22:46 +01:00
break;
}
}
PlextorFeatures = new Plextor
{
IsDvd = plxtDvd
};
2018-09-01 19:22:46 +01:00
if(!plxtSense)
{
PlextorFeatures.Eeprom = plxtBuf;
if(plxtDvd)
{
PlextorFeatures.Discs = BigEndianBitConverter.ToUInt16(plxtBuf, 0x0120);
PlextorFeatures.CdReadTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x0122);
PlextorFeatures.CdWriteTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x0126);
PlextorFeatures.DvdReadTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x012A);
PlextorFeatures.DvdWriteTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x012E);
}
else
{
PlextorFeatures.Discs = BigEndianBitConverter.ToUInt16(plxtBuf, 0x0078);
PlextorFeatures.CdReadTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x006C);
PlextorFeatures.CdWriteTime = BigEndianBitConverter.ToUInt32(plxtBuf, 0x007A);
}
}
plxtSense = dev.PlextorGetPoweRec(out senseBuf, out bool plxtPwrRecEnabled,
out ushort plxtPwrRecSpeed, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(!plxtSense)
{
PlextorFeatures.PoweRec = true;
if(plxtPwrRecEnabled)
{
PlextorFeatures.PoweRecEnabled = true;
PlextorFeatures.PoweRecRecommendedSpeed = plxtPwrRecSpeed;
plxtSense = dev.PlextorGetSpeeds(out senseBuf, out ushort plxtPwrRecSelected,
out ushort plxtPwrRecMax,
out ushort plxtPwrRecLast, dev.Timeout, out _);
if(!plxtSense)
{
PlextorFeatures.PoweRecSelected = plxtPwrRecSelected;
PlextorFeatures.PoweRecMax = plxtPwrRecMax;
PlextorFeatures.PoweRecLast = plxtPwrRecLast;
}
}
}
// TODO: Check it with a drive
plxtSense = dev.PlextorGetSilentMode(out plxtBuf, out senseBuf, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(!plxtSense)
if(plxtBuf[0] == 1)
{
PlextorFeatures.SilentModeEnabled = true;
PlextorFeatures.AccessTimeLimit = plxtBuf[1];
PlextorFeatures.CdReadSpeedLimit = plxtBuf[2];
PlextorFeatures.DvdReadSpeedLimit = plxtBuf[3];
PlextorFeatures.CdWriteSpeedLimit = plxtBuf[4];
// TODO: Check which one is each one
/*
if(plxtBuf[6] > 0)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("\tTray eject speed limited to {0}",
2018-09-01 19:22:46 +01:00
-(plxtBuf[6] + 48));
if(plxtBuf[7] > 0)
2020-02-27 23:48:41 +00:00
AaruConsole.WriteLine("\tTray eject speed limited to {0}",
2018-09-01 19:22:46 +01:00
plxtBuf[7] - 47);
*/
}
plxtSense = dev.PlextorGetGigaRec(out plxtBuf, out senseBuf, dev.Timeout, out _);
if(!plxtSense)
PlextorFeatures.GigaRec = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorGetSecuRec(out plxtBuf, out senseBuf, dev.Timeout, out _);
if(!plxtSense)
PlextorFeatures.SecuRec = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorGetSpeedRead(out plxtBuf, out senseBuf, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(!plxtSense)
{
PlextorFeatures.SpeedRead = true;
if((plxtBuf[2] & 0x01) == 0x01)
PlextorFeatures.SpeedReadEnabled = true;
2018-09-01 19:22:46 +01:00
}
plxtSense = dev.PlextorGetHiding(out plxtBuf, out senseBuf, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(!plxtSense)
{
PlextorFeatures.Hiding = true;
if((plxtBuf[2] & 0x02) == 0x02)
PlextorFeatures.HidesRecordables = true;
if((plxtBuf[2] & 0x01) == 0x01)
PlextorFeatures.HidesSessions = true;
2018-09-01 19:22:46 +01:00
}
plxtSense = dev.PlextorGetVariRec(out plxtBuf, out senseBuf, false, dev.Timeout, out _);
if(!plxtSense)
PlextorFeatures.VariRec = true;
2018-09-01 19:22:46 +01:00
if(plxtDvd)
{
plxtSense = dev.PlextorGetVariRec(out plxtBuf, out senseBuf, true, dev.Timeout,
out _);
if(!plxtSense)
PlextorFeatures.VariRecDvd = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorGetBitsetting(out plxtBuf, out senseBuf, false, dev.Timeout,
out _);
if(!plxtSense)
PlextorFeatures.BitSetting = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorGetBitsetting(out plxtBuf, out senseBuf, true, dev.Timeout,
out _);
if(!plxtSense)
PlextorFeatures.BitSettingDl = true;
2018-09-01 19:22:46 +01:00
plxtSense = dev.PlextorGetTestWriteDvdPlus(out plxtBuf, out senseBuf, dev.Timeout,
out _);
if(!plxtSense)
PlextorFeatures.DvdPlusWriteTest = true;
2018-09-01 19:22:46 +01:00
}
}
#endregion Plextor
if(ScsiInquiry.Value.KreonPresent)
if(!dev.KreonGetFeatureList(out senseBuf, out KreonFeatures krFeatures, dev.Timeout,
out _))
KreonFeatures = krFeatures;
2018-09-01 19:22:46 +01:00
break;
}
2018-09-01 19:22:46 +01:00
case PeripheralDeviceTypes.SequentialAccess:
{
sense = dev.ReadBlockLimits(out byte[] seqBuf, out senseBuf, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(sense)
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("READ BLOCK LIMITS:\n{0}", Sense.PrettifySense(senseBuf));
else
BlockLimits = seqBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReportDensitySupport(out seqBuf, out senseBuf, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(sense)
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("REPORT DENSITY SUPPORT:\n{0}",
2020-02-29 18:03:35 +00:00
Sense.PrettifySense(senseBuf));
2018-09-01 19:22:46 +01:00
else
{
DensitySupport = seqBuf;
2020-02-29 18:03:35 +00:00
DensitySupportHeader = Decoders.SCSI.SSC.DensitySupport.DecodeDensity(seqBuf);
2018-09-01 19:22:46 +01:00
}
sense = dev.ReportDensitySupport(out seqBuf, out senseBuf, true, false, dev.Timeout, out _);
2018-09-01 19:22:46 +01:00
if(sense)
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("REPORT DENSITY SUPPORT (MEDIUM):\n{0}",
2020-02-29 18:03:35 +00:00
Sense.PrettifySense(senseBuf));
2018-09-01 19:22:46 +01:00
else
{
MediumDensitySupport = seqBuf;
2020-02-29 18:03:35 +00:00
MediaTypeSupportHeader = Decoders.SCSI.SSC.DensitySupport.DecodeMediumType(seqBuf);
2018-09-01 19:22:46 +01:00
}
break;
}
}
break;
}
2018-09-01 19:22:46 +01:00
case DeviceType.MMC:
{
bool sense = dev.ReadCid(out byte[] mmcBuf, out _, dev.Timeout, out _);
if(!sense)
CID = mmcBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadCsd(out mmcBuf, out _, dev.Timeout, out _);
if(!sense)
CSD = mmcBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadOcr(out mmcBuf, out _, dev.Timeout, out _);
if(!sense)
OCR = mmcBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadExtendedCsd(out mmcBuf, out _, dev.Timeout, out _);
if(!sense)
ExtendedCSD = mmcBuf;
2018-09-01 19:22:46 +01:00
}
2018-09-01 19:22:46 +01:00
break;
case DeviceType.SecureDigital:
{
bool sense = dev.ReadCid(out byte[] sdBuf, out _, dev.Timeout, out _);
if(!sense)
CID = sdBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadCsd(out sdBuf, out _, dev.Timeout, out _);
if(!sense)
CSD = sdBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadSdocr(out sdBuf, out _, dev.Timeout, out _);
if(!sense)
OCR = sdBuf;
2018-09-01 19:22:46 +01:00
sense = dev.ReadScr(out sdBuf, out _, dev.Timeout, out _);
if(!sense)
SCR = sdBuf;
2018-09-01 19:22:46 +01:00
}
2018-09-01 19:22:46 +01:00
break;
default:
2020-02-27 23:48:41 +00:00
AaruConsole.ErrorWriteLine("Unknown device type {0}, cannot get information.", dev.Type);
2018-09-01 19:22:46 +01:00
break;
}
}
}
}