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 | タイプ | 説明 |
TransactionID | はい | String | Transaction identification |
アクション | いいえ | String | Method called. Fixed value: EnumerateDevices |
{
"TransactionID": "123456",
"Action": "EnumerateDevices"
}
Response Object
Field | Optional | タイプ | 説明 |
TransactionID | はい | String | Transaction identification |
ReturnCode | いいえ | Integer (32-bit unsigned) | Message code following Message Codes |
メッセージ | はい | String | Response message |
DeviceList | いいえ | Array of camera devices | Array of camera devices |
Camera Object
Field | Optional | タイプ | 説明 |
SerialNumber | はい | string | Camera identification |
UserDefinedName | はい | String | Camera user-defined name |
ModelName | いいえ | String | Camera model |
VendorName | いいえ | String | Camera vendor |
インターフェース | いいえ | String | Camera interface U3V (USB3 Vision), CXP (CoaXPress), GEV (GigEVision), CamEmu (Emulation) |
IPAddress | はい | String | Camera IP address in IP v4 format |
{additional identification fields} | はい | 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"
}
]
}