Basler Vision Connector Messaging: Discovering the Camera
As initial step to establish communication, the Basler Vision Connector must discover and list all available cameras.
JSON Payload
Field | Optional | Type | Description |
TransactionID | Yes | String | Transaction identification |
Action | No | String | Method called. Fixed value: EnumerateDevices |
{
"TransactionID": "123456",
"Action": "EnumerateDevices"
}
Response Object
Field | Optional | Type | Description |
TransactionID | Yes | String | Transaction identification |
ReturnCode | No | Integer (32-bit unsigned) | Message code following Message Codes |
Message | Yes | String | Response message |
DeviceList | No | Array of camera devices | Array of camera devices |
Camera Object
Field | Optional | Type | Description |
SerialNumber | Yes | string | Camera identification |
UserDefinedName | Yes | String | Camera user-defined name |
ModelName | No | String | Camera model |
VendorName | No | String | Camera vendor |
Interface | No | String | Camera interface U3V (USB3 Vision), CXP (CoaXPress), GEV (GigEVision), CamEmu (Emulation) |
IPAddress | Yes | String | Camera IP address in IP v4 format |
{additional identification fields} | Yes | String | Additional device identification offered by the Basler Vision Connector. |
{
"TransactionID": "123456",
"ReturnCode": 0,
"Message": "Cameras found.",
"DeviceList": [
{
"SerialNumber": "548451887",
"UserDefinedName": "MyCam1",
"ModelName": "Camera Model 1234",
"VendorName": "The camera Factory",
"Interface": "GEV",
"IPAddress": "192.168.0.1"
}
]
}