AnsweredAssumed Answered

setting uart baud rate... to connect to a modem and get PPP connection using K60

Question asked by CHANDRASEKAR KANNIAPPAN on Sep 30, 2013
Latest reply on Oct 8, 2013 by Monica Arvizu

Hi ....

            I have a custom K60 board, UART2 has been interfaced to a GSM modem. I have enabled "ttyc:" in the user config so the device has got installed in the queue.

I want it to operate in "NON_BLOCKING" mode with no ECHO.  When I try to write a string Eg: "AT" on the port it only sends the First byte 'A'.

Also my  ioctl "GET_BAUD" gives me "536845072" as baud rate... what should I do to correct this...


User Config:


here is my code




modemPortFp = fopen(MODEM_PORT, NULL);

    if( modemPortFp != NULL)


   printf("\nUART 2 Init success !\n");



   printf("\nUART 2 Init Failed !\n");
uartParams = 0;

    if(ioctl(modemPortFp, IO_IOCTL_SERIAL_GET_BAUD, &uartParams) != 0)

   printf("\nIoctl call to Get Baud failed!");


   printf("\nDefault Baud = %i", &uartParams);



on console I see "Default Baud = 536845072"