by daw___ on 4/19/20, 10:22 AM with 10 comments
by daw___ on 4/19/20, 10:25 AM
Here's how it works: qrcp binds a web server to the address of your Wi-Fi network interface on a random port and creates a handler for it. The default handler serves the content and exits the program when the transfer is complete. When used to receive files, qrcp serves an upload page and handles the transfer.
The tool prints a QR code that encodes the text:
http://{address}:{port}/{random_path}
Most QR apps can detect URLs in decoded text and act accordingly (i.e. open the decoded URL with the default browser), so when the QR code is scanned the content will begin downloading by the mobile browser.To send one or more files (or directories):
qrcp /path/to/file
# Or
qrcp send /path/to/file
To receive one or more files: qrcp receive --output ~/Downloads
[0] https://news.ycombinator.com/item?id=16647977by RMPR on 4/19/20, 11:20 AM
by hawski on 4/19/20, 7:45 PM
When I saw the title I thought, that it will transfer a file entirely via continuous QR code scanning. But it would be probably too error prone and too slow, especially without a back channel to signify acks.
Maybe such a thing could work between two phones facing each other screens using front cameras. I wonder how fast could it practically get.
by anderspitman on 4/19/20, 3:45 PM