Internetan dengan Hp CDMA dan StarOne

Posted in kompi on 27 April, 2008 by aman subanjar

Seringkali bagi kita yang sering online dengan bandwidth kantor sudah biasa dan merasakan betapa mudahnya akses informasi yang kita peroleh. Tetapi ketika kita di luar kantor/ rumah, apakah koneksifitas internet akan selalu ada? Ya kalau jaringan wi-fi selalu ada, kalau tidak barangkali tinggal konek ke modem telepon, setting dial up beres…..Itupun masih perlu modem dong. Ada jawabnya yaitu internetan dengan memakai HP yang terhubung dengan PC.

Kesempatan kali ini saya akan memeperkenalkan koneksi internet dengan starone, kalau di Jogja terkenal dengan produk Jagoannya…

1. Mengapa StarOne? Bukan untuk promosi..(emang dibayar?) tetapi sampai tulisan ini dibuat hanya starone yang bisa transfer data berbasiskan waktu, bukan volume data, artinya tidak dibatasi berapa kByte yang datang ke PC kita.Hm… mudah2an operator lain bisa ikut2an dan perang tarif lagi…

2. HP apa saja yang support? Aku pakai Nokia 6016i (yang murah meriah), asalkan di dalam HP itu dah ada modem internal, dijamin beres..

3. Apa yg dibutuhkan? Tentu saja : HP CDMA, Kartu StarOne, Kabel data.

4. Kabel Data jenis Apa? CA42 atau DKU5 untuk Nokia. Aku pakai CA42. Tapi menurut eksperimen teman2, DKU 5 juga support, masalahnya banyak DKU5 yang palsu dipasaran ,efeknya kalo pake yang palsu ketika konek, kompi langsung hang.. (jadi saya saranin pake CA42 saja, disamping memang lebih murah J)

5. Bagaimana konfigurasi software di PC setelah perangkat tersambung?

  • Saat ini aku pake Win XP,
  • Klik Kontrol Panel> Phone and Modem> pada tab Modem pilah Add… lalu ketik apa saja …..(misal nokia)
  • Setelah itu muncul konfigurasi memlih port com, pilih COM virtual (biasanya bukan COM1).
  • Selesai..
  • Lakukan tes konfigurasi modem dengan querry modem, kalau success (baris pertama) berarti konfigurasi modem dah berhasil….
  • Masalah selanjutnya, bagaimana membentuk koneksi dengan jaringan Indosat punya…
  • Klik Control Panel > Network Connection > pada jendela kiri pilih Create New Connection > …
  • Klik Next > Connect to the internet > Set Up my connection Manually > Connect using dial up modem > ….
  • Sekarang tinggal memasukkan nama ISP kita:
  • Karena kita pake starone, maka ketik starone>>dial number=#777>>passwd:indosat>>selesai.
  • Sekarang aktifkan koneksi dengan mengklik kanan ikon pada Network connection, dan silahkan nikmati koneksi internet tanpa batas.
  • Jika pada waktu melakukan koneksi masih ada error 691 (kebanyakan kasus) tuh berarti nomor kita belum diinternet enable sama pihak indosat. Solusinya kita tinggal complain ke indosat, dial 111 lalu bilang sama mbak-mbak customer service untuk mengenable internet yg kita pakai. Kalau mau koneksi kita berbasiskan waktu silahkan ketik REG[spasi]TIME kirim ke 799.

Info lebih lanjut à www.starone.com

TCP IP Base Control Design

Posted in Microcontroller on 12 March, 2008 by aman subanjar

Trend of 2005 till now, TCP IP was design for control line. Control signal itself is just data, isn’t it? Thus the great brand like hp built their printer with TCP IP facilities? PLC (Power Line Comm.) just the big example, then SENAO was built since the first base on TCP IP.

