Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Arduino-Raspberry i2c issue #5373

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

Description

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 library Waiting 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

        AltStyle によって変換されたページ (->オリジナル) /