nat at fains.com
Mon Apr 5 05:17:38 UTC 2010
fyi, using the /dev/cu.** variant solved my problem of osmocon being
unable to write CMD1 to the port. At least, it worked with an FTDI
cable I built. I imagine it will solve the issue with the prolific
cable as well (will try later).
On 29/03/2010 03:39, willem wrote:
> i managed to get hello_world working on my c121, connected through a
> pl2303 usb/serial cable to my macbookpro.
> but found that the connection is extremely noisy.
> often the movement of me putting down the phone on the table is enough
> to break the upload.
> is that a common problem with these headphone/serial cable plugs?
> for the serial device i can use /dev/cu.PL2303-0000201A
> or /dev/tty.PL2303-0000201A
> but when using the '/dev/tty...' variant, i have to add this to osmocon.c
> diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
> index f934dd7..b361eb1 100644
> --- a/src/host/osmocon/osmocon.c
> +++ b/src/host/osmocon/osmocon.c
> @@ -128,6 +128,9 @@ static int serial_init(const char *serial_dev)
> /* hardware flow control off */
> options.c_cflag &= ~CRTSCTS;
> + /* ignore modem status lines */
> + options.c_cflag |= CLOCAL;
> /* software flow control off */
> options.c_iflag &= ~(IXON | IXOFF | IXANY);
More information about the baseband-devel