Skip to content

Udp.parsePacket() is too slow #3087

@xseignard

Description

@xseignard

Hello,

I'm creating an audio reactive wall with Arduino Ethernet and @freetronics DMDs (http://www.freetronics.com.au/collections/all-products/products/dot-matrix-display-32x16-red#.VUl2QHXtlBc).

It works quite OK, but the Udp.parsePacket() is too slow, and then blocks the TimerOne that scans and updates the display on the DMDs. The result of this is that the DMDs flicker, which is a bit annoying.

My question then is : is there any faster way than UDP.parsePacket() to check if an UDP message is incoming?

Here is my sketch https://gist.github.com/xseignard/3b2b8d810122a8235540 nothing fancy, and I'm sure about what I say, since the DMDs flicker even when there is no incoming UDP packets, and if I replace the UDP communication by a Serial one, using Serial.available(), there is no flickering.

I add @projectgus, maintainer of https://github.com/freetronics/DMD to this issue since he might be interested.

Regards

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