Software communication & interfaces
|
Page 7
Using the .dll’s with
different systems
Note that if you want to use the .dlls within x64 based systems
outside the framework of Visual C, you might need to convert the
library into a static .a format.
Establishing a
connection
To connect to a device, please use (part of attocubeJSONCall.h):
int ATTOCUBE_API
Connect(const char *deviceAddress, int*
deviceHandle)
The device handle is the reference to the connection and the device
and is input to all other device functions that are following.
To close the connection, please use:
int ATTOCUBE_API
Disconnect(int * deviceHandle)
Both functions are included in the API.
For a TCP/IP connection, the port 9090 is used.
Discovering devices
within the same
network
The discovery function can be used:
It searches your network for available attocube devices and
returns a list of properties. This is done by a SSDP broadcast. If no
devices are found, please check the device connection via TCP/IP
(e.g. via the websever). The device must be in the same subnet
than the requesting PC.
IMPORTANT NOTE: These functions are part of an additional
discovery .dll – the “attocube discovery dll”, which is also part of
the standard delivery content.
Therefore, following functions are available:
int DLL_EXP
AD_GetDeviceInfos(int index, DeviceInfo* info)
(Get informations about a discovered device)
void DLL_EXP
AD_ReleaseInfo();
(Release memory allocated by AD_Check)
int DLL_EXP
AD_Check(deviceType)
(Checks discoverable devices on the network and retrieves
informations)
Special data types:
typedef struct {
char ipAddress[32];
Содержание attocube AMC100
Страница 1: ...Interface Manual AMC100 AMC300...
Страница 3: ......