Shop OBEX P1 Docs P2 Docs Learn Events
PINK (Parallax Internet Netburner Kit) project — Parallax Forums

PINK (Parallax Internet Netburner Kit) project

CruxCrux Posts: 74
edited 2007-07-22 16:18 in BASIC Stamp
good day to all!

I need help,I am planning to propose a Classroom Attendance Management System for our school thesis. It will use BS2. I am planning to use the grand idea RF id.

What I want to happen is that I want to pass the data of the RF ID through the BS2 then into the PC and then records the time . I saw this PINK w/c I think is suited for the design but the problem is I am not familiar on what requirements or direction to do. I want to ask if is it possible to integrate it with PHP?here is a diagram how data flow.


USER (RF ID) ---> BS2 <
> PC (PHP) <----> INTERNET

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-21 17:27
    My understanding of PHP and ASP pages is that they require server side support. As this is an embedded web server with somewhat limited resources it does not have server extensions for things like this. It can host standard HTML pages and of course, JavaScript can be included since that is a client side execution anyway. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • QuattroRS4QuattroRS4 Posts: 916
    edited 2007-07-21 18:21
    1) Is PHP a requirement ?

    If not you don't really need the pink module - consider this -

    a)RFID reader to Stamp (serially I presume)
    b)Stamp serial connection to P.C
    c)Application running on P.C waiting on an Event (serial data received) - when it receives the data it appends a HTML file.
    d)Webserver running on P.C pointing to the log file.

    If this suits - I can knock together a quick and dirty app for the P.C ...

    Regards,
    Quattro

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Necessity is the mother of invention'
  • CruxCrux Posts: 74
    edited 2007-07-22 05:21
    I didnt really want to intend to make the PINK as a server but instead a client. As soon as the RF ID's data is sent by BS2 to the PINK device. I want it to pass the data to a server so it can log its information like attendance and etc.. I want it also to retrieve a data to from the server so that my design can check if its a valid user or not. So it possible that way?



    RF ID
    > BS2 w/ PINK <
    > Server (PHP)
  • Harrison.Harrison. Posts: 484
    edited 2007-07-22 16:18
    No, the PINK cannot act as a tcp/http client. It can, however, function as a SMTP client. So if you really wanted the PINK to push data to your server then you could make it send emails on every attendance event. In theory this would be fine as long as the attendance events are spaced out enough for the PINK to connect and send an email.

    What OS is your server running? If you are running linux then you could easily setup a mail server on it that redirects emails to a certain address to a shell script/php script. Then you could parse this email and get the date, time, and rfid tag id.

    The PINK really isn't suited for your purposes of client PUSH. I would recommend you look at other devices, namely devices that function as a serial to telnet interface. This will allow you to connect to a daemon on your server and communicate with a more reliable channel.

    Harrison
Sign In or Register to comment.