I have thrown away all of the dry cell batteries on my trailers... . I now use small wet cells, from Wal Mart, (motorcycle batteries) that 3x's the amp hour rating at pennies on the dollar...
On a DOT installation this is how it is done... ...
I run a electrical panel on all my trailers... its a 7 pin black box like what is used on a semi... . and wire in 12V+ , 12V-, LT, RT, Tail, Brakes, and backup... .
I run a fused wire from the 12V+ to my wet cell, so it can be charged... from the wet cell 12V battery I run a wire to my brake away switch and back to the black box and to the connection for the brakes... so connected to this terminal is the wire from the trailer connector that turns on the brakes, the 12V+ hot lead from the brake away switch when its pulled, and the connection to the brakes... . in some cases with electric brakes thats to the axles... in other cases its to the 12V Pump for the power disc brakes... .
When the brake controller is applied in the truck power flows to the brakes, and if the trailer brakes away, the brake away switch is now ON and full battery voltage is applied to lock the brakes...
All lights are gounded to the frame and the 12V- from the trailer plug goes to the black box, to the 12V- on the wet cell battery and than on to the frame... .
The wet cell batteries are in small water proof and rock proof holders... and every 2 years we throw them away and put new ones in... ... BTW on the trailers with power disc brakes we use a small garden tractor battery instead of the motorcycle battery to run some lights in the trailers as well..... and to power the brakes if the fuse in the pickup blows that keeps this whole thing charged... .
On my travel trailer, its 2 very large 12V diesel truck batteries..... in parallel...
Hope this helps. .
Hope this helps.....