The typical 40A Smart Mains Charger can run at over £200. If you have either a B2B Charger or a good Solar Charger, you can get all the functions of a Smart Charger when plugged into the mains without the expense of getting another Smart Device
By switching the input from the Starter Battery/Alternator (in the case of the B2B) or from the PV Solar Panel (for the Solar Charger) and feeding it from a simple mains power supply, you can get the same functionality at a fraction of the cost
This is my test setup. In this case I am using a a 400W Power Supply with a 48VDC/8.3A output (so maximum output would be around 35A at 12V) and feeding it into a Victron MPPT 100/20 Smart Controller (so actually limited to 20A maximum output)
PSU + MPPT by
David, on Flickr
I could have bought just a 300W PSU and with a 24V output as well for example - what is best depends on the Solar Controller specification (I got the one I did so I could use it on 24V Leisure Battery systems and with bigger MPPTs)
Switching it on, I am putting the near maximum output from the Controller into the Battery Bank
MPPT Input and Output by
David, on Flickr
If you already had this MPPT Controller, the cost of adapting it to become a AC Smart Charger would be just a cost of a PSU and either a switch or a relay. This is the PSU in the photo above -
https://amzn.to/2Q9NIZ8 - for just £13.
If you wanted to do similar with a B2B you would need to feed it with an DC voltage around 14V or so, but the same principle would apply (exactly the same as my B2B testing did). The Solar Controller method is a lot more flexible I would say as the voltage range is typically a lot more flexible and needs a lot less regulation
PS. As usual, trying this is at your own risk and if trying this, ensure the PSU output does not exceed any voltage or current limitations of the Solar Controller (or B2B).