c - Is reading blocks of data from serial faster than reading 1 character at a time? -
is faster read big blocks serial port read 1 byte @ time? general knowledge reading blocks faster. but, wondering if case serial communication because:
modern processor speeds older protocols serial transmits 1 bit @ time, unlike new communication methods usbas follow up, how using usb serial connection (using pl2303 driver, if helps) impact this?
this came when thinking how parse incoming messages serial port. current design, easier parse info 1 character @ time, but, want reads efficiently.
unless you're hitting serial hardware straight imagine os buffer incoming info , still more efficient read blocks of info @ time.
you both ways , see faster though.
also certainly usb fast serial connection given s stands serial.
c serial-port
No comments:
Post a Comment