Showing posts with label BIP Client. Show all posts
Showing posts with label BIP Client. Show all posts

Friday, February 22, 2008

SCWS Local Server

  1. Open BIP TCP Server mode
  2. At least support 2 channel, HTTP and HTTPS
  3. HTTP port 3516
  4. HTTPS (TLS) port 4116
  5. Enable automatically, not such BIP Client mode

Wednesday, February 20, 2008

CLOSE CHANNEL BIP

After OPEN Channel, You should know how to close it. Here are some important things you should be aware.
  1. Command details*
    1. command details tag = '81'
    2. length = '03' (1 byte)
    3. command number 01 - FE (1 byte)
    4. Type of Command ='41' (CLOSE CHANNEL)
    5. Command Qualifier :
      • RFU for BIP Client Mode
      • bit 1
        • 0 : close TCP Connection and go to "TCP in CLOSED state"
        • 1 : close TCP Connection and go to "TCP in LISTEN state"
  2. Device identities*
    1. device identities tag = '82'
    2. Length = '02'
    3. Source Device identity = '81' --> UICC
    4. Destination Device Identity = '21'-'27' --> channel ID (PRE_ID _CHANNEL_BASE='20')
  3. Alpha Identifier
    1. Alpha identifier TAG = '05'
    2. Length = 0
    3. Alpha Identifier (TS 131 102)
  4. Icon Identifier
    1. Icon Identifier Tag
    2. Length = '02'
    3. Icon Qualifier
      1. bit 1, 0 = self explanatory, 1 = non self explanatory
      2. bit 2-8 =0 (RFU)
    4. Icon Identifier (TS 131 102)
  5. Text Attribute
    1. Text Attribute Tag = '50'
    2. Length
    3. Text formatting ( TS 123 040)
  6. Frame Identifier
    1. Frame Identifier Tag
    2. Length = '03'
    3. Identifier of Frame, the value is between '00' - '0F'
You don't need to remember the tag value if you use appendTLV function. All of the tag value are explained briefly in uicc.toolkit.ToolkitConstant library.

note :
* mark means mandatory
Channel indentifier must be valid

OPEN CHANNEL BIP TCP Client Mode

According to TS 102 223(6.6.27.2), the requirement for setting up Open Channel command in BIP TCP Client are
  1. Command details*
    1. command details tag = '81'
    2. length = '03' (1 byte)
    3. command number 01 - FE (1 byte)
    4. Type of Command ='40' (OPEN CHANNEL)
    5. Command Qualifier :
      • bit 1 : 0 = for Demand link establishment, 1 = immediate link establishment
      • bit 2 : 0 = no automatic reconnection, 1 = automatic reconnection
      • bit 3 : 0 = no background mode, 1 = immediate link establishment in background mode
      • bit 4-8 = RFU
  2. Device identities*
    1. device identities tag = '82'
    2. Length = '02'
    3. Source Device identity = '81' --> UICC
    4. Destination Device Identity = '82' --> Terminal
  3. Alpha Identifier
    1. Alpha identifier TAG = '05'
    2. Length = 0
    3. Alpha Identifier (TS 131 102)
  4. Icon Identifier
    1. Icon Identifier Tag
    2. Length = '02'
    3. Icon Qualifier
      1. bit 1, 0 = self explanatory, 1 = non self explanatory
      2. bit 2-8 =0 (RFU)
    4. Icon Identifier (TS 131 102)
  5. Bearer Description*
    1. Bearer Description Tag = '35'
    2. Length
    3. Bearer Type = '02' (GSM/3GPP) --> GPRS
    4. Bearer Parameter
      1. Precedence Class ( Priority) = '00'
      2. Delay Class = '00'
      3. Reability Class = '03'
      4. Peak Throughput '00'
      5. Mean Throughput = '00'
      6. PDP IP = '02'
  6. Buffer Size*
    1. Buffer Size Tag = '39'
    2. Length = '02'
    3. Byte 3-4 = Buffer size, for example 1000 bytes = 03E8
  7. Network Access Name
    1. Network Access Name Tag = '47'
    2. Length
    3. Network Access Name
  8. Other Data Destination Address (local)
    1. Other Data Destination Address Tag = '3E'
    2. Length = '05'
    3. Type of Address = '21' (IPv4)
    4. Address ( 4 byte , XX.XX.XX.XX)
  9. Login
    1. Text String Tag = '0D'
    2. Length
    3. Data Coding Scheme = null
    4. Text String = your username
  10. Password
    1. Text String Tag = '0D'
    2. Length
    3. Data Coding Scheme = null
    4. Text String = your password
  11. UICC/ Terminal Interface
    1. UICC/ Terminal Interface level tag = '3C'
    2. Length = '03'
    3. Transport Protocol Type = '02' (TCP,UICC in client mode)
    4. Port Number(2 bytes) = '00' '50' (80)
  12. Data destination address
    1. Data Destination Address Tag = '3E'
    2. Length = '05'
    3. Type of Address = '21' (IPv4)
    4. Address ( 4 byte , XX.XX.XX.XX)
  13. Text Attribute
    1. Text Attribute Tag = '50'
    2. Length
    3. Text formatting ( TS 123 040)
  14. Frame Identifier
    1. Frame Identifier Tag
    2. Length = '03'
    3. Identifier of Frame, the value is between '00' - '0F'
You don't need to remember the tag value if you use appendTLV function. All of the tag value are explained briefly in uicc.toolkit.ToolkitConstant library.

note :
* mark means mandatory