Go Down

Topic: I2C communication on Gomspace NanoCam C1U with Arduino Board (Read 512 times) previous topic - next topic

ranjeetray

Oct 12, 2012, 07:19 am Last Edit: Oct 12, 2012, 07:25 am by ranjeetray Reason: 1
Hi..!!
I am sending data(CSP header) as 0x50,0x46,0x00,0x00 to Gomspace Camera Nanocam C1 U(I2C address is 0x06) and I am expecting 50 bytes of data, but I am getting 0xFFFFFFFF. Is it happening due to frequency synchronization or any other hardware problem.

Code: [Select]

#include <Wire.h>

void setup()
{Wire.begin();
Serial.begin(9600);
}
void loop()
{int rtrn;

int outgoingByte[] = {0x50};
int outgoingByte1[] = {0x46};
 int outgoingByte2[] = {0x00};
  int outgoingByte3[] = {0x00};

//For payload camera
Wire.beginTransmission(0X06);
{Wire.write(outgoingByte[0]);
Wire.write(outgoingByte1[0]);
Wire.write(outgoingByte2[0]);
Wire.write(outgoingByte3[0]);
rtrn = Wire.endTransmission();}
delay(1);
Wire.requestFrom(0X06, 50);    
while(!Wire.available());    
{char c = Wire.read();
Serial.println(" Returning Success on Writing to the Payload::");
Serial.println(rtrn,DEC);    
Serial.println("Data read from Gomspace Camera:");
Serial.println(c,HEX);
Serial.println(c,BIN);}
delay(1);

Serial.println(' ');
Serial.println(' ');    }




Nick Gammon

For the third time, please stop posting 3 Mb images of debug output. Copy and paste the text inside code blocks. Last warning.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

ranjeetray


For the third time, please stop posting 3 Mb images of debug output. Copy and paste the text inside code blocks. Last warning.


Hi...!!!

I have tried so many times of copying image inside the quote itself, but it does not happen.
Please give me the clearance level or authority to post my image on quote itself. Is something blocked in my account.
Paste option itself does not come.
Kindly look in to this.


Thanks & Regards....  :-)

Nick Gammon

I don't understand that. Click in the text in the monitor. Select it. Copy it to the clipboard. Post it into your forum message. What is hard about that?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up