Skip to content

Very slow write speeds on arduino giga  #47

Open
@MoveElectricMobility

Description

@MoveElectricMobility

I would like someone to increase the usb speed to full 2.0 speeds. right now I'm trying to write 187KB of binary data to a binary file using binary write mode in one single fwrite operation and its taking about 3 seconds. that is way too slow for the interface the board has.

Here is the code that should be running much faster:

error = fwrite(&write_buffer, sizeof(struct DATA_FRAME_RETURN), write_buffer_item_count, binary_file);

write buffer is an array of size 125, DATA_FRAME_RETURN is about 1500 bytes long, write buffer item count is 125, binary_file is a .bin file opened in the following way:

binary_file = fopen("/DRONEDATA/data.bin", "wb");

Any ideas? Any changes you guys can make to run the USB port at full speed? Thanks! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions