GithubHelp home page GithubHelp logo

dedayoa / u300-ril Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aferre/u300-ril

0.0 1.0 0.0 224 KB

ST Ericson U300 Radio ABstraction Layer for Android

License: Other

Makefile 0.52% C 91.81% C++ 7.67%

u300-ril's Introduction

  ST-Ericsson U300 series Android Radio Interface Layer

BUILDING
  Building u300-ril is done through the Android build system.

  First, unpack the u300-ril package into somewhere in the android source tree,
  here we have used mydroid/hardware/ste/ as an example.

  In the Android root directory (here called mydroid) do:

  mydroid$ source build/envsetup.sh
  mydroid/hardware/ste/u300-ril$ cd hardware/ste/u300-ril/
  mydroid/hardware/ste/u300-ril$ mm

  This will produce the libu300-ril.so in the
   mydroid/out/product/..../system/lib/ directory.

INSTALLATION
  Copy the libu300-ril.so file to the /system/lib/ directory on target and
  modify the ril-daemon service in android's init.rc to use it. A sample
  follows:

  service ril-daemon /system/bin/rild -l /system/lib/libu300-ril.so -- -c CAIF -i gprs0
      socket rild stream 660 root radio
      socket rild-debug stream 660 radio system
      user root
      group radio cache inet misc
      disabled

  The command line configuration parameters for u300-ril follows:
    -c : Channel type (CAIF/UNIX/IP/TTY/CHAR) for the AT channel.
    -n : Number of channels to use (maximum two channels are supported).
    -p : Primary channel argument. Mandatory if channel type is different than CAIF.
    -s : Secondary channel argument. Mandatory if channel type is different than CAIF.
    -x : Extra channel argument. Used to specify the host if channel type is IP.
    -i : Defines what network interface will be used for PDP context setup.
         Default is currently gprs0.

  The service is marked as disabled since we usually need to configure the
  modem communication channels before starting the RIL. This is done trough
  a simple shell script, combined with a service defined in init.rc that will
  invoke the script. Once the script is finished, the RIL-daemon will be
  started. A sample service in init.rc:

    service ste-init /system/etc/init.ste.sh
        oneshot

  Make sure that the RIL has access to the AT channel or change it if needed.

  For example to change permission rights to /dev/chnlat* in init.rc, please add:

    device /dev/chnlat* 0660 radio radio

  to init.rc above the service definitions. This is important, since the RIL
  will not be able to open the AT channels without the correct permissions set.

  Also, be sure that PPP is disabled in init.rc, since ST-Ericsson RIL does
  not use PPP and if PPP is enabled, setup of data operations will fail.


u300-ril's People

Contributors

aferre avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.