Внешний модем

From Toshiba AC100 wiki
Jump to navigation Jump to search
  • Понять как дебажить rild
  • Собрать все дебаги
  • Найти добровольца который займется этим и у которого есть внешний модем
    • Внести рекомендации в соответствии с коментариями автора
- Instead of doing what the readme says, do the following:

- Add to uevent.harmony.rc the following line:

/dev/ttyUSB* 0777 radio system

You should not need to add to init.rc the ril-daemon lines, as JB already adds them for you:

Use the rild included in AOSP, do not use an older one. To use it, just add to full_shuttle.mk


after the initial PRODUCT_PACKAGES := \

-Instead of manually adding to build.prop, add to device.mk

ADDITIONAL_DEFAULT_PROPERTIES += keyguard.no_require_sim=true
ADDITIONAL_DEFAULT_PROPERTIES += rild.libpath=/system/lib/libhuaweigeneric-ril.so
ADDITIONAL_DEFAULT_PROPERTIES += rild.libargs=-d /dev/ttyUSB2 -v /dev/ttyUSB1
ADDITIONAL_DEFAULT_PROPERTIES += ro.pad.features.modem=true

-Make sure pppd is set suid root. The problem is that pppd otherwise has no right to create a ppp link...
-Compile ppp into the kernel, not as a module (the rild does not know how to insmod it, so it doesn't)
-Make sure pppd is at /system/bin ,,, Use the one supplied with AOSP... Perhaps you will also have to add it to the build, if not already present

-The huawei ril uses the following command to establish a ppp connection

/system/bin/pppd /dev/ttyUSB0 call gprs

This means you should have /etc/ppp/peers/gprs as the configuration of pppd...

Knowing the command line being used to invoke pppd should allow to debug the connection process, as you can call it yourself :)

  • Как дебажить модем
    • смотреть вывод logcat -b radio
      • Вот несколько советов по анализу этого вывода:
If AT commands are going through, then check SIM regestration, Antenna connection etc.

Документация, статьи

Внимание, большинство документации для более старых версий андроида (но и они могут быть полезными). Working with the Radio Layer Interface (RIL) in Android Use Point-to-Point Protocol (PPP) in Android Porting Guide: MSM/QSD HOWTO: tethering with USB/bluetooth DUN