Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:slave_control_api [2023/02/28 15:29] mwkim [BS2OsdpStandardDeviceCapability] |
en:slave_control_api [2024/10/24 14:44] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
* [[BS2_GetSlaveDevice]]: Searches a slave device from the RS-485 network. | * [[BS2_GetSlaveDevice]]: Searches a slave device from the RS-485 network. | ||
* [[BS2_SetSlaveDevice]]: Add/Modify/Delete a slave device from the master device. | * [[BS2_SetSlaveDevice]]: Add/Modify/Delete a slave device from the master device. | ||
- | |||
* [[BS2_GetSlaveExDevice]]: In case of CoreStation, searches a slave device from the RS-485 network. | * [[BS2_GetSlaveExDevice]]: In case of CoreStation, searches a slave device from the RS-485 network. | ||
* [[BS2_SetSlaveExDevice]]: In case of CoreStation, Add/Modify/Delete a slave device from the master device. | * [[BS2_SetSlaveExDevice]]: In case of CoreStation, Add/Modify/Delete a slave device from the master device. | ||
Line 10: | Line 9: | ||
* [[BS2_SearchDevicesCoreStationEx]]: [+ 2.6.3] Searches CoreStation devices from the current network with host IP. | * [[BS2_SearchDevicesCoreStationEx]]: [+ 2.6.3] Searches CoreStation devices from the current network with host IP. | ||
* [[BS2_GetDevicesCoreStation]]: Gets searched CoreStation devices. | * [[BS2_GetDevicesCoreStation]]: Gets searched CoreStation devices. | ||
+ | * [[BS2_AddOsdpStandardDevice]]: [+ 2.9.1] Add the OSDP device. | ||
+ | * [[BS2_GetOsdpStandardDevice]]: [+ 2.9.1] Gets OSDP device information. | ||
+ | * [[BS2_GetAvailableOsdpStandardDevice]]: [+ 2.9.1] Gets all OSDP device information of the specified master device. | ||
+ | * [[BS2_UpdateOsdpStandardDevice]]: [+ 2.9.1] Updates OSDP device information. | ||
+ | * [[BS2_RemoveOsdpStandardDevice]]: [+ 2.9.1] Remove the OSDP device. | ||
+ | * [[BS2_GetOsdpStandardDeviceCapability]]: [+ 2.9.1] Gets OSDP device support information. | ||
+ | * [[BS2_SetOsdpStandardDeviceSecurityKey]]: [+ 2.9.1] Set the security key for the OSDP device. | ||
+ | * [[BS2_SetSlaveBaudrate]]: [+ 2.9.8] Set the RS-485 baud rate of a slave device connected to a master device. | ||
<WRAP alert> | <WRAP alert> | ||
Line 122: | Line 129: | ||
BS2_OSDP_CHANNEL_TYPE channelType; ///< 1 byte | BS2_OSDP_CHANNEL_TYPE channelType; ///< 1 byte | ||
uint8_t maxOsdpDevice; ///< 1 byte | uint8_t maxOsdpDevice; ///< 1 byte | ||
- | uint8_t numOsdpAvailibleDevice; ///< 1 byte | + | uint8_t numOsdpAvailableDevice; ///< 1 byte |
BS2_DEVICE_ID deviceIDs[8]; ///< 4 x 8 = 32 bytes | BS2_DEVICE_ID deviceIDs[8]; ///< 4 x 8 = 32 bytes | ||
} BS2OsdpStandardChannelInfo; ///< 36 bytes | } BS2OsdpStandardChannelInfo; ///< 36 bytes | ||
Line 168: | Line 175: | ||
- | ==== BS2OsdpStandardNotify ==== | + | ==== BS2OsdpStandardDeviceNotify ==== |
<code cpp> | <code cpp> | ||
typedef struct { | typedef struct { | ||
Line 190: | Line 197: | ||
BS2_BOOL readInfo; ///< 1 byte | BS2_BOOL readInfo; ///< 1 byte | ||
uint8_t reserved[5]; ///< 5 bytes (packing) | uint8_t reserved[5]; ///< 5 bytes (packing) | ||
- | } BS2OsdpStandardNotify; ///< 48 bytes | + | } BS2OsdpStandardDeviceNotify; ///< 48 bytes |
</code> | </code> | ||
1. //deviceID// \\ | 1. //deviceID// \\ | ||
Line 358: | Line 365: | ||
</code> | </code> | ||
1. //deviceID// \\ | 1. //deviceID// \\ | ||
- | 장치 식별자입니다. \\ \\ | + | Device Identifier. \\ \\ |
2. //result// \\ | 2. //result// \\ | ||
- | OSDP 장치 명령 결과 값을 가집니다. \\ \\ | + | Gets OSDP device command result value. \\ \\ |
<WRAP group 50%> | <WRAP group 50%> | ||
- | ^값 ^설명 ^ | + | ^Value ^Description ^ |
- | |0 |Success | | + | |0 |Fail | |
- | |1 |Fail | | + | |1 |Success | |
- | |2 |Not available | | + | |
</WRAP> | </WRAP> | ||
Line 377: | Line 383: | ||
</code> | </code> | ||
1. //key// \\ | 1. //key// \\ | ||
- | OSDP 장치에서 사용할 16byte 크기의 보안키 입니다. \\ \\ | + | 16-byte security key used in OSDP device. \\ \\ |
2. //reserved// \\ | 2. //reserved// \\ | ||
- | 예약된 공간입니다. \\ \\ | + | Reserved Space. \\ \\ |