Edge 520 fails to link to Samsung S8 vis Bluetooth

I have had an Edge 520 since June 2018. Until about two months ago, I had no problem linking it to my Samsung Galaxy S8 phone but now I cannot do this. This means that I have to manually upload all my rides, which is a pain. I have tried lots of different things but the problem continues.