Open davidc0le opened 3 weeks ago
Interesting, yeah makes sense to me. Is there a standard syntax for that type of addressing? Otherwise I'd be inclined to go with serial:port
because it matches IP:port syntax.
One other thing: I don't have a device with this capability and thus can't poke around the sysfs entries. A contribution would be welcome. Basically:
[[devices]]
name = "desktop"
serial = "DEADBEEF:0"
baud = 115200
[[devices]]
name = "desktop"
serial = "DEADBEEF:1"
baud = 115200
Or similar is what I had in mind.
One other config option that might be better:
[[devices]]
name = "desktop"
serial = "DEADBEEF"
port = 0
baud = 115200
Where port = 0
is implied by default but can be explicitly set to index 1 or more for multi port devices.
Some devices expose multiple serial ports on a single USB port. For example, the AMD/Xilinx KR260 development kit uses a FTDI FT4232H and when you connect to a system, you see 4 serial ports.
It would be good if we could reference the SN ('XFL1UUHT425Y' from the example above) , with some reference to the n'th serial number in the consrv toml file, for example 'XFL1UUHT425Y;2' could be mapped to the 2nd port on the FT4232H