[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rs485 2-wire on devboard 82?



I understand that rs485 in 2-wire mode will use only the RX pins but I see
my transmissions on the TX pins and never on the RX pins. Any idea what I'm
doing wrong? I am using the following code on a devboard 82 with kernel
2.4.20 configured for rs485, fast timers and rs485_disable_receiver.

struct rs485_ctrl ctrl485;
struct rs485_wrt io485;
int result;

ctrl485.rts_on_send = 0;
ctrl485.rts_after_send = 1;
ctrl485.delay_rts_before_send = 0;
result = ioctl(fd, TIOCSERSETRS485, &ctrl485);

io485.outc_size = len;
io485.outc = data;
result = ioctl(fd, IOCSERWRRS485, &io485);


-Ken