add printer on serial port

I want to add printer on a serial port can I get full details of all parameters like baudrate, parity,flow control, ...

Thanks

You need to match what your printer supports. If you cd to /usr/spool/lp/model and then do a "grep stty *", I guess it looks like: "9600 -parenb cs8 ixon" is the most common setting. But if your printer only supports 2400 baud, who cares what is most common? You don't want to take a vote on configuration settings.

Ideally you will be trying to attach one of the printers with a model script already installed. Or maybe your printer came with a model script. If so, install it, then use it when you configure the printer.

Otherwise you need to figure out how your printer works and write a model script for it.