I'm in the process of doing this also(but I have a 30 amp trailer). I installed a 30 amp RV automatic transfer switch near the existing breaker box/converter (They also make 50 amp transfer switches).
<UL TYPE=SQUARE> You will have three lines (circuits)to the transfer switch...shore, generator, panel. Each consisting of a hot, neutral, and ground conductor. The transfer switch is all labeled, so hookup is easy. DISCONNECT ALL POWER FIRST!
<LI> Disconnect the existing shore cord from the breaker panel and hook it to "shore" on the transfer switch.
<LI> Run a line from the breaker panel(where the shore cable used to be) to the "panel" on the transfer switch.
<LI> Connect the new generator line to the "generator" on the transfer switch.[/list]I ran my generator line from this transfer switch to the pin area using conduit...etc. At the pin I installed a 30 amp Marinco inlet. The generator (a Honda 5500) is in truck bed (front corner). A cable goes from the new inlet to the generator (with ends to fit each). I'm also going to change out the existing shore cord at the back corner of the fiver with a detachable Marinco cable.
The transfer switch is the brain of the whole system. It keeps you from feeding power from shore and generator simultaniously and it keeps the unused cord "cold". When the transfer switch detects current from the generator inlet it will disconnect from the shore inlet and only let the generator inlet feed the breaker box. When there is no generator output, the cord from the transfer switch to the generator inlet is disconnected and the transfer switch accepts power from the shore line. I used 10 gauge wire for all. Using the Marinco type inlets (they have male prongs) prevents the double male cords that are deadly and not code.
All the above is "at your ouw risk". If you are not familar with electrical wiring (neutrals, hots, and grounds) and breaker boxes...use an electrician!
I'm not sure how you will wire a 30 amp generator to a 50 amp RV, but you will at least need a 50 amp transfer switch to accept 50 amp shore power. your 30 amp generator will somehow tie into part of the 50 amp generator terminal on the transfer switch.
Robert & Nancy with "Murphy the EOG"
Murphy has passed on, but Micah and Bogie have assumed the watch! 02 Holiday Rambler 5ver, 2015 Indian Chief Vintage. 98 Coachmen truck camper.