Ady Wicaksono Daily Activities

Terminal Profile APDU

leave a comment »

Hi Javacard developer, this is for your reference on Terminal Profile APDU (in this case is Nokia N86 8MP)

[+] APDU Command: TERMINAL PROFILE
|—[:] First byte (Download)
|—[:] *Call Control send by NAA
|—[:] *Reserved by 3GPP (USSD string data object support in Call Control by USIM)
|—[:] *Timer expiration
|—[:] *Reserved by 3GPP (SMS-PP data download)
|—[:] *Menu Selection
|—[:] *Reserved by 3GPP (Cell Broadcast Data Download)
|—[:] *Reserved by 3GPP (SMS-PP data download)
|—[:] *Profile Download
|—[:] Second byte (Other)
|—[:] *Display Text
|—[:] *UCS2 Display supported
|—[:] *UCS2 Entry supported
|—[:] *Call Control by NAA
|—[:] *Reserved by 3GPP (MO Short message control)
|—[:] *Call Control by NAA
|—[:] *Call Control by NAA
|—[:] *Command Result
|—[:] Third byte (Proactive UICC)
|—[:] *Proactive UICC : REFRESH
|—[:] *Proactive UICC : POLLING OFF
|—[:] *Proactive UICC : POLL INTERVAL
|—[:] *Proactive UICC : PLAY TONE
|—[:] *Proactive UICC : MORE TIME
|—[:] *Proactive UICC : GET INPUT
|—[:] *Proactive UICC : GET INKEY
|—[:] *Proactive UICC : DISPLAY TEXT
|—[:] Fourth byte (Proactive UICC)
|—[:] *Proactive UICC : PROVIDE LOCAL INFORMATION (NMR)
|—[:] *Proactive UICC : PROVIDE LOCAL INFORMATION (MCC, MNC, LAC, Cell ID & IMEI)
|—[:] *Proactive UICC : SET UP MENU
|—[:] *Proactive UICC : SET UP CALL
|—[:] *Proactive UICC : Reserved by 3GPP (SEND USSD)
|—[:] *Proactive UICC : Reserved by 3GPP (SEND SS)
|—[:] *Proactive UICC : Reserved by 3GPP (SEND SHORT MESSAGE with 3GPP-SMS-TPDU)
|—[:] *Proactive UICC : SELECT ITEM
|—[:] Fifth byte (Event driven information)
|—[:] *Event : Idle screen available
|—[:] *Event : User activity
|—[:] *Event : Location status
|—[:] *Event : Call disconnected
|—[:] *Event : Call connected
|—[:] *Event : MT CALL
|—[:] *Proactive UICC : SET UP EVENT LIST
|—[:] Sixth byte (Event driven information extensions)
|—[:] *Event : Channel status
|—[:] *Event : Data available
|—[:] *Event : Browser termination
|—[:] *Event : Language selection
|—[:] Eighth byte (Proactive UICC)
|—[:] *Call Control by NAA
|—[:] *SETUP CALL
|—[:] *SET UP IDLE MODE TEXT
|—[:] *GET INKEY
|—[:] *Proactive UICC : PROVIDE LOCAL INFORMATION(date, time and time zone)
|—[:] *Proactive UICC : TIMER MANAGEMENT (get current value)
|—[:] *Proactive UICC : TIMER MANAGEMENT(start, stop)
|—[:] Ninth byte
|—[:] *Proactive UICC : LAUNCH BROWSER
|—[:] *Proactive UICC : LANGUAGE NOTIFICATION
|—[:] *Proactive UICC : Reserved by 3 GPP (PROVIDE LOCAL INFORMATION, Timing Advance)
|—[:] *Proactive UICC : PROVIDE LOCAL INFORMATION (language)
|—[:] *Proactive UICC : PROVIDE LOCAL INFORMATION (NMR)
|—[:] *SEND DTMF command
|—[:] *DISPLAY TEXT
|—[:] Twelfth byte
|—[:] *Proactive UICC : GET CHANNEL STATUS
|—[:] *Proactive UICC : SEND DATA
|—[:] *Proactive UICC : RECEIVE DATA
|—[:] *Proactive UICC : CLOSE CHANNEL
|—[:] *Proactive UICC : OPEN CHANNEL
|—[:] Thirteenth byte
|—[:] *GPRS
|—[:] *Number of channels supported by terminal 7
|—[:] Fourteenth byte (Screen height)
|—[:] *Screen sizing Parameters supported
|—[:] *Number of characters supported down the terminal 5
|—[:] Fifteenth byte (Screen width)
|—[:] *Number of characters supported across the terminal display : 15
|—[:] Seventeenth byte
|—[:] *UDP
|—[:] *TCP
|—[:] Twenty-first byte (Extented Launch Browser Capability)
|—[:] *CHTML
|—[:] *HTML
|—[:] *XHTML
|—[:] *WML
|—[:] Additional Profile Data In: 00
|—[:] Header: 8010000017
\—[:] Data: FFFFFFFF7F0F00DF7F00001FE2850F00030000000F0000

Advertisements

Written by adywicaksono

September 7, 2009 at 9:01 am

