Harvest the haws in autumn. A small handful makes one coffee (espresso).
You have two options: either use just the seeds (which you can save after making a jelly or another preparation, for example), or use the whole fruits. If you use the whole fruits, you’ll need to dry them, either in a dehydrator or in the open air.
Once dry, grind them in a coffee grinder or blender. The stones are very hard, so you’ll need a sturdy machine (a mortar and pestle probably won’t be enough).
Once you have the powder, put it in a frying pan and heat it gently until it browns. Take it slowly: the powder should turn brown, not black! About 5 minutes should do it.
That’s it! Now all you need to do is make yourself a coffee. I’ve only tried it with an espresso machine, and it was delicious. Much better than my attempts with chicory or bedstraw.