From: Felix Tang <tangf@ee...> - 2002-03-28 05:49:38
Is there a way to read a serial byte?
self->write(self->dev, &control_one, 1);
self->read(self->dev, &control_read, 1);
When it is in command mode it will echo all the bytes I write to it... so
that would be great to test with. Oh, is write non-blocking? Maybe that's
why I'm not getting anything...
I cannot convince myself that the write is really writing... ;) It will
work at 9600 baud (e.g. connecting with a terminal over kermit) but I am
having problems when switching baud rates.
I've written plain userspace code that switched the baudrate on the
mcp2120 and then tested it at the new baud rate (i.e. 115200) so I know
the circuit is correct in that sense. I'm just having some problems doing
this bit toggling in the kernel.
However, I do have some confidence that set_dtr_rts is working. I can test
the status of those lines when I set them.
Any techniques or comments is appreciated.
Get latest updates about Open Source Projects, Conferences and News.