I have a Van Holland vh4 electric bike with Bafang M400 250W motor. Bought it used and for severeal weeks I had no problems with it. But suddenly one day it stopped showing speed, displayed error 21 and stopped assisting mid-trip. It then started happening on every trip. After several kilometres of riding it would suddenly error out. First thing I though it's a speed sensor. I removed my old one. It was a 4 pin CAN version. Bought the same on aliexpress, installed it and... nothing. It still shows the error 
But now that I think about it, maybe the motor/electronics overheats. It walys happen after several kilometers. And after waiting for 10-15min I can drive for another few hundred meters. But what exactly causes this I don't know. Hence my question. Thanks in advance.
But now that I think about it, maybe the motor/electronics overheats. It walys happen after several kilometers. And after waiting for 10-15min I can drive for another few hundred meters. But what exactly causes this I don't know. Hence my question. Thanks in advance.