Shop OBEX P1 Docs P2 Docs Learn Events
Web-based control panel for Basic Stamp II — Parallax Forums

Web-based control panel for Basic Stamp II

DSD TechDSD Tech Posts: 1
edited 2007-08-16 17:12 in BASIC Stamp
I'm very new to all this, in fact I just received my kit today.· This may seem a bit ambitious for a beginner, but I love a challenge.· One of the projects I want to attempt has one central controller with a few satellites.· The main controller then connects to a network.· I was wondering how I would go about embeding an asp.net web app to dynamically program the stamp modules.· A perfect example of what I'm looking to acheive eventually is the web-based interface found on routers.

Any ideas on where I should begin to look?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-08-16 16:16
    You will have problems doing this if you have only a BS2 because of the single 2K "slot" available for a program. The other Stamp models have more than one 2K "slot" and you can make your own download protocol that allows a program in one "slot" to write a 2K program into another "slot", then executes it. You'll need error checking of some sort. Have a look at some of the old file transfer protocols for serial connections like XMODEM, YMODEM, ZMODEM, and KERMIT. You can probably find descriptions via the Wikipedia (web search for "wiki xmodem", etc.)

    Read the sections in the Basic Stamp manual on the READ, WRITE, STORE, and RUN statements.
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-08-16 17:12
    Hi DSD Tech, there are people on these forums whose networking knowledge far exceeds mine but for experimentation I did at one time have 2 Stamps on two seperate computers exchanging information via a webserver (SOAP).

    I had 2 small Visual Basic apps a sender and a receiver that each had a serial connection to a Stamp. The paramaters from the sender I·passed to a function on the server. There was another function on the server that passed the paramaters to the second Stamp at the receiver end.

    At the time I had never thought about what Mike has suggested. Using slots to run different programs opens a bunch of possibilities.

    There may be better ways to do it but I found it surprisingly easy with my limited knowledge of networking.

    Getting familiar with the BS2's SERIN and SEROUT commands will help you understand how the Stamp passes information from one device to another.

    Jeff T.
Sign In or Register to comment.