This GitHub organisation aims at studying how to enable device-to-device communication between smartphones and desktop computers.
Each one of its repositories hosts a communication channel, leveraging a D2D technology such as Bluetooth; you'll also find an example application allowing file exchange between devices using channels of your choice.