Full Duplex Serial Plus -- Memory Storage Management
172heavy
Posts: 55
Hello! It has been a while since I have had the pleasure to develop with my propeller, I am still fairly green so these may be basic questions please go easy.....
1. Full Duplex Serial Plus Object--I am trying to receive a 6digit decimal value for some reason it keeps truncing anything over 5 digits or dec value of 65535. I am assuming that the buffer size is the issue i see the [16] where the variable size is declared. Is this the size of the buffer? If so why can't i make it larger? If i can how do i do this?
**************I figured number one out, I told you guys it had been a while...the variable I was using to store the value was declared as a WORD! So it makes sense that the value of the ID was limited to 65535*********************************
2. Can i use the Memory Storage Management Obj to store data on the prop EEPROM? I only need to store approx 50 to 75 6 digit numbers. I need to compare them to the RFID value the a card or FOB id presented.
This is solved. I used the propeller EEPROM object. Thanks for the feedback!
If there is an easier way I am all ears...... I am going to go back through the PE kit tonight and brush up.
Thanks.
1. Full Duplex Serial Plus Object--I am trying to receive a 6digit decimal value for some reason it keeps truncing anything over 5 digits or dec value of 65535. I am assuming that the buffer size is the issue i see the [16] where the variable size is declared. Is this the size of the buffer? If so why can't i make it larger? If i can how do i do this?
**************I figured number one out, I told you guys it had been a while...the variable I was using to store the value was declared as a WORD! So it makes sense that the value of the ID was limited to 65535*********************************
2. Can i use the Memory Storage Management Obj to store data on the prop EEPROM? I only need to store approx 50 to 75 6 digit numbers. I need to compare them to the RFID value the a card or FOB id presented.
This is solved. I used the propeller EEPROM object. Thanks for the feedback!
If there is an easier way I am all ears...... I am going to go back through the PE kit tonight and brush up.
Thanks.
Comments
Can i just say that if you had a Forth running that this would be such a trivial matter and that it would take longer to ask than it would take to write and test.
What is Forth? I will follow your link.
Can you describe Forth is 25 words or less? Or maybe a few more?
But what is it all about?
I am actually using an RFID reader from RFIDEAS it is the PC prox, it is sending the data in decimal format I have set up the reader to send only the Card ID number and a CR. The id numbers are 5 to 6 digits long.
I would be interested in learning a little about FORTH I went to your website and it looks quite interesting. The project is pretty basic.
1. Enroll Cards- I plan to have a jumper on the board to trigger a method that will save all ID's which are scaned to a list of approved cards.
2. Read Cards-Each card that is presented to the reader will be read and have it's ID compared with the enrollment list. If approved go to step 3....
3. Send output to close relay which will bypass--or simulate--the pressing of the switch on the garage door opener that we use to control the gate to access the facility.
4. I will probably integrate some LEDs for good and bad scans or non authorized cards etc.
I loaded TACHYON on my prop chip and I am following your tutorial on the link you provided. I am using the Prop Serial Tool, each time I press the space bar it acts like I enter the CR key and replies with ???, I wonder if this is an issue with the TERM or what?
If you are using Windows then try the open-source TeraTerm, it's really good. On LInux I am using Miniterm. But yes there is a problem with your terminal by the sounds of it though I have never used this software.
You know that you can use an indicator LED as a "button". Also you could have a "master" card which is always recognized and toggles the enrolment mode or in combination with a "button" or two then also removes certain cards. But that sounds like a very primitive way to do it as I would just have one of my Bluetooth serial modules embedded with the Prop and communicate to the unit via a laptop or tablet or phone to program and configure it.
While over on the "Spin Improvements" thread they are arguing about whether we should even have a language (in this case spin) that doesn't have a MAKE file, OMG. And here Peter is gonna start a FORTH riot by acutally helping people in the trenches get'r done.
Good on you Peter. 25 words, kinda verbose for you isn't it :-/
Here is a far more verbose version I wrote while munching my bagel and sipping my espresso, but it's a complete ready to go turn-key solution. When I get some time I will load it in and check it out with the Parallax RFID reader.
EDIT: I have just tested this out using the normal console serial input and outputting the beep and relay to the demo board's LEDs. Works like a charm. Uncomment the 2nd line of MAIN if you want to do the final test with a RFID reader.
Are you running Tachyon SRLM? Inquiring minds want to know. Would be nice to see you join the FORTH wrecking crew.
dp
Dave,
I will post the code as soon as I get it organized, I am not a programmer so I tend to use alot of the demos and modify them for my projects. Currently I have been testing this in a very unorganized way and I would be embarrased to post what I have.
Thanks for the Offer.
I'm not familiar with the Memory_Store object, so I can't really comment on how that works. I usually use the basic_i2c_driver object to do what you want to do. What I would do is create an array of your stored values in a DAT section, and then overwrite their locations in the EPROM image to save them. This way you don't even have to explicitly read them from EEPROM. The values will just be there when you boot from EEPROM.
Thanks Dave, I'll have a look at the basic_i2c_driver object and see if I can make it work. I appreicate the help!
Have a great weekend.
Josh
I actually plan on loading the code that you posted. I am interested in learning about Forth. I wanted to figure out the issues I had with spin first. A lot of what I do is to satisfy my hunger for knowledge and to learn about different technology etc.