How to open serial port in linux without changing any pin? -


posix requires changing rts pin on port opening. want way avoid it.

having same problem, i'd give try patching ftdi_sio kernel driver. need uncomment small piece of code in ftdi_dtr_rts() this:

static void ftdi_dtr_rts(struct usb_serial_port *port, int on) {     ...     /* drop rts , dtr */     if (on)         set_mctrl(port, tiocm_dtr /*| tiocm_rts*/);    // <<-- here     else         clear_mctrl(port, tiocm_dtr /*| tiocm_rts*/);  // <<-- , here } 

and rts handshake line not longer changed upon open() call. note, uart might not longer working rts/cts hardware handshake, long modified kernel driver loaded. can still control state of rts handshake line manually calling e.g.:

    int opins = tiocm_rts;     ioctl(tty_fd, tiocmbic, &opins); 

i'd tested ctrl+a+g command of picocom 2.3a, running kubuntu 16.04 64 bit , ftdi ft2232h based usb uart adapter.

you might find more details on topic here.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -