The HSG04 has a terminal block with RS485 and I/O outputs in order to control Wiper and IR lamp (optional).
Wiper is controlled via RS485 (Pelco D commands)
IR lamp switches an output contact, which can be used to force the camera to night mode.
Wiper
The RS485 connection of the HSG04 is fixed at:
Baud rate: 2400
Data bits: 8
Parity: 1
Stop bit: 1
...