Forum Sains Indonesia




*
Selamat datang, Pengunjung. Silahkan masuk atau mendaftar. Apakah anda lupa aktivasi email?
Mei 24, 2012, 09:56:57 AM

Masuk dengan nama pengguna, kata sandi dan lama sesi

Artikel Sains

Aku Cinta ForSa

  ForSa on FB  ForSa on Twitter

Pranala Luar

ShoutBox!

Last 10 Shouts:

 

haman11

Hari Ini jam 08:11:34 AM
ada yg tauproses daur ulang urin pada cicak gk ? ;)
 

GhostInMachine

Kemarin jam 03:52:17 PM
kk mau tanya cara upload Tulisan dong??
 

army.fice

Kemarin jam 12:22:47 AM
sepi banget sih :(
 

lustforscience

Mei 22, 2012, 08:26:02 PM
amin
 

exile_rstd

Mei 22, 2012, 08:24:55 PM
offline....
good night all  ;)
 

exile_rstd

Mei 22, 2012, 08:23:08 PM
iyaaaa jumat saya mau ujian kenaikan kelas. doain ya om Farabi, semoga ujiannya lancar dan dpt nilai memuaskan  :D
 

Farabi

Mei 22, 2012, 08:20:37 PM
KMana aja non? Sibuk belajar?
 

exile_rstd

Mei 22, 2012, 07:44:23 PM
argh lama ga buka forsa, comment di beberapa thread jd membingungkan saya. apa karena udh lama ga asah ya...
 

N E R R O

Mei 20, 2012, 07:41:57 PM
udah lama gak mampi ke forsa, sdh banyak berubah
 

bangnono_swedye

Mei 20, 2012, 05:23:03 PM
pertanyaa2 ane di forum kesehatan cuma2 diliaat2in aj, kagak ada yang komen ato ngasih jawaban :'( kebiasaan di forsa kah..?? :'(

Show 50 latest

Penulis Topik: ASK USB RFID Protocol  (Dibaca 940 kali)

0 Anggota dan 1 Pengunjung sedang melihat topik ini.

Offline shu

  • Siswa Baru
  • *
  • Tulisan: 1
  • IQ: 1
    • Lihat Profil
ASK USB RFID Protocol
« pada: Agustus 19, 2011, 08:56:23 AM »
Hi All, salam kenal..
ada yang tau ga? gimana caranya baca data yang dikirimin RFID yang colokannya USB murni ke komputer. soalnya saya ingin program yang saya buat bisa mengakses RFID tersebut.
RFID yang saya pakai adalah RFID SCL010 R/W
Program yang saya gunakan untuk membuat programya adalah QT SDK by Nokia

Mohon bantuannya ya..
maaf kalo ada yang ga jelas :)

Online Farabi

  • Profesor
  • *****
  • Tulisan: 2584
  • IQ: 167
  • Gender: Pria
  • Self-Proclaim Judge. All hail safirot.
    • Lihat Profil
Re: ASK USB RFID Protocol
« Jawab #1 pada: Oktober 20, 2011, 08:35:58 AM »
Coba liat disini http://en.wikibooks.org/wiki/Serial_Programming/USB ini adalah standard USB Device, mungkin anda bisa dapat perintah perintahnya disini. Saya juga masih cari info.
Informasi yang aku anggap menarik
http://farabinewsnow.blogspot.com/

Saya Indonesia ASLI.

Online Farabi

  • Profesor
  • *****
  • Tulisan: 2584
  • IQ: 167
  • Gender: Pria
  • Self-Proclaim Judge. All hail safirot.
    • Lihat Profil
Re: ASK USB RFID Protocol
« Jawab #2 pada: Oktober 20, 2011, 12:03:24 PM »
http://www.beyondlogic.org/usbnutshell/usb3.shtml

RS-232 memang seringkali tidak standard,tapi pada umumnya mempunyai tipe struktur peta data seperti ini

Sync

All packets must start with a sync field. The sync field is 8 bits long at low and full speed or 32 bits long for high speed and is used to synchronise the clock of the receiver with that of the transmitter. The last two bits indicate where the PID fields starts.
PID

PID stands for Packet ID. This field is used to identify the type of packet that is being sent. The following table shows the possible values.

Group   PID Value   Packet Identifier
Token   0001   OUT Token
1001   IN Token
0101   SOF Token
1101   SETUP Token
Data   0011   DATA0
1011   DATA1
0111   DATA2
1111   MDATA
Handshake   0010   ACK Handshake
1010   NAK Handshake
1110   STALL Handshake
0110   NYET (No Response Yet)
Special   1100   PREamble
1100   ERR
1000   Split
0100   Ping

There are 4 bits to the PID, however to insure it is received correctly, the 4 bits are complemented and repeated, making an 8 bit PID in total. The resulting format is shown below.

PID0    PID1    PID2    PID3    nPID0    nPID1    nPID2    nPID3

ADDR

The address field specifies which device the packet is designated for. Being 7 bits in length allows for 127 devices to be supported. Address 0 is not valid, as any device which is not yet assigned an address must respond to packets sent to address zero.
ENDP

The endpoint field is made up of 4 bits, allowing 16 possible endpoints. Low speed devices, however can only have 2 additional endpoints on top of the default pipe. (4 endpoints max)
CRC

Cyclic Redundancy Checks are performed on the data within the packet payload. All token packets have a 5 bit CRC while data packets have a 16 bit CRC.
EOP

Jadi sebelum mengirim data anda harus memberi tahukan dulu dengan cara mensingkronkan detak antara prosesor dan antara device, setelah singkron baru data bisa dikirim. Untuk mensingkronkan biasanya dikirimkan bit 1 sepanjang 8 kali diikuti bit 0, setelah itu baru data berikutnya bisa dibaca karena device tahu kapan waktunya untuk mengambil data.

 

Copyright © 2006-2011 Forum Sains Indonesia