Pages: [1]   Go Down
Author Topic: I2C communication on Gomspace NanoCam C1U with Arduino Board  (Read 443 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
#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(' ');    }





* hgh.bmp (3060.05 KB, 1360x768 - viewed 10 times.)
« Last Edit: October 12, 2012, 12:25:48 am by ranjeetray » Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18732
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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


Offline Offline
Full Member
***
Karma: 0
Posts: 108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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....  :-)
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 480
Posts: 18732
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged


Pages: [1]   Go Up
Jump to: