From Dala’s EV Repair.
Here’s a quick guide on how to remove the P3102 Invalid Battery ID DTC that appears after replacing a LEAF battery pack. This is done with the normal Android version of Leafspy Pro
After a direct battery swap or batter upgrade has been performed, the only thing preventing you from driving the vehicle is a check EV warning light along with turtle mode. To clear this code and remove turtle mode, simply read DTCs and perform a P3102 clear with the latest Leafspy Pro version (min version 0.46.172 for Android) (min version 220.127.116.11 for iOS [Requires TestFlight]). That’s it, enjoy the newfound range!
For more info on battery swaps/upgrades see the FAQ on the mynissanleaf.com discussion forum: https://www.mynissanleaf.com/viewtopic.php?t=32819