usb serial gadget

Hello there,
The bbb image normally comes with usb gadget that simulates ethernet and mass storage. I have 2 questions regarding that:

Can the usb additionally simulate serial port? So on the host side one would see a com port (if windows) and on the beagle side it would be a tty interface? If yes, how to enable it?

Second question, can serial interfaces in linux be bridged together easily? For example, by connecting the beagle to the pc and writing to the usb serial gadget from the pc, i would like uart5 to send that data. In short terms, can beagle be configured to be a serial uab converter?

I would apreciate all help!

Hello there,
The bbb image normally comes with usb gadget that simulates ethernet and mass storage. I have 2 questions regarding that:

Can the usb additionally simulate serial port? So on the host side one would see a com port (if windows) and on the beagle side it would be a tty interface? If yes, how to enable it?

By default serial is also enabled… By default you should see Ethernet, mass storage, and serial…

Second question, can serial interfaces in linux be bridged together easily? For example, by connecting the beagle to the pc and writing to the usb serial gadget from the pc, i would like uart5 to send that data. In short terms, can beagle be configured to be a serial uab converter?

I would apreciate all help!

The Linux serial interface created is /dev/ttyGS0

Regards,

I see, and is there a way to bridge it to another serial at a low OS level, without having to write a program that would do it manually for it?