As the “common” people looking for the answer what the chip that it can be built for IP base , its the hard way. Anyone want to tell me? Simple way to answer it, just go… and make sense with your PC. I mean the embedded system, so the product is familiar enough and of course easy to use. Imagine that the PC as the control equipment looks like an big control need, its differ than we created the embedded machine. Simple.

Or we have to wait till the industries bored with their toys and sold their ancient chip? Then the listing code just could be found at that time?

Still… The question is what chip that it can be used or even programmed in order to make some magic number? Its the TCP IP, meanwhile the trend now TCP IP goes to IP V 6..

How late I am….

Urban Life, the High Price that have to be paid….

Posted in Our Own Culture on 12 March, 2008 by aman subanjar

The local news, report that the half of population in the world was live in town, …

Better salary, better life, bigger fund, newest car. What the interest of town with it crowd even their noise rather than small village with their calm, cool valley? But sometimes we couldn’t get any better choice.

Industry was the problem? Since someone went to the town mostly they just come again to their village just for vacation…. then why not the factory moved to village? I’m sure that the village will change to be new town again…Or is it just being in Indonesia?

Deteksi Nomor HP Otomatis dg Mikrokontroller

Posted in Microcontroller on 12 March, 2008 by aman subanjar

Beberapa waktu yg lalu ketika membuat proyek antarmuka HP dg mikrokontroler, ada masalah bagaimana mambuat agar uC (AT 89S52) dapat mendeteksi berbagai macam nomor telepon? Di Indonesia ada beberapa operator : Indosat, Telkomsel, XL, dll dengan produk kartu SIM yg bermacam sehingga menyebabkan jumlah nomor telepon yang diterima pun bermacam-macam. Lalu apakah proyek komunikasi antar alat dan HP hanya 1 buah nomoe tujuan saja? Nggak lucu dong kalo nggak bisa detek macem2 nomor… Ya kalo pake PC enak, lha ini pake mikro seri S lagi.

Akhirnya ada beberapa method (mungkin) tapi salah satu demikian (barangkali langsung sc saja,,,,,):

;mengecek no hp pengirim

;======================

cek_nohp: ;nomor hp =12 (tidak pake kode negara 081…)

mov r7,70h

cjne r7,#’D’,cek_nohp1

mov r3,#18

mov r1,#71h

ret

cek_nohp1: ;nohp =10

mov r7,6eh

cjne r7,#’B’,cek_nohp2

mov r3,#16

mov r1,#6fh

ret

cek_nohp2: ;nohp =11 ( three,flexi)

mov r7,6eh

cjne r7,#’C’,cek_nohp3

mov r3,#16

mov r1,#6fh

ret

cek_nohp3: ;nohp =13

mov r7,70h

cjne r7,#’E’,cek_nohp4

mov r3,#18

mov r1,#71h

ret

cek_nohp4: ;nohp =9

mov r7,6ch

cjne r7,#’A’,del_sms

mov r3,#14

mov r1,#6dh

ret

Dari sekian nomor kemungkinan kan cuma 9 sampe 13 (ada yg 14 nggak ya?) Lha disini kita memanafaatkan fungsi R1 sebagai Register index sehingga nomor telpon bisa dideteksi di RAM ke berapa… then program untuk mengambil nomor HP yg dimaksud? Here we are….

tx_no_hp:

clr a

mov a,@r1

call tx

dec r1

djnz r3,tx_no_hp

ret

tx:

clr es

mov sbuf,a

jnb ti,$

clr ti

setb es

ret

Pertanyaannya pengalamatan RAMnya seperti apa?

; INTERUPSI SERIAL

data_in:

jb RI,data_in1

clr TI

reti

data_in1:

push psw

push acc

mov a,sbuf

mov 74h,73h

mov 73h,72h

mov 72h,71h

…….

…….

……

mov 42h,41h

mov 41h,40h

mov 40h,A

clr ri

pop acc

pop psw

reti

Mudah2 ini kebaca… bukan sekedar sampah blog… he he he.

Salam.

2X16 LCD LMB 126 Programming on 8051 Microcontroller

