Hi mate, from what I can see your serial port connection is j6, BLACK is GND, RED is TX, GREEN is RX. Don't take my word for it though, I've seen some weird pinouts on Dahua boards, so check the pins with a multimeter. Connect the serial to the computer with USB UART if you don't have a serial...