Part Number: DLPLIGHTCRAFTER
I've been attempting to write a C program to run on terminal that will do some of the functions of the GUI.
To start it off I've been trying to just get the dm365, fpga and msp430 versions: I establish the connection, send the packet with the command and wait for the response, which doesn't come, which made think there was something wrong with the code and the DLP wasn't understanding what I was asking.
So now I trying something more simple, to just make it show one of the internal test patterns: I establish connection, send the packet with the command to make it change to test patern mode, send the packet to tell it what image I want it to show, and in the response packet I get an error. The weird thing is this error is a 16bit code which the DLP decides to put in a single position of the packet, when I was expecting it to separate it in to two positions (LSB and MSB). The error in decimal is 2825, hex - B09, which from the documentation, 0x0B->"Command continuation error due to incorrect continuation flag", 0x09->"Checksum Error" (which my code also detects).
I don't understand what about my first program the DLP isn't interpreting, and what flag should I place in the packet instead of the one I put.
Link for the code to get the versions -> https://pastebin.com/PjJvsh8c
Link for the code to display an internal test pattern -> https://pastebin.com/mRV9W7nV
"PKT.h" -> https://pastebin.com/9xvay2P1
EDIT:
Document with commands -> http://www.ti.com/lit/pdf/dlpu007
Additionally, currently both programs present the same issue. Both have the errors detailed above. From the doc above I also learned that two errors on the same byte is not unusual.
EDIT 2:
On program 2 (disp int pat), changed the packet type to write as it is the correct type for this action. Output is still an error.
EDIT 3:
New links for the current programs. Replaced write() for send() and read() for recv(). Same output as before.