I usually use an
ADUM 1201 AR chip that isolated the RS232 signal to about 1000V. It's just 2.5 EUR ... not really a bid deal when it comes to security.
There is also not much needed for the chip to run: two 100nF capacitors and done. Nice little thingy
In my opinion the question should be "is it worth spending 2.5 EUR to be safe?" It's always a question of whether you want to set up 10 or 10,000 of these units.
I usually set this up a little modular:
I use a 2-row 4pin header (so 8 pins in total).
Pin1 --> VCC IN o | o VCC OUT --> Pin8
Pin2 --> RX IN o | o RX OUT --> Pin7
Pin3 --> TX OUT o | o TX IN --> Pin6
Pin4 --> GND IN o | o GND OUT --> Pin5
This will allow for two options:
1. Jumper-Mode: I can adjust RX/TX connection:
- GND and VCC are being connected left to right in any case
- put in the RX/TX jumpers left to right will make it a 1:1 connection (2-7, 3-6)
- put in the RX/TX jumpers top to bottom will make the connection a cross-over one (2-3, 6-7)
2. Isolator-Mode: - I can put in an isolator riser board with ADuM1201. I'm just using as small PCB with a female 2row, 4pin header. Plug it in instead of the jumpers and you're isolated.
I am sorry not to have some photos ready to show how I'm doing it but this is really flexible and neat. If you seperate in and out of this connector by using upper and lower side of the PCB you're a little safer. This for sure won't protect against 1kV but at least of someone doing something weird with the circuit