> The documentation and code in this repository are provided 'as is' with no warranty or guarantee as to their completeness or accuracy. The information may be incomplete, out of date or otherwise incorrect. As the integrator, you are responsible for correctly interpreting any data received from the device.
# Byonoy Absorbance 96 Serial Interface
> [!IMPORTANT]
> This protocol is used __only__ by the manual variant of Absorbance 96; it is not used by the Automate variant or any other Byonoy device. If you need to control any other Byonoy device via code, please [contact support](https://byonoy.com/support/) to request access to the SDK.
The `!RP` and `!RPF` commands transmit a CRC checksum in their data payload. Details on request. The measurement results ("Optical density data") are transmitted in 12 rows. A1 to H1, A2 to H2 etc. Wavelengths are indexed by their physical position in the device:
Send one command followed by a line break. The device will echo the received command, then a line break, then the data payload, then a postamble. The postamble is usually `#<Command>()` except the `!RP*` commands, which all send `#RP()` as postamble.
| `!RPF(x,y)` | <p>Read Plate </p><p>x: Measurement wavelength index </p><p>y: Reference wavelength index </p><p>Returns: OD at wavelength x minus OD at wavelength y </p> |
| `!RPP(x,y)` | Read Plate; same as RPF, but formatted for human readability |
| `!PLATE()` | Returns: 1 if a microplate is in the device or state is not known. 0 otherwise |
| `!CALIBRATE(x,y)` | Perform initialization and zero for wavelength indices x and y |
| `!ERROR()` | Returns current error code (0 = No Error) |
> The [official app](https://byonoy.com/download-hub/absorbance-96/) is available free of charge. It can be used as an easy-to-access reference tool, as it logs all serial communications in the app's log file.
The arrow denotes direction of data flow: `->` is host to device, `<-` is device to host.
### Typical workflow (measure wavelength at second slot and no reference wavelength)
**Step 1:** no plate inserted. Calibrate zero values for required wavelengths:
`!ERROR()` → if > 0 : retry
`!CALIBRATE(1,-1)`
`!ERROR()` → if > 0 : zero failed. retry step 1
**Step 2:** Insert microplate, then attempt measurement:
`!RPF(1,-1)`
`!ERROR()` → if = 0 results valid
It is recommended to execute `CALIBRATE` before every endpoint measurement and before the first measurement of a kinetic series, respectively. Step 2 should be started within 15 minutes of completing step 1 for optimal performance.