I have a bunch of devices I want to talk to occasionally that's behind a firewall. Messages to/from port 47808 pass fine, but broadcasts do not work.
The device is a Wattstopper digital lighting control segment manager that sits on ethernet. Behind it are four MS/TP segments.
I figured out that I can do the following:
int instanceNumber = 1234; /* not the real instance id of the gateway/segment manager */ Address segmentManagerAddress = new Address("10.1.2.3", 47808); /* not the real IP address */ OctetString segmentManagerLinkService = null; RemoteDevice segmentManager = new RemoteDevice(instanceNumber, segmentManagerAddress, segmentManagerLinkService); segmentManager.setSegmentationSupported(Segmentation.noSegmentation); segmentManager.setMaxAPDULengthAccepted(1476); Encodable descr = RequestUtils.sendReadPropertyAllowNull(localDevice, segmentManager, remoteRequestOid, PropertyIdentifier.description);
this gets me a description so it works.
My next step is to figure out how to talk to the devices that are on the networks BEYOND the gateway/segment manager. Each one has its own network ID and a bunch of devices.
Without using broadcast discovery, how do I configure a RemoteDevice that can talk to these devices?