Crazy Serial overhead sending to USB CDC Serial devices on Mac
in
Core Library Questions
•
21 days ago
I'm currently sending data to an Arduino Leo from Processing (Mac OS X Mountain Lion) over the Serial port. Here's the relevant snippet of code:
- for(int q=1; q<int(buffer_size_n*buffer_size_X*buffer_size_Y/2)+1; q++){
- newBuf[q%newBufSize] = byte(sendBuf[2*(q-1)] << 4);
- newBuf[q%newBufSize] |= sendBuf[2*(q-1)+1];
- if((q+1) % newBufSize == 0){
- myPort.write(newBuf);
- delay(1);
- }
- }
- myPort.write(newBuf);
I've been googling all day and night and I can't seem to find a definitive answer. I've updated and downgraded RXTX already.
Thanks in advance for any help!
1