[Previous] [Next] [Contents]

CHAPTER 6. PHONE INTERFACE

 

6.2 PHONE APPLICATION

B. Indicator

a. Management of data call

Indicator offers important connecting path to network applications that use Ethernet. It takes application request of network information and forms virtual Ethernet through controlling PPP demon. It also takes charge of controlling the flow of running application. All the applications that use network are allowed and controlled by indicator. (Explain more at Virtual Ethernet)

b. Management of R-UIM Card

Among main functions of indicator, there is the function that manages R-UIM card. R-UIM card contains ESN (Electronic Serial Number) of phone, phone number, Phone book (Address book), SMS, etc. Managing R-UIM card can be divided into initializing itself and initializing Phone book and SMS data.

 

  • Initializing
  • R-UIM has own protection feature. So according to current protection status, the initialization can be progressed or suspended waiting user authentication.

       

    After phone booted, indicator requests the physical state of R-UIM to phone. Then according to the state, it progresses a series of processes.

     

    # Check physical connection of card

    It checks that card is physically inserted. If the card exists, it progresses next step otherwise it suspends the process. In latter case, it warns that the card is not inserted at phone screen and indicator.

    # Check that card is blocked

    If you enter PIN code wrong for 3 times, the card falls into block state. In here, it checks that the card is in block state. If the card is in the state, it suspends the process otherwise it progresses next step. In latter case, it warns that the card is in block state at phone screen and indicator.

    # Check that card is locked

    Each card has own serial number and phone saves the number when the card first inserted. If user has set the card lock, it compares serial number of the card with what phone has and if they are different, it asks authentication number. Otherwise, it progresses next step regardless of that the card is lock or not.

    # Check PIN Code of card

    The card has protection feature named PIN Code and if you have activated the feature, you have to pass authentication. If you fail 3 times in authentication, the card falls into block state. But the feature having been deactivated, the card allows access without authentication.

     

  • Data mirroring
  • If own initialization of R-UIM is ended and R-UIM becomes the state that access can be allowed in, the data in the card go through mirroring process.
    Since physical Read/Write speed is very slow in R-UIM card, to improve performance while system operating, the data in the card are read all at once and saved to internal database.
    Phone book (Address book) and SMS data correspond to the data. After phone is booted, initialization is progressed, and 12 seconds are passed, Indicator informs phone server that mirroring process is ready.
    By this signal, phone server physically reads the data from R-UIM card and saves the data in the file whose format is resource data at specialized location (/tmp/R-UIM.phonebook, /tmp/R-UIM.sms).
    Then phone server informs indicator that data-mirroring process is ended and indicator inserts the data that were converted to file to database system of PDA. The data of physical R-UIM card are used while system operating, instead the data of database are used through querying. Only the behaviors of update, removal, and insert try to write data directly to R-UIM card.

     

    c. Configuration

  • Power on
  • As main function of Indicator, there is phone power on. And this can be divided into several according to events.

    # The case that power is supplied and system starts booting after battery is inserted.

    When first booting, DPRAM Driver is activated, phone server operates and gets to wait client. After PDA ends its booting, Indicator connects to phone server and turns phone on.

    # The case that the user request turns phone on

    While system operates after its booting, phone can be turned on through the user request.

    # The case of Language switching

    PDA supports three languages such as English, simplified Chinese, and traditional Chinese. PDA immediately gets to restart when language is changed. At this time, receiving call, SMS, etc. becomes impossible so that phone server turns phone off and suspends the functions related to phone at the time when Indicator disconnects.

  • Time setting
  • If phone has completed its booting, it go through the process of registering itself to base station by communicating with base station and doing Power on registration, and it also tries to do time synchronization. If time synchronization is done, PDA gets the time from phone and sets system time of PDA. To adjust PDA time, PDA gets the time from phone every 30 seconds and sets system time of PDA.

     

    d. Interface with IOM

    There is independent module called IOM (I/O Manager) in PDA system. This module controls peripheral devices such as earphone, external cable, etc. and battery information. Indicator indicates whether factory cable, earphone is inserted or not to user through communicating IOM. Indicator operates as plug in of launcher-skywalker-.
       

    The communication between IOM and Indicator follows the decided standard.

  • Peripheral

  • Earphone corresponds to peripheral device. Indicator requests the status of earphone after system booting is completed, and IOM sends proper response to Indicator through launcher.
    MzIOManager::instance()->sendRequest(“ext/earphone”)

     

  • Battery
  • # Low battery

    Phone has own battery checking algorithm so if battery falls under the specified voltage level, phone sends Phone off message to phone server through DPRAM. Phone server immediately delivers the message to IOM and IOM decides whether it accepts Phone off request of phone or ignores the request using own battery checking algorithm. If IOM accepts the message, it sends the message to Indicator through launcher. Indicator gets to turn phone off sending Phone power off message to phone server. The purpose of above scenario is that no part of Phone and PDA can determine absolute voltage level. There can be temporarily voltage dropping while MP3 playing or other application operating and Phone also can have voltage dropping when electric field is during Pilot, during call, or bad. But voltage dropping can’t be regarded as Low battery.

  • Factory mode
  • When phone is produced in factory line, it goes through test with decided way. The process is for factory, not for user. Indicator checks external cable as soon as terminal boots and if the cable is inserted that is only used in factory line, phone requests to phone server and PDA system so that they can do proper operations. This is send to IOM in the form of Notification.


    [Previous] [Next] [Contents] MIZI Prizm 2.0.0