DT-I/O. I/O Application Notes AN164 Komunikasi Jarak Jauh antara 2 PC dengan RS-485. Application Note AN164

dokumen-dokumen yang mirip
DT-I/O DT-I/O. Application Note AN171

DT-Sense Application Note

PC-Link Application Note

DT-I/O. Application Note AN211. Komunikasi data saat ini terus dikembangkan dan diimplementasikan di dalam setiap bidang, seperti proses

PC-Link. PC-Link. Application Note AN202

SPC Application Note. SPC Blue-Link (J2) Tabel 1 Hubungan SPC Blue-Link Dengan Komputer

DT-AVR Application Note AN191 SMS Gateway dengan GSM STARTER KIT

PC-Link Application Note

DT-BASIC Application Note

DT-SENSE Application Note

PC-Link Application Note

PC-Link. Gambar 1 Blok Diagram AN201. AGND (J3 pin 1) Pin 1 VCC (J3 pin 2) Pin 3 Dapat dipilih salah satu dari A0 s.d. A7 (J3 pin 3 s.d.

DT-PROTO Application Note AN219 Kontrol Lampu Secara Nirkabel berbasiskan Smarphone Android dan

Gambar 1 Blok Diagram AN190. P1.0 (J3 pin 3) IN1 (J1 pin3) Tabel 1 Hubungan antar PC-Link Serial PPI dan DT-I/O Quad Relay Board12V

DT-AVR Application Note. Gambar 1 Blok Diagram AN133

PC-Link. 1x Komputer / Laptop dengan OS Windows 2000, Windows XP atau yang lebih tinggi. Gambar 1 Blok Diagram AN200

DT-BASIC Application Note

DT-I/O. DT-I/O Application Note

DT-AVR Low Cost Micro System. Gambar 1 Blok Diagram AN154. RXD (J13 Pin 3) TXD (J8 Pin 4) GND (J10/J11/J12/J13 Pin 1) GND (J7/J8 Pin 1)

DT-AVR Application Note

DHT11 Temperature and Humidity Sensor Board Gambar 1 Blok Diagram AN196. 5V (Power) GND (Power)

DT-I/O DT-I/O. Application Note. Application Note AN193

DT-IO Application Note

DT-AVR. Application Note AN214

SPC Application Note. SPC IR Transceiver. Gambar 1 Blok Diagram AN159. RX (PORTD.0 J13 pin3 / J4 pin2)

EMS Application Note. 1x Kabel USB 1x Komputer (Memiliki wireless adapter, serta wireless network melalui router atau program Connectify)

DT-AVR Application Note

DT-AVR Application Note

WIZnet. Application Note AN178 Wireless IP Printer 1 Oleh : Tim IE

Gambar 1 Blok Diagram AN190. P1.0 (J3 pin 3) IN1 (J1 pin3) Tabel 1 Hubungan antar PC-Link Serial PPI dan DT-I/O Quad Relay Board12V

DT-51 Application Note

DT-AVR. Application Note AN213

WIZnet. Application Note AN179 Wireless IP Printer 2 Oleh : Tim IE

DT Series Application Note

DT-AVR Application Note

AVR Application Note AN95 Wireless Chatting with PC

DT-AVR Application Note

Starter Kit Application Note AN165 - Update Tampilan Character LCD Berbasis USB Flash Disk

DT-AVR. AVR Application Note AN160 Graphic LCD Dengan Bahasa C. Application Note AN160

STARTER KIT Application Note AN162 Web Scrapping Dengan GSM STARTER KIT

DT-Sense Current Sensor With OpAmp Gambar 1 Blok Diagram AN212

DT-51 Application Note

DT-ARM Application Note. AN221 Web Server I/O Remote

DT-AVR DT-AVR Application Note

PC-Link Application Note

Gambar 1 Diagram Blok AN215. DT-AVR Maxiduino DT-Proto Header Shield DT-I/O Level Converter

DT-AVR Low Cost Nano System. Gambar 1 Blok Diagram Remote TV Berbasis ATtiny2313. DT-I/O I/O Logic Tester

DT-AVR Application Note

DT-AVR Application Note

DT-AVR. DT-AVR Application Note AN207 Library USB Controller untuk Komunikasi Serial pada DT-AVR Inoduino

SPC SPC. SPC Application Note AN175 Bluetooth Mobile Robot. Application Note AN175

de KITS Application Note AN51 How 2 Use de KITS SPC Character LCD w/ PC

DT-AVR Application Note

PC-Link Application Note

Menampilkan nilai dari 8 kanal ADC ke Port Serial PC oleh Modul ST-51 dan AD-0809 V2.0

DT-AVR. DT-AVR Application Note AN208 Library USB Controller untuk Komunikasi Paralel pada DT-AVR Inoduino

How2Use DT-51 AT89C51XXX BMS. Oleh: Tim IE. Gambar 1 Tata Letak DT-51 AT89C51XXX BMS

asic Application Note AN97 BASIC Chatting

DT-51 Application Note

BAB III ANALISIS DAN PERANCANGAN

DT-AVR Application Note Monitoring Suhu Nirkabel (Bahasa BASIC)

BAB III DESKRIPSI DAN PERANCANGAN SISTEM

DT-SENSE Application Note AN168 Color Game. Gambar 1 Blok Diagram AN168

AVR Application Note AN187 Monitoring Suhu Nirkabel (Bahasa C)

Gambar 1 Blok Diagram AN217. DT-AVR Maxiduino DT-Proto Header Shield DT-I/O Level Converter

DT-AVR Application Note

DQI-03 DELTA ADC. Dilengkapi LCD untuk menampilkan hasil konversi ADC. Dilengkapi Zero offset kalibrasi dan gain kalibrasi

STARTER KIT Application Note AN157 Browsing Internet Via GSM STARTER KIT

DT-AVR DT-AVR ApplicationNote

FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA LAB SHEET (KOMUNIKASI DATA)

BAB IV ANALISIS DAN PENGUJIAN. Berikut ini adalah diagram blok rangkaian secara keseluruhan dari sistem alat ukur curah hujan yang dirancang.

DQI 06 DELTA DATA ACQUISITION INTERFACE V.06

Apllication Note AN155 Mini Reklame pada Graphic LCD 320 x 240

DT-AVR. Application Note AN192 - Web Based Temperature Monitoring System Oleh : Tim IE

DT-BASIC Application Note

Application Note. Adapun blok diagram secara keseluruhan adalah sebagai berikut: AN156 Touch Screen Panel Graphic LCD 320 x 240

DT-BASIC Mini System. Gambar 1 Blok Diagram AN132

SPC SPC. SPC Application Note AN181 - SPC for Hexapod Robot

DT-AVR. DT-AVR Application Note AN209 Library USB Controller with SPI Communication based DT-AVR Inoduino

DT-AVR DT-AVR. Application Note AN203

PC-Link Application Note

DT-51 Application Note

DT-51 Application Note

Gambar 3.1 Diagram Blok Alat

GPS Starter Kit Application Note AN GPS - GPS Navigator. Oleh: Tim IE

DT-AVR. Gambar 1 Blok Diagram AN177

DAFTAR ISI. ABSTRAK... i KATA PENGANTAR... ii DAFTAR ISI... iv DAFTAR GAMBAR... vii DAFTAR TABEL... x DAFTAR LAMPIRAN... xi

BAB III PERANCANGAN SISTEM. Di bawah ini adalah diagram blok Sistem. Mikrokontroler PIC 16F877A. Gambar III.1. Diagram blok sistem

DT-51Application Note

BAB III PERANCANGAN SISTEM. ATMega16

DT-51 Application Note

DT-51 Application Note

Konsep dan Cara Kerja Port I/O

DT-SENSE Application Note

Wireless Gamepad Interface

DT-AVR Application Note

BAB II LANDASAN TEORI

DT-AVR Application Note

DT-AVR Application Note

Gambar 1 Blok Diagram AN72. (a) (b) (c) Gambar 2 SPC Seven Segment (a), DT-51 Low Cost Micro System (b), dan DT-51 Low Cost Nano System (c)

Transkripsi:

DT-I/O DT-I/O I/O Application Notes AN164 Komunikasi Jarak Jauh antara 2 PC dengan RS-485 Oleh: Tim IE Komunikasi dengan RS-485 merupakan salah satu solusi yang dapat digunakan untuk pengiriman data jarak jauh dan memiliki kecepatan transfer lebih tinggi dari pada komunikasi RS-232. RS-485 tidak dibatasi untuk digunakan antara 2 devais saja, namun bisa dipakai untuk menghubungkan 256 devais yang membentuk suatu jaringan RS-485. Pada aplikasi kali ini, akan dicoba pengiriman data antara 2 komputer menggunakan komunikasi RS-485 dengan bantuan dua modul konverter RS-485. Modul ke-1 adalah DT-I/O USB to UART Converter dan modul ke-2 adalah DT-I/O NEO RS232 to RS485 Converter. Aplikasi ini memerlukan modul sebagai berikut: DT-I/O USB to UART Converter DT-I/O NEO RS232 to RS485 Converter Adapun blok diagram sistem secara keseluruhan adalah sebagai berikut : Komputer 1 (Port USB) Kabel USB DT-I/O USB to UART Converter RS-485 Line Komputer 2 (Port ) Kabel Cross Over DT-I/O NEO RS232 to RS485 Converter Gambar 1 Blok Diagram AN164 Gambar 9 Rangkaian Aplikasi AN164 Page 1 of 5

Hubungan antara modul-modul tersebut adalah sebagai berikut : DT-I/O USB to UART Converter TX+ (J11) TX- (J11) RX+ (J11) RX- (J11) DT-I/O NEO RS232 to RS485 Converter RX+ (J19) RX- (J19) TX+ (J19) TX- (J19) Tabel 1 Hubungan antara DT-I/O USB to UART Converter dengan DT-I/O NEO RS232 to RS485 Converter Kabel yang diperlukan untuk aplikasi ini adalah sebagai berikut : 1. Kabel USB. Kabel USB yang digunakan memiliki konektor tipe A untuk sisi yang satu dan konektor tipe B untuk sisi yang kedua. Kabel ini digunakan untuk menghubungkan modul DT-I/O USB to UART Converter ke port USB komputer. Konektor tipe A Konektor tipe B Gambar 2 Konektor USB 2. Kabel serial cross-over. Kabel serial cross-over yang digunakan minimal memiliki jalur TX, RX, RTS, CTS, dan GND. Konektor kabel serial pada sisi satu adalah konekror DB9-female, sedangkan pada sisi yang lainnya adalah konektor RJ11. 2. RX 7. RTS 3. TX 8. CTS 5. COM 1. CTS 4. TXD 2. RTS 5. RXD 3. COM DB-9 female dihubungkan ke komputer RJ11 dihubungkan ke DT IO NEO RS-232 to RS-485 Converter Gambar 3 Konektor Kabel 3. Kabel untuk komunikasi RS-485 digunakan untuk menghubungkan modul DT-I/O USB to UART Converter dengan DT-I/O NEO RS-232 to RS-485 Converter. Kedua ujungnya memiliki konektor RJ45, yang memiliki konfigurasi sinyal sebagai berikut: Konektor RJ45 1.- 5. - 2.- 6. TX+ 3. TX- 7. RX+ 4.- 8. RX- Gambar 4 Konfigurasi Sinyal RS-485 pada Konektor RJ45 Page 2 of 5

Catu daya DT-I/O USB to UART Converter dalam aplikasi ini difungsikan dalam mode bus powered (mengambil catu daya dari port USB), sehingga tidak perlu catu daya dari luar. Sedangkan DT-I/O Neo RS232 to RS465 Converter memerlukan tegangan +9 Volt sampai +12 Volt DC dari supply. Pengaturan Jumper Di kedua modul yang digunakan terdapat banyak jumper yang harus diatur. Jumper-jumper ini mengatur mode kerja dari masing masing modul serta pemilihan asal catu daya. Pengaturan jumper masing-masing modul sbb: 1. Jumper DT-I/O USB to UART Converter J8 J6 J7 J8 J4 J3 J9 3 3 3 3 3 3 2 2 2 2 2 2 2 1 1 1 1 1 1 3 Gambar 5 Konfigurasi Jumper DT-I/O USB to UART Converter 2. Jumper DT-I/O NEO RS232 to RS485 Converter Blok Jumper Jumper Posisi Jumper SELECT1 J2, J3, J4, J5 2-3 SELECT2 J13, J14, J15, J16 2-4 SELECT3 J8 2-3 J9 1-2 J10 2-3 SELECT4 J21 3-4 SELECT5 J6,J7 1-2 SELECT6 J1,J12 2-3 Tabel 2 Konfigurasi Jumper DT-I/O NEO RS232 to RS485 Converter Setelah pengaturan jumper dan catu daya selesai, langkah selanjutnya adalah menyiapkan interface program untuk komputer-1 dan untuk komputer-2. Program di aplikasi ini dikembangkan menggunakan Borland Delphi 7.0. Untuk membuat program di komputer-1 (terhubung ke DT-I/O USB to UART Converter), terlebih dulu harus dilakukan instalasi driver untuk IC FT232R (IC USB to serial) yang digunakan di modul ini. Driver yang digunakan adalah versi 2.04.06. Di versi ini, penggunaan DLL dan VCP (Virtual Com Port) untuk mengakses FT232R sudah dapat dilakukan secara bersama dalam satu komputer. Paket driver dan langkah instalasi ada di CD program DT-I/O USB to UART Converter atau bisa didapat di www.ftdichip.com Program yang dibuat di komputer-1 akan menggunakan VCP untuk mengakses modul, sedangkan program di komputer-2 menggunakan port serial untuk mengakses modul. Sehingga program yang dibuat di kedua komputer nantinya tidaklah sulit. Page 3 of 5

Flowchart program Program yang dibuat pada dasarnya adalah pengiriman data serial UART RS-232 biasa karena data yang diterima oleh komputer sudah dalam level tegangan RS-232 setelah dikonversi oleh masing masing modul. Start Rutin Tombol Open On RX Char Buka komunikasi serial Baca Data String Tombol Send di Klik? Ya Kirim string dari edit text Tidak Tampilkan string di memo Return Return Gambar 6 Flowchart Program Program yang dipakai di komputer kesatu dan komputer kedua adalah sama, tampilan program adalah sebagai berikut : Setting Komunikasi Buka komunikasi Tutup komunikasi Tombol untuk mengaktifkan pin RTS (khusus PC yang terhubung dengan DT-I/O NEO RS-232 to RS485 Converter menu ini harus diaktifkan) String yang akan dikirim Tombol untuk mengirim string Data yang diterima dari komputer lainnya Informasi keadaan port serial (open/close) Gambar 7 Tampilan Program Page 4 of 5

Aplikasi yang dibuat disini memang cukup sederhana, namun dapat dikembangkan lebih lanjut, misalnya menjadi sebuah aplikasi untuk akuisisi data jarak jauh memanfaatkan komunikasi RS-485. Sebuah contoh: DT-I/O USB to UART Converter DT-I/O NEO RS-232 to RS-485 Converter RS-485 Line MAX 1,2 km UART TTL to RS-485 Mikrokontroler On/Off Kontrol Sensor Gambar 8 Contoh Aplikasi Yang Lain Listing program terdapat pada file AN164.ZIP. Selamat berinovasi! All trademarks, trade names, company names, and product names are the property of their respective owners. All softwares are copyright by their respective software publishers and/or creators. Page 5 of 5