help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling RFID reader.


From: Andreas Weber
Subject: Re: Controlling RFID reader.
Date: Fri, 23 Jun 2017 08:38:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Am 22.06.2017 um 10:48 schrieb iceyj21:
> ans = [](1x0)
> this is the output its giving. So its not receiving any data when trying to
> read.

You don't have to loop over an vector to send it with srl_write. Just do

srl_write(s3,uint8(pkt));

Same for srl_read which reads until the given chars are received (most
of the time you'll know how much bytes will be in the answer) or a
timeout occours.

For this basic debugging I suggest you make a hardware loopback between
RX and TX:
Disconnect your reader from the SUB-D 9-pol and make a wire connection
between pin 2 and 3.

If your octave code is fine you'll now receive the same bytes as sended.
When this works reattach your RFID reader...

-- Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]