Basler Vision Connector Messaging: Discovering the Camera
To identify a camera, you can specify the MAC address, the serial number, the IP address, the user defined name, the model name, the vendor name, or the interface in the Basler Vision Connector.
If you don't know any of these identifiers, you can discover and list all available cameras with the EnumerateDevices method.
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 | No | 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 |
| MACAddress | Yes | String | Camera MAC address |
{
"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",
"MACAddress": "00:1A:2B:3C:4D:5E"
}
]
}