Hi there,
I've been using Matlab to control the lightcrafter. I have found it useful to issue the LCr a 'host read command packet' after setting parameters in the gui to figure out how the packets are constructed and to debug my code.
My Problem:
I've been trying to send the LCr a BMP 608x684 in size using pattern definition. This hasn't been successful so far. When I send the LCr a group of 7 packets containing my image using the 'host write command packet' set for pattern definition and read 7bytes from the lightcrafter after each packet I get a '3' as the first byte for each of the 7 reads. From the DM365 command interface guide i think this is a good thing, code 3 as the first byte means that the LCr successfully recieved the packet. However when I try to display the image I just loaded, I don't see anything. The Pattern sequence settings are correct, in fact the correct LED turns on when I start Pattern sequence. With the lights off I can even see a kind of dim green light coming out of the lens which I interpret to be the residual light from dumping the signal. It is as if there was no image loaded. This is confirmed when i disconnect matlab from the LCr and use the gui to see if there is an image loaded - there isn't.
My attempt at solving it:
I've been loading an image through the GUI, then disconnecting the gui, connecting via Matlab and issuing a 'host read command packet'. I figure this way I can see what an actual packet for pattern definition looks like. My problem is I can't decipher the packet beyond byte 3.
When asked to give me 34 bytes worth of info, here is what it sends me:
5 4 1 0 78 203 66 77 78 203 0 0 0 0 0 0 62 0 0 0 40 0 0 0 96 2 0 0 172 2 0 0 1 0
my interpretation:
5 = read response
4 = CMD1
1 = CMD2
**04 01 is Pattern Definition
0 Flags
78?? is this Payload 1?
203?? is this Payload 2?
66? is this the number of the frame? There is only one frame, why is this 66? (See image below for what I uploaded)
Can you help me interpret this packet from the 78 onwards?
Below is the image I sent it. 608x684. Two sets of 3 dots, at the right hand corner of the image. Each dot is 1pix in size and within a group of 3 is 1pix apart. **I realize that these will get jumbled as the image is remapped from rectilinear coordinates to the Diamond pixel array, but for the purposes of the packet this doesn't matter**
Thanks
Arjun
EDIT1:
Just tried the TI 1bit sample pattern - getting the exact same response from the LCr.
What do those numbers mean?



