Postby fxpal » Tue Jul 09, 2013 2:35 pm
Thank you Patrick.
We are trying to broadcast info with this IR channel.
To avoid AGC switching (the gain control cannot be set via code), we plane to add a 2KHz square wave modulation to the base carrier signal. The 2KHz square wave modulated 38KHz carrier signal is our IR light source.
1. If I want to generate continuous signal, should I put Transmit(Byte[] data, IR_CodeInfo codeInfo) in a loop? Will the signal still be square wave between two Transmit calls? Besides the 500us gap, what should I set for other values such as encoding, trail, zero, one, repeat, toggle_mask? May I leave them empty or set them to zero? How can I set the carrier frequency to 38KHz or 56KHz?
2. On the detector side, I should use the ReadRaw function, right?
The "int ReadRaw(int[] data, int length)" read in int instead of Byte. How many bits do the int have? 8bits or more? Does one int correspond to one Byte in the Trasmit function?
3. What is the length limits of data for both Transmit and ReadRaw? I think that may depend on the memory size on the 1055 board. But I cannot find explanation of that.
4. Do you have sample code related to this?
Thanks,
Qiong