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.

Couldn't set tty to PPP discipline: Device or resource busy

Other Parts Discussed in Thread: AM3517

Hi,

in android 2.3.4 with am3517evm,

When importing 3g modem, I met a problem about pppd,

ERROR/pppd(1646): Couldn't set tty to PPP discipline: Device or resource busy

Is there anybody know anything about it ? 

Thanks,

Kevin

  • Hi Kevin,

    Could please check whether you have followed all steps mentioned in the following porting guide?

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_PortingGuides#USB_3G_Modem

  • Hi Arun,

    I found that <TI-Android-GingerBread-2.3.4-DevKit-2.1.1> is for am335x, and it is not the same as <TI-Android-GingerBread-2.3.4-DevKit-2.1>, no chat bin found in DevKit-2.1.

    I am using am3517, and I try to follow the steps in am335x, I want to config  the wireless settings in android setting menu, eg. enable/disable.

    Thanks,

    Kevin

  • Hi Kevin,

    Yes. Chat program was not present  in TI-Android-GingerBread-2.3.4-DevKit-2.1.

    I have attached the patch for the same. Please apply in external/ppp.

    We have not added the modem configuring options to android settings.

    We have verified the steps at http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_PortingGuides#USB_3G_Modem on AM37X and AM335X in command line mode.

    Note that "usb_modeswitch.conf" is modem vendor specific and "airtel.chat" is network provider specific. We have not explored the steps to make it generic.

  • Hi Kevin,

    Yes. Chat program was not present  in TI-Android-GingerBread-2.3.4-DevKit-2.1.

    I have attached the patch for the same. 2477.Chat.tar.gz. Please apply in external/ppp.

    We have not added the modem configuring options to android settings.

    We have verified the steps at http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1.1_PortingGuides#USB_3G_Modem on AM37X and AM335X in command line mode.

    Note that "usb_modeswitch.conf" is modem vendor specific and "airtel.chat" is network provider specific. We have not explored the steps to make it generic.

  • Hi Arun,

    Thanks for your reply.

    I imported chat, and added some scripts, and tested with #pppd call evdo, it works. Network is connected.

    In fact I applied my procedure in android2.3, it also works, I write dial commands and call pppd /dev/ttyUSB1  in libreference-ril.c, it works, 

    But when I update to android2.3.4, met the error "ERROR/pppd: Couldn't set tty to PPP discipline: Device or resource busy", I can't find out who are using tty device to make it busy.

    I am using usb_modeswitch, and  is working now in my case.

    Thanks,

    Kevin