![]() |
Holy crap, check out the Dangerous Things store! |
RFID Proxmity Circuit |
Post Reply
|
Page <1 234 |
| Author | |
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.
|
|
![]() |
|
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: 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: 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: 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: 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 |
|
![]() |
|
Post Reply
|
Page <1 234 |
|
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 |