I am using PI motion controller which has integrated DSP Processor (we don't have any details about the Processor). I have programmed the motion controller to drive piezo motor using MATLAB however i would now want the motion controller to recognize command sent from the UART (UART2) port of LPC2478. I already set the baud-rate and number of bits to be sent identical to the one given in datasheet and i also used the same setting in MATLAB program.
I feel that the 3rd party device is receiving the data but maybe is not able to interpret.
We are trying to send a text based command (like, MOV 1 8)
When we were programing through MATLAB it need certain DLL files but when we are trying to program it via keil , it doesn't support a DLL file. How should we import a DLL file in keil or other than using a dll, will there be any other way to make the motion controller recognize our commands.
BLOCK DIAGRAM
KEIL ---> ARM (LPC2478) ---> UART -|-|-|- 3rd party device UART ----> DSP Processor ---> PIstage (error in communication)
You mean this:
"
Nonsense!
The motion controller neither knows nor cares what is used to send commands - just so long as the correct commands arrive at its port, in the correct format.
You need to contact PHYSIK INSTRUMENTE for documentation on what, exactly, those commands & formats are.
If you want to reverse-engineer the communication, you will need some sort of serial port "sniffer" (aka "monitor" or "analyser") to see exactly what is being sent to the unit, and exactly how it responds...
Sir, I used a USB sniffer(USB Monitor Pro) and sent commands using MATLAB through a PC to Motion Controller (like i used to before i had started interfacing it with LPC2478).
This software on any bulk transfer (like copying pdf to a pen drive) has a monitor window which shows what is being sent from the device and to the device. During the process of sending command i could see number of changes happening in FLINK and BLINK but there is no information about data being sent to the device. From the device we are receiving "01 60" in hex continuously.
Could you recommend possibly a better USB Sniffer.