Posted in Microcontroller on 28 November, 2007 by aman subanjar

Most LCD programmed in 8 bit configuration. Moreover LCD put on equipment that show the value of measurement, i.e. temperature, voltage, current, etc. There are a lot of tutorial show steps how to configure out in order to LCD on. But each LCD has  own characteristic. The best way to decide the function of each pin is just check out the serial number of LCD. Get its pdf files, then it has to compatible with the hardware.

I ever made a mistake when I did not check the function each pin. It caused a lot of tutorial of LCD programming in 8051 microcontroller use the HD44780 series, meanwhile I bought the LMB 162 A. It has most different from the function of B+, ground and data, Huh I break it down. I just wasted my 6 USD, I though…

Okay, actually these will show to programmed the LMB 126 A using 8 bit microcontroller. I used ATMEL 89S52 as my microcontroller, but it also compatible with 8051 language programming. In the figure bellow, I used 8 bit data (pin 7 till 16) connect to port 2 microcontroller. Pin number 4 is port 1.3 then pin number 5 is port 1.4.

 micro-LCD interfacing

Base from the LCD Characteristic, the software has to follow the rule bellow in order to the LCD can be adjusted and showed the characters we want. Time delay rutine can be found easily. Just googling, find it, how simple it is.

 

flowchart LCD

After we know about the sequence software (above), let start to write the code, compile it then upload it to chip. I my self have my code, here bellow:

rs equ 94h;p1.4

en equ 93h;p1.3;Send_DataLCD EQU 280H

lcall init_lcd;

mov dptr,#message1;

lcall sendmessage_lcd;

lcall write_in_lower;

mov dptr,#message2;

lcall sendmessage_lcd;

lcall delay_1_s;

lcall delay_1_s;

lcall delay_1_s; 

lcall delay_1_s;

call clr_lcd ;

mov dptr,#message3;

lcall sendmessage_lcd;

lcall write_in_lower;

mov dptr,#message4;

lcall sendmessage_lcd;

lcall delay_1_s;

lcall delay_1_s; ;

lcall delay_1_s;

lcall delay_1_s;

;;;;LCD NEED RUTINE OF ;;;;;;;;;

;===========================|

Init_LCD:; 

Mov A,#00111000b ; Send 38H

Lcall Send_Perintah; 

call delay_200_us; 

Mov A,#00001110b;send 0eh

Lcall Send_Perintah ; 

call delay_200_us; 

Mov A,#01H;send 01H

Lcall Send_Perintah ; 

call Delay_50_ms;  

Mov A,#00000110b;Mode Incr. Address

Lcall Send_Perintah; 

call delay_200_us; 

Ret ; 

;======================================|

clr_lcd: ; 

Mov A,#00000001b;Mode Increament Address 

Lcall Send_Perintah;

call delay_50_ms;

Ret

write_in_lower:

Mov A,#0c0h;

Lcall Send_Perintah;

call delay_200_us;

ret

;=====================================|

sendMessage_LCD:

LoopSendMessage_LCD:

Mov A,#00H;

Movc A,@A+Dptr;

Cjne A,#0FH,Send_LCD;

Ret

Send_LCD:

Lcall Send_Character

Inc Dptr;

Ajmp LoopSendMessage_LCD

;============ =========================|

Send_perintah:

clr rs

Lcall Send_DataLCD

call delay_200_us

Ret

Send_Character:

setb rs

Lcall Send_DataLCD

call delay_200_us

Ret

Send_DataLCD:

Mov p2,A

Nop

Acall Pulse_Clock

Ret

Pulse_Clock:

setb en

nop

clr en

ret

Send_Character:

                                setb rs

                                Lcall Send_DataLCD

                                call delay_200_us

                                Ret

Send_DataLCD:                

                                Mov p2,A

                                Nop

                                Acall Pulse_Clock

                                Ret

Pulse_Clock:

                                setb en

                                nop

                                clr en    

                                ret

……………………….

