Okay... I took the cover off the transfer switch. BTW, the transfer switch is an ESCO ES50M-65N.
1. The inside of the transfer switch is absolutely clean - no dust, no melted wiring, and no blackened areas on the circuit board.
2a. When plugged into 50 amp shore power on the inbound side to the shore power switch module:
(On the Aladdin, leg1 showed 120v, leg2 showed 0v, and the inverter showed no inbound power.)
The red wire (leg1) to the white wire (ground) had 120v.
The black wire (leg2) to the white wire had 120v.
The red wire to black wire had 240v.
Both the red wire and black wire to the bare copper wire (neutral) had 120v.
2b. When plugged into 50 amp shore power on the outbound side of the switch module:
The red wire to the white wire had 120v.
THE BLACK WIRE TO THE WHITE WIRE HAD 0v, NOT 120v.
THE RED WIRE TO BLACK WIRE HAD 120v, NOT 240v.
The red wire to the bare copper wire had 120v.
THE BLACK WIRE TO THE BARE COPPER WIRE HAD 0v, NOT 120v.
(The lines on capital letters seem to show errors and show no power getting through on leg2.)
3. With the generator ON and after a few seconds, the transfer switch clunked, then both leg1 and leg2 on the Aladdin showed 120v, and the inverter showed inbound power and started charging the battery banks.
4a. With the generator ON, the inbound side to the generator power switch module:
All wires showed the same voltages as in 2. above.
4b. With the generator ON, the outbound side to the generator power switch module:
All wires showed the same voltages as in 2a. and 4a. above.
Now for the kicker...
5. The generator was turned OFF, leaving the 50 amp shore power ON and on the Aladdin both legs showed 120v with the inverter showing inbound power and charging the batteries.
5b. Now all the wires, inbound and outbound, on the shore power transfer module are showing the same voltages as in 2a. above which was on the generator transfer module.
My conclusion is the shore power switch module is intermittent at best - it wasn't correct when I first plugged into shore power but corrected itself after I shut OFF the generator.
Agree or disagree, or what else could it be?