Re: Serial interrupt
Manu wrote:
Hi
I want to generate an interrupt and launch a function everytime a char is
recieve with the serial port. (/dev/ttyS0)
How to do this Please ?
Put the serial port into raw mode and
while (read(port, &c, 1) == 1)
function();
--
josef punkt moellers bei gmx punkt de
.
Relevant Pages
- Serial interrupt
... I want to generate an interrupt and launch a function everytime a char is ... recieve with the serial port. ... Manu ... (comp.os.linux.development.apps) - Re: Serial port monitoring
... There is no need for a timer; you want to get data when it is available, ... The main thing is that every 100ms or so you check the serial port and read ... I would then have a loop that checks for char in serial buffer. ... (microsoft.public.vc.mfc) - Re: Serial port monitoring
... There is no need for a timer; you want to get data when it is available, ... line in the serial port, then by the time of the next trigger the rest has ... I would then have a loop that checks for char in serial buffer. ... (microsoft.public.vc.mfc) - Re: Serial port monitoring
... There is no need for a timer; you want to get data when it is available, ... line in the serial port, then by the time of the next trigger the rest has ... I would then have a loop that checks for char in serial buffer. ... (microsoft.public.vc.mfc) - Re: Serial port monitoring
... I would then have a loop that checks for char in serial buffer. ... Then I would return to the loop which just sits there looking for chars in serial buffer. ... The built in serial port device driver handles inputting and queues the input to a buffer for you. ... (microsoft.public.vc.mfc) |
|