This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sending text based command to 3rd party device using UART in LPC2478

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)

Parents
  • Yes, we are using the KEIL IDE.

    We are using the PI C867 PILine Controller by PHYSIK INSTRUMENTE to drive a piezo nano positioning stage.

    DLL file are provided to us by the company itself as a part of their software support. These libraries are used during run time of the MATLAB program. We can't be sure but we assume that they contain the translation of the PI GCS (General Command Set).

    we tried to send these following commands :-

    UART_PRINTF("MOV 1 4");

    or

    UART_PRINTF("MOV 1 4\r\n");

    None of them are working. We are wondering if the manner in which we are sending end character is correct.

Reply
  • Yes, we are using the KEIL IDE.

    We are using the PI C867 PILine Controller by PHYSIK INSTRUMENTE to drive a piezo nano positioning stage.

    DLL file are provided to us by the company itself as a part of their software support. These libraries are used during run time of the MATLAB program. We can't be sure but we assume that they contain the translation of the PI GCS (General Command Set).

    we tried to send these following commands :-

    UART_PRINTF("MOV 1 4");

    or

    UART_PRINTF("MOV 1 4\r\n");

    None of them are working. We are wondering if the manner in which we are sending end character is correct.

Children