aardvarcus
Adventurer
I am no expert with the 8.1L paired with the 4l80E or on the standalone ECM you are using (on my 8.1L/Allison 1000 2500HD there are separate ECM and TCM chips). I am assuming your ECM is running the transmission too. The engine doesn’t need to know it is in 4wd, but the transmission does. Thus you do need to connect your transfer case range signal to the ECM (which is acting as the TCM) properly because of the auto. If there isn’t already a stock pin to steal the signal from, easiest way would be to use a 5 pin single pole double throw relay. Use the 4wd low engaged signal on your transfer case to run the input signal on the relay. When it is “on”, have the relay connect the output to ground. When it is “off” have the relay connect it to 12v or whatever voltage signal it wants. That should straighten up your issue.