Go to Post Most teachers are not in it for the income, But they are definitely in it for the outcome. - Bob Steele [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-02-2014, 17:49
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 332
fovea1959 will become famous soon enough
receiving data from Arduino over i2c?

this is an experiment, not needed to get bot ready for competition, but mentor curiousity:

I think I have writing to the Arduino down: if I do an i2c.write, the Arduino gets a receiveEvent, and the first byte that the Arduino receives is the register number I specified on the I2C.write() call.

Getting data back is hurting my brain. If I issue an i2c.read, I would expect for the Arduino to get a requestEvent. It gets a receiveEvent, and the data on that event is the register number. The problem is that even if I write data on the Arduino from the receiveEvent handler, it doesn't seem to get back to the cRIO; cRIO just seems to hang.

Does anyone have a good example of a cRIO receiving data from an Arduino over I2C that they can share?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi