Device Opening & Identification
To begin successful operation with DLN devices, first, you need to connect to DLN Server. You can do this with DlnConnect() function. You can also connect to several servers at once. For this you just need to call DlnConnect() with different parameters without closing previous connection.
By using the DLN library user can operate with several devices at once. The number of available devices can be retrieved by using the DlnGetDeviceCount() function.
A device can be opened using the DlnOpenDevice() function. In case there is a single device connected to a host, we can open it, specifying 0 as the first parameter.
In case there are several devices connected to a host, this function distinguishes them using a number, randomly assigned when a device is connected. Such a number cannot be used to open a specific device.
A user can use call the DlnOpenDeviceBySn() or DlnOpenDeviceById() function to open a specific device.
Serial Number
A serial number (SN) is factory assigned and cannot be changed. The SN can be used to open a device using the DlnOpenDeviceBySn() function. Once the device is open, a user can retrieve the device SN using the DlnGetDeviceSn() function.
Identification number
An identification (ID) number can be assigned to each DLN-series adapter by a user. In case there are several devices connected to a host, their ID numbers can be used for easy identification.
An ID number can be assigned using a DlnSetDeviceId() function. Once the ID number is set, it can be used to open the device using the DlnOpenDeviceById() function. The ID number of the opened device can be retrieved using the DlnGetDeviceId() function.
2006-2012