Posted in SmartCard, Telco - GSM

Launch Browser APDU

leave a comment »

Launch Browser APDU

Hi Javacard developer, this is for your reference on Launch browser APDU

|—[:] COMMAND DETAILS
|—[:] Command Number: 01
|—[:] Command Type: Launch browser
|—[:] Command Qualifier: Launch browser if not already launched
|—[:] DEVICE IDENTITIES
|—[:] Source Device identity: UICC
|—[:] Destination Device identity: Display
|—[:] URL: 78 78 78 78 78 78 78 2e 78 78 2e 78 78
|—[:] Card Status: 90 00
\—[:] Raw data: D018010301150002028102310D787878787878782e78782e78789000

URL is 78 78 78 78 78 78 78 2e 78 78 2e 78 78 (xxxxxxx.xx.xx)

Written by adywicaksono

September 7, 2009 at 8:59 am

Posted in SmartCard, Telco - GSM

Industri Properti Dubai Turun, Harga Sewa Turun juga :)

leave a comment »

Krisis moneter juga menghantam dubai,salah satu akibatnya adalah
banyaknya PHK di Dubai utamanya dari sektor konstruksi & properti.
Dari sudut pandang saya sebagai penyewa, ternyata ada sisi positifnya
karena jumlah supply apartemen banyak sementara jumlah penyewa turun,
jadinya harga sewa apartemen pun turun.

Salah satunya adalah apartemen saya, dari harga 110rb AED/tahun
bisa dinego jadi 65rb AED/tahun.

Cuman, konon kabarnya tunjangan rumah kita-kita pun akan segera disesuaikan
dengan kondisi pasar sekarang.

Jadi apakah bisa saving dari tunjangan rumah? Tidak tau 🙂

Written by adywicaksono

September 1, 2009 at 8:33 am

Posted in Uncategorized

Nama perusahaan kok singkat banget, Du

with 6 comments

“Du”, ya cuman 2 huruf nama perusahaan saya ini. Walau demikian sebenarnya nama perusahaan
resminya adalah Emirates Integrated Telecommunications Company PJSC. Du adalah “brand” nama
operator dan juga dipakai sebagai nama dagang di bursa saham di UAE. Dan untuk orang UAE, nama
“du” tidak asing karena di sini hanya ada 2 operator telekomunikasi, yakni etisalat dan du.

Lalu apa itu “Du”? Coba lihat-lihat websitenya di http://www.du.ae agar lebih mengerti 🙂

Anda bekerja di perusahaan yang punya nama perusahaan lebih singkat daripada saya?

Written by adywicaksono

May 24, 2009 at 1:36 pm

Posted in Uncategorized

Benefit bekerja di operator seluler di Dubai

with 3 comments

Seringkali teman-teman bertanya, apa benefit bekerja di operator seluler di Dubai, dalam kasus saya di du (www.du.ae)?
Benefitnya cukup banyak, tapi jangan dibandingkan dengan benefit di sektor oil&gas/konstruksi yang jauh lebih dahsyat.

1. Tunjangan rumah
Fungsi tunjangan rumah adalah untuk membayar biaya sewa rumah.
Pada saat awal bergabung, maka kita akan diberikan X kali lipat dari tunjangan rumah bulanan kita
untuk digunakan membayar sewa rumah. Setelah itu, tunjangan diberikan bulanan.

Tergantung memanfaatkan tunjangan rumah ini dan kondisi pasar properti, maka kita bisa nabung atau nombok dari uang
tunjangan rumah ini.

Besarnya tergantung grade/level kita. Tapi lumayan OK lah daripada gak dikasih.

2. Tunjangan transportasi
Diberikan agar pekerja memiliki ongkos untuk pulang pergi dari kantor. Di Dubai tunjangan ini cukup untuk menyicil
pembelian mobil yang harganya memang relatif murah di Dubai.

Besarnya tergantung grade/level kita. Tapi lumayan OK lah daripada gak dikasih.

3. Tunjangan Relokasi
Diberikan berupa 20ft container untuk mengangkut barang2 dari tempat asal kita ke Dubai. Tunjangan ini tidak saya pakai
karena saya gak punya barang apa2 untuk diangkut ke Dubai dari Indonesia/Singapura. Tunjangan ini tidak bisa diuangkan
jadi kalau tidak dipakai ya hangus.

4. Tunjangan Pendidikan anak
Diberikan untuk anak kita yang berumur 4-18 tahun. Besarnya 12rb AED/year. Jumlah yang kecil di Dubai ini, namun OK lah
daripada gak dikasih 🙂

5. Tunjangan Telepon
Ya buat nelpon. Jatah saya relatif kecil tapi sejauh ini, tagihan telepon saya selalu 0, karena telepon internasional
dapat diskon 50% dan rate-nya khusus pegawai Du. Sementara telepon ke telepon rumah di Dubai juga gratis.

6. Tunjangan tiket pesawat PP ke negara asal
Patokannya tiket ekonomi menggunakan airline Emirates dengan harga tiket ekonomi termahal untuk setiap anggota keluarga.
Jadi bisa disiasati untuk menggunakan airline yang lebih murah atau ambil tiket yang lebih murah jadi bisa disimpan sisanya.

