[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Controlling RFID reader.
From: |
iceyj21 |
Subject: |
Re: Controlling RFID reader. |
Date: |
Thu, 22 Jun 2017 00:43:40 -0700 (PDT) |
Heres my current code. its sending properly to the reader and the reader is
scanning tags, the issue now is getting octave to read the output from the
reader. using CuteCom i was able to check and make sure the reader actually
has an output, and it does. So the issue is receiving that output with
octave.
clc;
clear;
s3 = serial("/dev/cu.SLAB_USBtoUART",115200,2);
set(s3, "dataterminalready", "off");
set(s3, "requesttosend", "off");
tag = [];
pkt = [0xBB, 0x00, 0x08, 0x00, 0x00, 0x7E, 0x0B, 0x96];
auto_read =
[0xBB,0x00,0x38,0x00,0x05,0x02,0x00,0x00,0x00,0x00,0x7E,0x51,0x7A];
i=1;
j=1;
k=1;
while (i<9)
srl_write(s3,uint8(pkt(i)));
i = i+1;
srl_flush(s3);
endwhile
pause(1);
while (j<14)
srl_write(s3,uint8(auto_read(j)));
j = j+1;
srl_flush(s3);
endwhile
disp(pkt);
disp(auto_read);
pause(2);
while (k<52)
[tag(k)] = srl_read(s3,1000000);
k++;
endwhile
srl_flush(s3);
tag_hex = dec2hex(tag,52);
--
View this message in context:
http://octave.1599824.n4.nabble.com/Controlling-RFID-reader-tp4683794p4683854.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Controlling RFID reader., Joe Rodrigues, 2017/06/20
- Re: Controlling RFID reader., Doug Stewart, 2017/06/20
- Re: Controlling RFID reader., Kire Pudsje, 2017/06/20
- Re: Controlling RFID reader.,
iceyj21 <=
- Re: Controlling RFID reader., iceyj21, 2017/06/22
- Re: Controlling RFID reader., Doug Stewart, 2017/06/22
- Re: Controlling RFID reader., iceyj21, 2017/06/22
- Re: Controlling RFID reader., Doug Stewart, 2017/06/22
- Re: Controlling RFID reader., iceyj21, 2017/06/22
- Re: Controlling RFID reader., Andreas Weber, 2017/06/23