Skip to content

Arduino-Raspberry i2c issue #5373

@marcolettieri

Description

@marcolettieri

Hello,
I am experiencing a problem with the Wire library.
I have a raspberry that communicates i2c with Arduino Mega (2561) via i2c.
Raspberry master, Arduino slave .
when I get a read command from the raspberry to arduino and I want to read an array of 9 bytes very often, I get side raspberry 0x00 0xFF 0xFF 0xFF ... as if Arduino he could not send this array (eg wire.send (array,9);).
Instead, when I want to send to the master a string constant (eg wire.send ("hello");) this problem does not occurred.
On raspberry i'm using WiringPi for java.
there's some difference between send(array,num) and send(constant char)?
on your experience this could be related to some hardware / software wrong setup ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.)Library: WireThe Wire Arduino libraryWaiting for feedbackMore information must be provided before we can proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions