Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:log_management_api [2024/02/27 13:53] 127.0.0.1 external edit |
en:log_management_api [2026/01/28 16:51] (current) mwkim [Log Management API] |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| * [[BS2_GetLogSmallBlob]]: [+ 2.6.4] Gets certain amount of logs based on the event mask in an efficient way. | * [[BS2_GetLogSmallBlob]]: [+ 2.6.4] Gets certain amount of logs based on the event mask in an efficient way. | ||
| * [[BS2_GetLogSmallBlobEx]]: [+ 2.7.1] Gets certain amount of logs based on the event mask in an efficient way, including the temperature information. | * [[BS2_GetLogSmallBlobEx]]: [+ 2.7.1] Gets certain amount of logs based on the event mask in an efficient way, including the temperature information. | ||
| + | * [[BS2_GetDeviceIOStatus]]: [+ 2.9.12] Gets the current device I/O port status. | ||
| + | * [[BS2_GetAllDeviceIOStatus]]: [+ 2.9.12] Gets the current I/O port status of the device and slave devices. | ||
| ===== Callback Function ===== | ===== Callback Function ===== | ||
| ==== OnLogReceived ==== | ==== OnLogReceived ==== | ||
| Line 689: | Line 691: | ||
| 14. //reserved// \\ | 14. //reserved// \\ | ||
| Reserved. \\ \\ | Reserved. \\ \\ | ||
| + | |||
| + | ==== BS2IOStatus ==== | ||
| + | |||
| + | <code cpp> | ||
| + | typedef struct{ | ||
| + | uint8_t count; | ||
| + | uint8_t reserved[3]; | ||
| + | BS2_PORT_VALUE status[BS2_IO_STATUS_MAX_IO_PORT]; | ||
| + | } BS2_IO_STATUS; | ||
| + | |||
| + | typedef struct{ | ||
| + | BS2_DEVICE_ID deviceID; | ||
| + | |||
| + | BS2_IO_STATUS input; | ||
| + | BS2_IO_STATUS output; | ||
| + | BS2_IO_STATUS relay; | ||
| + | BS2_IO_STATUS tamper; | ||
| + | BS2_IO_STATUS auxIn; | ||
| + | BS2_IO_STATUS auxOut; | ||
| + | |||
| + | uint8_t numOfSupervisorInput; | ||
| + | BS2_PORT_VALUE supervisorInputStatus[BS2_IO_STATUS_MAX_SIO_PORT]; | ||
| + | uint8_t reserved1[3]; | ||
| + | uint8_t reserved2[16]; | ||
| + | } BS2IOStatus; | ||
| + | </code> | ||
| + | \\ | ||
| + | |||
| + | 1. //count// \\ | ||
| + | Number of ports. \\ \\ | ||
| + | 2. //status// \\ | ||
| + | Indicates the port status. \\ | ||
| + | <WRAP group 50%> | ||
| + | ^Value ^Description ^ | ||
| + | |-1 |UNKNOWN | | ||
| + | |0 |Open | | ||
| + | |1 |Closed | | ||
| + | |2 |Supervised Short | | ||
| + | |3 |Supervised Open | | ||
| + | </WRAP> | ||
| + | 3. //deviceID// \\ | ||
| + | Device ID. \\ \\ | ||
| + | 4. //input// \\ | ||
| + | Represents the input port. \\ \\ | ||
| + | 5. //output// \\ | ||
| + | Represents the output port. \\ \\ | ||
| + | 6. //relay// \\ | ||
| + | Represents the relay port. \\ \\ | ||
| + | 7. //tamper// \\ | ||
| + | Represents the tamper port. \\ \\ | ||
| + | 8. //auxIn// \\ | ||
| + | Represents the auxiliary input port. \\ \\ | ||
| + | 9. //auxOut// \\ | ||
| + | Represents the auxiliary output port. \\ \\ | ||
| + | 10. //numOfSupervisorInput// \\ | ||
| + | Number of supervisor input ports. \\ \\ | ||
| + | 11. //supervisorInputStatus// \\ | ||
| + | Indicates the status of supervisor input ports. \\ \\ | ||
| + | 12. //reserved1// \\ | ||
| + | Reserved space. \\ \\ | ||
| + | 13. //reserved2// \\ | ||
| + | Reserved space. \\ \\ | ||