Skip to content

Update rxtx library, fix some common issues (high latency..) [imported] #532

Closed
@cmaglie

Description

@cmaglie

This is Issue 532 moved from a Google Code project.
Added by 2011-05-01T13:11:45.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium

Original description

What change would like to see?

Using a patched rxtx library (and os specific ports) to reduce the serial latency. per default, the rxtx library notifies about serial events each 20ms. this sounds sound fast, but if you need to send alot of data to the arduino via serial port this is too much.

method to patch:
SerialImp.c:
void report_serial_events(...
replace the "usleep(20000);" with "usleep(2000);" or even lower.

there are also a lot of fixed issues in the rxtx bugzilla (http://bugzilla.qbang.org/buglist.cgi?regetlastlist=1)

check http://neophob.com/2011/04/serial-latency-teensy-vs-arduino/ for more details about the latency

Would this cause any incompatibilities with previous versions? If so, how
can these be mitigated?

I dont think so...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions