Web Server or a Data Base for Basic Stamp?
Goten
Posts: 70
I was looking for a web server for a basic stamp on google, and it takes me to Parallax and i saw a discontinued web server product.
If you know some web server or data base that can be connect directly to basic Stamp, please let me know. otherway i was thinking on program the basic stamp on visual Basic adn then link it to SQL ... it'll be really hardcore.
Best Regards.
Goten
If you know some web server or data base that can be connect directly to basic Stamp, please let me know. otherway i was thinking on program the basic stamp on visual Basic adn then link it to SQL ... it'll be really hardcore.
Best Regards.
Goten
Comments
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
I'm wondering if anyone could·link·a pbasic algorithm with a data base, like access, sql, etc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
Do a forum search for PINK. There is a lot of info already posted. As for your database connection, you will need to either program your database to accept info from a serial connection, or write a program that accepts info from a serial connection, then updates the database. If you explain exactly what you are trying to do, it would be easier to offer suggestions.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
I've been working with the PINK module for a month or so, and have found it to quite easy to work with.
Basically, the PINK has the rj45 ethernet connector that plugs into your router. A utility program allows you to see what address has been assigned to the PINK by the router's DHCP. ( or you can assign a static address).
The other connector is a serial port which allows the Stamp to load or read about 100 registers on the PINK module. By writing a short HTML web page, any of those registers can be read or modified from the Web.
For your project, the Stamp could certainly contain the card ID's for quite a large number of cards, assuming the decision was go/no go based on a card number. The Stamp could easily update the PINK to tell which cards had been active recently. AS well, with a bit of ingenuity, you could load a card number into the PINK from the Web, get the Stamp to read it and add it or remove it from the cards that are active.
You can have a look at a really simple web page running on the PINK by going to 142.167.67.191 the username is sci, the password is katomda
It is set to update the counter value every 5 seconds.
Cheers,
Tom
If you are currently focussing on the idea that the Stamp can somehow "directly" perform relational database functions, you might need a little more education in microcontrollers [noparse]:)[/noparse] The Stamp will have to communicate with a far more powerful machine for it's database access. Without external EEPROM, larger variable space, and magnitudes more horsepower, the best that should be expected of a microcontroller (ANY microcontroller) is to be able to perform lookups on an EEPROM based table (for us "average Joes" anyhow...).
Now, if you throw a PC into the mix for the database handling functions, the Stamp can easily act as the interface between it and the RFID and locking mechanism hardware...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
I'd make the protocol between your STAMP and the server as simple and economical as possible to cut down on the memory requirements of your STAMP code.
I need the Pink Module for That???
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
1. PINK serves the web page and a client responds.
2. PINK "GET"s some variables and sends them to the STAMP.
3. The Stamp sends its request to the PC via a serial interface.
4. The PC does the database thing.
5. The PC sends its response to the Stamp.
6. The Stamp updates the variables·to PINK·which "POST"s them to the web page.
If any of the previous steps (or transitions between the steps) is confusing, then perhaps some more education is in order.
HTH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
Post Edited (Tom Walker) : 1/31/2006 7:53:37 PM GMT
For Card Reads:
-Stamp Reads Card
-Stamp "asks" computer if card is valid
-Card IS valid(Via Comp db relation[noparse][[/noparse]mysql?])
--Stamp Opens Lock
--Computer FTPS to the pink and downloads auth.html
--Computer Amends to auth.html and ftps back to pink.. Pink now has accuarted auth info
For Add/Removal of cards
-Pink tells stamp to remove 14732463834
-Stamp tell comp to remove 14732463834
-Comp removes 14732463834
-Comp tells stamp 14732463834 is removed
-Stamp tells pink 14732463834 is removed
I will look into the pink's mime types
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
Do you know where i can find some information about this step "Card IS valid(Via Comp db relation[noparse][[/noparse]mysql?])"
I really need to learn that.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
1. Stamp sends serial message to PC like V123456. (validate number 123456)
2. PC program receives message and queries database.
3. Based on record count of returned dataset, PC either responds serially to Stamp with Y or N.
4. Stamp acts accordingly.
This is assuming very simplistic "one RFID reader" operation. A more complex (and robust) messaging system will need to be developed otherwise.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
·
SELECT * FROM users WHERE card="xxxxxxx";
·
If you get a result you know the·card exists.·
·
Look into SQL query syntax and it should become pretty clear
.
Post Edited (Orion) : 2/2/2006 3:11:35 AM GMT
Post Edited (Orion) : 2/2/2006 3:27:22 AM GMT
Example:
(B) = User At Browser
(B) POSTES on removeCard.html with the card number
(B) Is presented with a "do you really want to do this? Selects YES
(B) Is told to "Please wait for 30 seconds for the transaction(PC<->Stamp relations)
(B) After 30 seconds the page refreshes(First Refresh)
(B) Is told the operation is complete and the stamp resets the 2 used vars
THat's one page refresh
As far a mysql <-> PC communication one could write it in C w/ a serial component. It would be light and maybe even comand line
Post Edited (Orion) : 2/4/2006 12:03:02 AM GMT
····Right now·I am using pbasic to recognize the tag and·activate the lock,·my problem it·is that I do not know··how to accede to a database from·a bs2, i don't know if i could use the·Stamp Daq for excel, the module Pink or another thing. Help.
Thanx
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
To do so, you ONLY need to create a program, not to buy any other devices than the RFid reader, the automated lock and your PC.
This program will listen/talk through a serial port (COM1 or COM2 or ...).
The BS2 will be at the other end of the serial cable and that's all folks, you're done !
The stamps is waiting for a card...
The stamp reads a card (and tell the PC through serial line).
The PC then knows an RFID event happend, and wait for the ID number.
The stamp then tell the ID number to the PC.
The PC checks in the database.
The PC returns a status code to say 'ok' or 'no' (I suggest a beep to tell user " ").
The stamps is waiting for a card (and so on)...
This require a bit of programming langage other than PBASIC (such as java, c, etc..) and an adapted database (mySQL) and the SQL driver to interact with the database.
Interesting project, keep us informed !
++
PS. I dont know how commanded/automated locks work so I did not mention this aspect of your project.
PS². If there are only a few people who will use a RFid 'key', how about using a flat file '.txt' instead of all the database mecanic ?
Post Edited (Tibot) : 2/7/2006 10:00:52 PM GMT
I have played around with the database included in Borland's C++ Builder 3.0 Enterprise Edition and created a simple C++ program to make database inquiries. You would have to use a similar software development package for the PC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 2/7/2006 10:01:33 PM GMT
Basically you need to define what you’re trying to do in more detail, instead of us guessing.
i saw on internet (black box) a rs232 to rj45 converter. but i thought that i could use 2 rfid reader with just one bs2.
i really don't know to much about programming, i just had use pbasic... what you suggest?· Tibot said Java, Paul Bake Visual Basic... and others c++, think that i'm a newbie
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten
(D) = Door/RFID/BAsic Stamp/PINK contraption
(D) Gets RFID Scan
(D) (PINK) Sends udp message to computer via ETHERNET
PC does its database thing
(D) (Basic stamp) Listens for a new udp message on the pink
(D) (Basic stamp) If new udp is "Y" Opens Door, if not beeps loudly and annoyingly
I advise that you stick with the RS232 link with the stamp for now, it eliminates the need for purchasing the PINK module and simplifies the programming on both the Stamp and PC side. You want to make the first iteration of your design as simple as possible. Once you have that working like you want, you can then think about moving it to ethernet communications.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 2/10/2006 2:22:35 PM GMT
This may seem like a lot of work, but you will be much better served by the things you learn and the gratification of completing each of these tasks.
Good Luck!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 2/10/2006 5:44:24 PM GMT
Thank u Very much.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards from Chile
Goten