[Fuego] [PATCH] Add support for full device paths (with slashes and colons) to sercp

Bird, Timothy Tim.Bird at sony.com
Thu Apr 13 18:48:22 UTC 2017


> -----Original Message-----
> From: Bird, Timothy on Thursday, April 13, 2017 11:36 AM

Just some commentary on the patch...

This patch solves the problem we were discussing earlier.
With the feature, I can do any of the following, which are all equivalent:
$ sercp foo ttyACM1:/tmp
$ sercp -d /dev/ttyACM1 foo serial:/tmp
$ sercp -d /dev/serial/by-path/pci-0000:08:00.0-usb-0:3:1.4 foo serial:/tmp
All of these copy file 'foo' to the host at the other end of the serial port.

You can use 'serial' as the placeholder for the device path in either the source
or destination file arguments.  So this works also:
$ sercp -d /dev/serial/by-path/pci-0000:08:00.0-usb-0:3:1.4  serial:/tmp/foo bar
(copy the file 'foo' from the remove host back to the local filesystem, as 'bar').

Let me know what you think.

BTW - what's up with the unused "user@" parameters?  Why are those supported?
Fuego does not need them or use them.  Was there some plan to use them in the future?

 -- Tim


More information about the Fuego mailing list