7. Tunjangan kesehatan
Berupa asuransi kesehatan, intinya biar berobat gratis untuk seluruh anggota keluarga. Asuransi meliputi seluruh negara kecuali
US/Canada. Tapi di sini ada American Hospital, jadi sama saja seperti berobat di US.

8. End of Service Benefit
Jadi suatu ketika kita mengundurkan diri, kita akan mendapatkan pesangon yang besarnya tergantung berapa lama kita sudah bekerja
di perusahaan. Minimal dihitung 21 hari kerja relatif terhadap gaji pokok bulanan

9. Jatah Cuti
– Normal Cuti: 30 Hari Kerja setaun atau 1,5 Bulan
– Cuti Haji : Kalau haji dapat cuti tambahan khusus untuk haji
– Compassionate Leave: Kalau ada famili yang meninggal maka dapat cuti 7 hari + tiket PP untuk balik ke rumah

10. Gaji Pokok + Bonus
Ya kalau gak digaji pokok, gimana bisa makan sehari2.

Written by adywicaksono

May 21, 2009 at 8:30 am

Posted in life

Lock/Unlock Javacard Applet

leave a comment »

Sometime we need to disable a javacard applet inside the SIMCard without remove it.
Once disabled, later we may want to activate it again. Global Platform spec define
a way to do this.

Let say we have javacard application with AID A00000001840840000, to lock it simply
this command through GSM 03.48 envelope command to SIMcard:

80F0408309A00000001840840000

Meanwhile, once locked/disabled, simply send this GP command to enable it:

80F0400309A00000001840840000

Detail:
0x80: CLA
0xF0: INS for SET STATUS command
0x40: To indicate that this is a javacard applet application
0x83: Set to locked meanwhile 0x03: set to unlocked (state: SELECTABLE)
0x09: Length of AID to disabled/enabled is 9 bytes
A00000001840840000: this is the AID of applet

Written by adywicaksono

October 30, 2008 at 10:13 am

Sendmail STARTTLS, how to force email relay to use TLS

with 2 comments

Sendmail STARTTLS Issue
=======================

The idea of this paper is how to force email relay/end SMTP destination to retrieve our
email securely using TSL (Transport Security Layer). If the relay or mail destination 
doesn't support TLS, email will not be delivered to it.

Such scenario is simply given in this diagram:

                      (1)                         (2)                        
[ mail client ] === send email ===> [ MTA1 ] === relay to 
                                                   |
+==================================================V
| (3)                     (4)
+======> [ MTA2 ] === delivery to ===> [ mail server (SMTP destination) ]

I assume:
=========
MTA1: 10.254.80.31
MTA2: 10.254.70.8

Our purpose now is to make MTA1 - MTA2 communication is secured using TLS.

I) What happened if MTA2 doesn't support TLS? Let us try by following this scenario below:

Step 1. (to be done on MTA2)
   - disable STARTTLS 
   - Edit /etc/mail/access append this line:
   
	Connect:10.254.80.31                    RELAY

     After append that line above, please run this command (as root)

	makemap hash /etc/mail/access.db = 128 bits. If not, then MTA1 
     will not relay email to MTA2.
     
     After append that line above, please run this command (as root)

	     makemap hash /etc/mail/access.db < /etc/mail/access

Step 3. (to be done on email client)
Try to send email now using MTA1, now monitor MTA1, wait and check mail queue there:

- Using mailq command you get like this

-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
m675MXpo001370      536 Mon Jul  7 05:22 
                 (Deferred: 403 4.7.0 encryption too weak 0 less than 128)
                                         

Message is deferred, since based on our rule, message send through 10.254.70.8 (MTA2) 
which is our relay must be encrypted, but we didn't configure MTA2 to be TLS enabled. 
Error message:

        403 4.7.0 encryption too weak 0 less than 128
 
there describe that we want encryption but relay mail server doesn't support it.

II) What happened if MTA2 support TLS? Simply enable TLS on MTA2 and see what happened :)
    Email should be delivered normally now  

FAQ:
* How to check if the SMTP support TLS? 
  Try to connect (using telnet) to port 25, say hello and you will see "250-STARTTLS" there.
  E.g:
	# telnet localhost 25
	Trying 127.0.0.1...
	Connected to CM (127.0.0.1).
	Escape character is '^]'.
	220 localhost.localdomain ESMTP Sendmail 8.12.10/8.12.11; 
	EHLO localhost
	250-localhost.localdomain Hello CM [127.0.0.1], pleased to meet you
	250-ENHANCEDSTATUSCODES
	250-PIPELINING
	250-8BITMIME
	250-SIZE
	250-DSN
	250-ETRN
	250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
	250-STARTTLS
	250-DELIVERBY
	250 HELP

* How to enable/disable TLS feature on sendmail?
  See: http://www.sendmail.org/~ca/email/starttls.html#starttlssetup

Link related:
 1. www.sendmail.org
     	     



Written by adywicaksono

July 7, 2008 at 5:53 am

Posted in Linux, networking