Skip to content

Raspberry pi port #1

@ricardomv

Description

@ricardomv

Hi i'm trying to get this working on the raspberry pi without much luck. I've found that the printk in the timer callback is too slow so the transmit speed is not reliable, removing it does fix the issue. Another issue i found is in the manchester encoding i think the bits are swapped the comments are right but the code is wrong in https://github.com/flofeurstein/DaliDriver/blob/master/dali_drv.c#L169 .
I'm also getting wierd timing issues, for example the first bit is sent with a period of about 600 us and from then on it gets the right period of ~830 us but the duty cycle is wrong should be 50% but it's ~70% (if you want i can get you a screenshot from the scope). Do you have any idea on how to fix this?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions