the sequence to send to zoom in and out
For Pelco D protocol:
Zoom +: FF 01 00 20 00 00 21
Zoom -: FF 01 00 40 00 00 41
Bytes:
1. Sync byte, it is always 0xFF;
2. Address of device (PTZ of camera in your case) on RS485/482;
3. First byte of standard Pelco-D commands;
4. Second byte of standard Pelco-D commands;
5. First data byte #00 to #3F — typically controls left-right (positive and negative) pan speed;
6. Second data byte #00 to #3F — typically controls up-down (positive and negative) pan speed;
7. Checksum: eight-bit sum from second to sixth bytes.