Proprietary bikes like Bosh, Gazelle , Yamaha , Giant and others use CANbus or other hand shaking electrics to confirm thta only a correct battery type is used. These will also have extra wire inputs for the communications.
Other bikes generally of chinese ancestry will use generic comms and...