I have no idea what libserialport offers, so maybe check libserailport's documentation for any mention of "raw" ?edwar64896 wrote: ↑Mon Sep 17, 2018 3:13 pm"...put the tty into raw mode"...
Not sure what you mean by this.
I have a serial device which I am accessing using libserialport. There are two functions sp_read and sp_write which allow me to send and receive data over the chosen port.
what would putting the tty into raw mode do for me?
Code: Select all
* The first is that Unix traditionally provides a wide range of functionality * for dealing with serial devices at the OS level; this is exposed through the * termios API and dates to the days when serial terminals were common. If your * code relies on many of these facilities you will need to adapt it, because * libserialport provides only a raw binary channel with no special handling.
Digging back into the recesses of my memory regarding the days when I had to deal with minicomputers and serial terminals, and looking at the OP's original problems, I wonder if the source device is expecting the Pi's serial port to implement some form of flow control - either ^Q/^S, or using hardware handshaking between the port's control lines.
Users browsing this forum: No registered users and 40 guests