Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months ago.
serial.abort_read() alternative/workaround
Hey all, I'm working on a powerline communication project and because of the physics of the system, I'm forced to basically work around a false low bit that gets sent at the end of every serial frame. The problem is this low bit causes the UART to start reading a new character. Ideally I don't have to wait for the controller to wait the length of one frame and just throw out the junk message that came in during that time. I saw that the serial.abort_read() method was supposed to stop receiving in the middle of a frame, which is perfect for my application, except that method is meant for the async API and is incompatible with my mbed lpc1768. I was wondering if anybody else knew of a way to stop a serial read in progress or a simple way to just ignore the start bit. Thanks!