ProfinetTools icon indicating copy to clipboard operation
ProfinetTools copied to clipboard

Unable to set Network properties and Device name of BBH SMX module

Open mhoneywill opened this issue 5 years ago • 3 comments

I can discover a device and change its Name and IP address, and this change is persistent until I power cycle the device. Then it get set to a blank name and the IP address gets set to 0.0.0.0

The device I'm trying to configure is a BBH SMX module http://www.bbh-products.de/products/smx-series

If I use Proneta to set the Network settings and device name then the change is permanent. Proneta has a checkbox which say's "Make settings permanent" maybe this is what is missing here?

Any guidance as where to look or what might be the problem would be helpful

mhoneywill avatar Oct 11 '19 15:10 mhoneywill

Hi! Thank you for reporting this issue. Actually the software always calls the methods with the "Permanent" flag.

public IAsyncResult BeginSetNameRequest(PhysicalAddress destination, string name)
{
	byte[] bytes = Encoding.ASCII.GetBytes(name);
	return BeginSetRequest(destination, DCP.BlockOptions.DeviceProperties_NameOfStation, DCP.BlockQualifiers.Permanent, bytes);
}

public IAsyncResult BeginSetIpRequest(PhysicalAddress destination, IPAddress ip, IPAddress subnetMask, IPAddress gateway)
{
	byte[] bytes = new byte[12];
	Array.Copy(ip.GetAddressBytes(), 0, bytes, 0, 4);
	Array.Copy(subnetMask.GetAddressBytes(), 0, bytes, 4, 4);
	Array.Copy(gateway.GetAddressBytes(), 0, bytes, 8, 4);
	return BeginSetRequest(destination, DCP.BlockOptions.IP_IPParameter, DCP.BlockQualifiers.Permanent, bytes);
}

I will test the functions also with Wireshark and Proneta.

fbarresi avatar Oct 21 '19 15:10 fbarresi

Hi Fredirico,

I will do some tests at my end with Wireshark and Proneta I will also video the results.

What is the best email to contact you on regarding this?

Regards

Martin

mhoneywill avatar Oct 21 '19 19:10 mhoneywill

Hi Martin! Thank you for doing the test! You can upload the video on youtube and share it in the conversation.

fbarresi avatar Oct 22 '19 06:10 fbarresi