Please welcome Eyoyo Underwater Fishing Cameras.https://amzn.to/3siEgXn
But if you plug those two plugs together red is red and black is black.
They come in pairs for a reason. Generally the connector coming from the power source has the shrouded positive lead so it can't accidentally short the battery. Once it's connected to the device it's completely covered. In your 2nd pic the connector on the right would come from the PS and the one on left would be wired to the device. Once plugged together polarity is correct and you battery/PS is protected from shorting when unplugged.And yes, red to red and black to black. Gotta keep 'em segregated... I bet what happened is you left the dongle in the 1st pic as it was and instead of separating the connectors (that's the intention BTW) and using the back end on your device you just plugged in another SAE plug effectively reversing the polarity. So that 1st pic is a "pair" of connectors. Cut the wire in the middle, solder, crimp, what have you the power source to the wires on the panel part and use the other, matched half to go to your device. Correct polarity. EZPZ.
I figured it out a number of years when I hardwired a maintainer to my KLR650 motorcycle. I had to burn marks with the correct polarity into the cord end so i knew which was going to the hot, some chargers were different.Got lucky those lithium bats can burn hot!
No Esox, that first pic is two different cords.
The reason the unshielded connector is leaving the box hot is because (I'd bet) wired a connector correctly from the battery array and plugged it into the (what you thought was) the "rear connector" of the panel mount effectively reversing the polarity at that point.
They come in pairs for a reason. Generally the connector coming from the power source has the shrouded positive lead so it can't accidentally short the battery. Once it's connected to the device it's completely covered.
I think everyone should have a multi-meter for checking polarity, continuity, voltage, ect.