;MESSAGE TO LCD

message1:

db ‘DATA MONITORING ‘,0fh

message2:

db ‘ACCESSED BY SMS ‘,0fh

message3:

db ‘    amansubanjar’,0fh

message4:

db ‘      @gmail.com’,0fh

 

;RUTINE OF DELAY

;==============

delay_50_ms:

mov tmod,#21h

mov th0,#02ch

mov tl0,#012h

setb tcon.4 ; tcon.4 = tr0

count_50_ms:

jbc tf0,finish_50_ms

jbc tcon.5,finish_50_ms ; tcon.5 = tf0

sjmp count_50_ms

finish_50_ms:

ret

delay_200_us:

mov tmod,#21h

mov th0,#0ffh

mov tl0,#027h

setb tcon.4 ; tcon.4 = tr0

count_200_us:

jbc tf0,finish_200_us

jbc tcon.5,finish_200_us ; tcon.5 = tf0

sjmp count_200_us

finish_200_us:

ret

delay_1_s:

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

call delay_50_ms

ret

;===========================| 

 

end

Image and Video Processing in Delphi (Aman Subanjar@2007)

Posted in Delphi Page on 28 November, 2007 by aman subanjar

Several months ago I got my own project but I was failed. The project just a simple, but very complicated plus my ability in programming just still amateur.(actually till now J )

The project is capturing pictures from the real time video, and process it started by convert it to vector image, then I could compute the values about the Red Green and also Blue index. Also I could analyze the “shape” of image to be. At the first time I did, I found a thousand fails. It seems that imposible built in Delphi. The more realistic theory, just when I read the VRML (Virtual Reality Modeling Language), how effective Delphi break up my problem, actually till now it still being mystery.

I use Video Lab and Audio Lab component built for Delphi. Its easy to use, just install the executable file, then these components installed in Delphi by itself.

These can be downloaded here..

Easy to Use

Just click the component the component you want, then we’ll start to program the TV Tuner, webcam, sound, movie, much easier than writing without these components.

For example for my project I built the interface between web camera and show it in my program. If I use the ordinary way, it will spend a lot of knowledge of windows system.

Proud to be Javanese, mboten-mboten

Posted in Our Own Culture on 28 November, 2007 by aman subanjar

“What nese are you?” There are alot of nese: Sundanese, Balinese, etc, but what whats make us proud for nese to be?

Status? I guess that its not the time ,even we’d never had a time, for the word “rasisme”. But I talk about culture, not an exclusivm, bad fanatics, or more. But just care how the status of your country didn’t lose your “nese”

I’m a javanese, live in Jogjakarta, tomorrow perhaps I won’t live here because my work, or not (who knows?) but till now what make the essencial java in Jogjakarta except the building and the place it self? I thought that more and more student still like english (hm….) as their primary language than java itself. Why? I didn’t say which better, but who’s care for this culture? The java letter itself more and more were be leaved, the doctoral language of java were on Netherland…

Just when I go around in this city, more and more place name didn’t use the java letter, its not like Thailand, or Japan (maybe). I just wish that where could I go I find more and more java letter as the status of our java, so far I found it just in the name of road only, no more. Oh if only every place (market, movie theater, school, office, etc) have to be written in javanese, maybe the worse never come…at least people whoever seen the letter still confuse and guess the words. (or even didn’t care ,,,,). It seems that the goverment have to make some rules so the owner of place must use the javanese letter, beside their indonesian or english words.

A laughter when I went to Bandung, almost of friends there are sundanese. They’re said that jogjanese is clever about the germanic. I asked “why”. They said just when the came to Jogja and asked the a near placed almost people said “mboten-mboten ngertos”. ( Sorry I don’t know, ~~Sorry I couldn’t help you). Is there any relation between “mboten” and germanic? Ha ha ha ………….

Do you feel most people proud with the place they’re live or they’re born?  Please share here… I will glad hear it.

Follow

Get every new post delivered to your Inbox.