![]() |
Holy crap, check out the Dangerous Things store! |
RFID Proxmity Circuit |
Post Reply
|
Page 123 4> |
| Author | |
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2061 |
Post Options
Thanks(0)
Quote Reply
Topic: RFID Proxmity CircuitPosted: 06 May 2011 at 10:15am |
|
The reader's RF range is 350mhz but you're only concerned with reading the voltage levels of the data coming from the shunts you've inserted between microprocessor and RS232 conversion circuitry. Your 50mhz scope should have plenty of horsepower to sample the serial communication signals between STAMP and reader.
|
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Jeff_5_7
Newbie
Joined: 12 July 2010 Location: texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 May 2011 at 8:17pm |
|
Dont think my o scope is going to help much. Its older and says 50mhz the reader runs at 350mhz so i dont think it will work.
|
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2061 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 May 2011 at 11:45am |
|
Hmm, what does the o-scope say about the TTL voltage levels you're shunting?
|
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Jeff_5_7
Newbie
Joined: 12 July 2010 Location: texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 May 2011 at 2:42pm |
|
no luck. At baud rate 84 the only thing i get is a little y every-time. At baud rate 9600 it just prints random letters and numbers nothing consistent and if i have the serial cable hooked up to the rs232 all it will print is little c.
|
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2061 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 April 2011 at 11:24am |
|
Projects are always harder than you first think they will be. That's the only constant in life :)
It looks to me like the code you're using is not ideal because it's looking for a fixed 8 byte output from the reader. Unless the firmware has changed since I first reviewed it, the length of event packets output by the RF9315R is not fixed, it changes with RSSI value. First, download the Parallax STAMP programming manual. Page 397 of the PDF (page 393 in print) is the start of the SERIN command details section. Since the RF9315R outputs each data tag ID and RSSI value packet followed by a space, I think you'll want to modify your SERIN command to include a "end character"; SERIN 1,84,[STR TagID\7\" "] You'll notice I also decreased the size of the byte array input from 8 to 7. This leaves room for the STR formatter's use of the end-of-string char (ASCII 0 or NULL). Because RSSI values max out at 3 bytes in length, 7 is enough to store tag ID and the longest possible RSSI value. The nice thing is that it will automatically terminate the SERIN command upon receipt of a space character. This allows you to easily handle variable length input without looping and shifting your data frames in a fixed length SERIN command when RSSI values are less than 3 characters. Give that change a try and post the new output values. Also, try outputting the captured data using STR instead of HEX (DEBUG STR TagID(0), CR). Post the output you're getting and we'll see if it looks anything like normal data. Don't quote me on this, but you might be able to just use DEBUG STR TagID, CR (with no index on the array) and DEBUG should output the entire array on one line. Give it a try and post your outputs. |
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Jeff_5_7
Newbie
Joined: 12 July 2010 Location: texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 April 2011 at 7:18pm |
|
Anymore input on this Amal? Im stuck i never dreamed it would be this hard to get my tag id and rssi value out and into my micro controller.
|
|
![]() |
|
Jeff_5_7
Newbie
Joined: 12 July 2010 Location: texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2011 at 4:18pm |
|
i have it running on one pc in hyper terminal and i have the basic stamp running on another pc. It runs in hyper terminal no matter what. I am trying to get the ttl data out as its running in hyperterminal. The only reason i keep it running running in hyper terminal is to make sure the reader is still working. I dont know how to get the data out via rs232 other than hyperterminal. This is what i got running it 3 times.
3C 3C 38 38 3C 3C 3C 38 00 1C 63 1C 1C 1C 63 1C 1C 00 1C 63 1C 63 1C 63 1C 63 00 |
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2061 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2011 at 3:10pm |
|
Can you also post some sample output?
There may also be a chance that the signal level is dipping due to the shunt. The TTL data signal coming from the microproc on the reader may not have enough current to communicate with your basic STAMP and it's own internal RS232 conversion circuitry. This may cause a dip in TTL voltage that results in gibberish. Can you connect the RS232 port on the reader up to a PC and see if data is still making it out of the reader via RS232? If you could post output from the RS232 port along side the data you receive from the STAMP for the same event, that may help shed some light. |
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Jeff_5_7
Newbie
Joined: 12 July 2010 Location: texas Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2011 at 2:52pm |
|
This is all i am u sing a very simple program. But my result are not consistent. I was told the data is 8-N-1 8 data bits 1 stop bit.
' {$STAMP BS2} ' {$PBASIC 2.5} TagID VAR Byte(8) SERIN 1,84,[STR TagID\8] DEBUG CR DEBUG HEX2 TagID(0), CR DEBUG HEX2 TagID(1), CR DEBUG HEX2 TagID(2), CR DEBUG HEX2 TagID(3), CR DEBUG HEX2 TagID(4), CR DEBUG HEX2 TagID(5), CR DEBUG HEX2 TagID(6), CR DEBUG HEX2 TagID(7), CR DEBUG HEX2 TagID(8), CR END |
|
![]() |
|
amal
Admin Group
Joined: 22 November 2005 Location: United States Status: Offline Points: 2061 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 April 2011 at 1:39pm |
|
The tag ID is more than 8 bits long, EM4102 tag IDs are 40 bits in length. Can you post your code or BS2 file?
|
|
|
Amal ;)
www.amal.net |
|
![]() |
|
Post Reply
|
Page 123 4> |
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |