This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ICS on DM37xx ,set serial port

Hi Team,

               i need to set ttyO0 in 8N1 , and 115200 baudrate for my gsm module can i set it from the kernel , or do i need some utiliy programs like stty

Regards,

Dibin

  • Hi,

                 how can i run stty program on boot up ,

                i have tried in my init.rc

    service stty /system/bin/stty -F /dev/ttyO0 115200
       oneshot

    and try to execute it from a script and add it on init.rc

    service uartgsm  /system/bin/uartgsm.rc
       oneshot

    and my script file

    #!/system/bin/sh

    chmod 0666 /dev/ttyO0

    stty -F /dev/ttyO0 115200

    but the /dev/ttyO0 is not getting configured in 115200

    Regards,

  • Hi

    i have given the setting in reference-ril.c now my serial port issue solved but it will be very helpfull if some one provide me the scripting details ,

    Regards,

    Dibin