I created this program:
var plm = new Plm("COM3");
plm.OnError += OnError;
var info = plm.GetInfo();
Console.WriteLine(string.Format("Device Category: {0} Subcategory: {1} Firmware: {2}", info.DeviceCategory, info.DeviceSubcategory, info.FirmwareVersion));
var database = plm.GetAllLinkDatabase();
foreach (var record in database.Records)
{
Console.WriteLine(string.Format("DeviceId: {0}, IsMaster {1}", record.DeviceId, record.PlmIsMaster));
DeviceBase device;
if (plm.Network.TryConnectToDevice(record.DeviceId, out device))
{
Console.WriteLine(string.Format(" Device Category: {0} Subcategory: {1} Firmware: {2}", device.DeviceCategory, device.DeviceSubcategory));
}
else
{
Console.WriteLine(string.Format(" Device did not responded"));
}
}
This is the output I get:
Device Category: Network Bridges Subcategory: PowerLinc - USB (Dual Band) [2413U] Firmware: 146
DeviceId: 25.BC.0F, IsMaster True
System.TimeoutException: Timeout waiting for receipt of data.
at SoapBox.FluentDwelling.SerialPortController.waitForMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.SerialPortController.<>c__DisplayClass4.<GetIncomingMessageOfType>b__5()
at SoapBox.FluentDwelling.SerialPortController.serialPortTransaction(Action action)
at SoapBox.FluentDwelling.SerialPortController.GetIncomingMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.PlmCommunicatorBase.waitForStandardMessageFrom(DeviceId peerAddress)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessageAndWait4Response(DeviceId toAddress, Byte flags, Byte command1, Byte comman
d2)
at SoapBox.FluentDwelling.PlmNetwork.<>c__DisplayClass2.<TryConnectToDevice>b__3()
at SoapBox.FluentDwelling.PlmCommunicatorBase.exceptionHandler(Action action)
Device did not responded
DeviceId: 25.BD.83, IsMaster True
System.TimeoutException: Timeout waiting for receipt of data.
at SoapBox.FluentDwelling.SerialPortController.waitForMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.SerialPortController.<>c__DisplayClass4.<GetIncomingMessageOfType>b__5()
at SoapBox.FluentDwelling.SerialPortController.serialPortTransaction(Action action)
at SoapBox.FluentDwelling.SerialPortController.GetIncomingMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.PlmCommunicatorBase.waitForStandardMessageFrom(DeviceId peerAddress)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessageAndWait4Response(DeviceId toAddress, Byte flags, Byte command1, Byte comman
d2)
at SoapBox.FluentDwelling.PlmNetwork.<>c__DisplayClass2.<TryConnectToDevice>b__3()
at SoapBox.FluentDwelling.PlmCommunicatorBase.exceptionHandler(Action action)
Device did not responded
DeviceId: 25.BF.1C, IsMaster True
System.TimeoutException: Timeout waiting for receipt of data.
at SoapBox.FluentDwelling.SerialPortController.waitForMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.SerialPortController.<>c__DisplayClass4.<GetIncomingMessageOfType>b__5()
at SoapBox.FluentDwelling.SerialPortController.serialPortTransaction(Action action)
at SoapBox.FluentDwelling.SerialPortController.GetIncomingMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.PlmCommunicatorBase.waitForStandardMessageFrom(DeviceId peerAddress)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessageAndWait4Response(DeviceId toAddress, Byte flags, Byte command1, Byte comman
d2)
at SoapBox.FluentDwelling.PlmNetwork.<>c__DisplayClass2.<TryConnectToDevice>b__3()
at SoapBox.FluentDwelling.PlmCommunicatorBase.exceptionHandler(Action action)
Device did not responded
DeviceId: 16.55.6A, IsMaster True
System.TimeoutException: Timeout waiting for receipt of data.
at SoapBox.FluentDwelling.SerialPortController.waitForMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.SerialPortController.<>c__DisplayClass0.<SendReceive>b__1()
at SoapBox.FluentDwelling.SerialPortController.serialPortTransaction(Action action)
at SoapBox.FluentDwelling.SerialPortController.SendReceive(Byte[] send, Int32 receiveLength)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendCommandWithEchoReturnAck(Byte[] send)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendCommandWithEchoAndAck(Byte[] send)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessage(DeviceId toAddress, Byte flags, Byte command1, Byte command2)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessageAndWait4Response(DeviceId toAddress, Byte flags, Byte command1, Byte comman
d2)
at SoapBox.FluentDwelling.PlmNetwork.<>c__DisplayClass2.<TryConnectToDevice>b__3()
at SoapBox.FluentDwelling.PlmCommunicatorBase.exceptionHandler(Action action)
Device did not responded
DeviceId: 16.55.6A, IsMaster True
System.TimeoutException: Timeout waiting for receipt of data.
at SoapBox.FluentDwelling.SerialPortController.waitForMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.SerialPortController.<>c__DisplayClass4.<GetIncomingMessageOfType>b__5()
at SoapBox.FluentDwelling.SerialPortController.serialPortTransaction(Action action)
at SoapBox.FluentDwelling.SerialPortController.GetIncomingMessageOfType(Byte[] messageTypes)
at SoapBox.FluentDwelling.PlmCommunicatorBase.waitForStandardMessageFrom(DeviceId peerAddress)
at SoapBox.FluentDwelling.PlmCommunicatorBase.sendStandardLengthMessageAndWait4Response(DeviceId toAddress, Byte flags, Byte command1, Byte comman
d2)
at SoapBox.FluentDwelling.PlmNetwork.<>c__DisplayClass2.<TryConnectToDevice>b__3()
at SoapBox.FluentDwelling.PlmCommunicatorBase.exceptionHandler(Action action)
Device did not responded