How to detect the relative direction of two mobile devices?
When a mobile device (i.e. a modern smartphone) is taken near to a second mobile device, it is possible to detect inter-device proximity distance using proximity sensors, UWB or even NFC and so on. Now, how to detect the directions of the first mobile device relative to the second mobile device? I mean, how to detect which of the directions among left, right, up, down, front & back the first device is located of the second device? Any paper work reference would be appreciated.