Web server modules
Orion
Posts: 236
I'm currently looking for a web server for a basic stamp project.· Has anyone used the SitePlayer from www.siteplayer.com or any others?· There doesn’t seem to be a lot of examples out there interfacing the basic stamp to web pages.·
·
·
Comments
http://www.parallax.com/detail.asp?product_id=30005
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
BTW.. BS2 memory is full after 3 months and the BS2p is coming tommarow
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
You can bounce your SitePlayer questions to me offline (because the
SP is a competing product) if you'd like.
A few points to make:
- The SitePlayer (SP) uses an 8051 from Phillips.
- You have about 48K of memory inwhich to put your web pages,
- Webpages can not be changed on-the-fly.
- The SP can not be "programmed" in the sense of a procedural
- Data from UDP packets, web page forms, and URLs can be sent
- Data can be written/read via commands on the serial (usually the
- UDP packets can be sent from the SP from commands on the serial
- I like to think of a SP as a whiteboard that can be written/read to
I've been playing er, tinkering with them since they started shippinggraphics files, and Java applets.
language like C or Java nor assembler.
out the serial port or the I/O bits.
way to interface your h/w's CPU)
port.
from both the web interface and the serial port.
so fire away with your questions. They're pretty useful if you understand
their limitations.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
If so can you access your serial port thru php code?
If this was an IIS server I would code an asp page to create your web page and have it talk to the stamp for your control items.
··
·
My question is not really siteplayer specific. Just wondering what was available and any opinions anyone had on them.· Basically I'm looking for something that can generate a web page with the following:
·
Read Address
(text box)
Read Result
(text box)
·
Write address
(text box)
Data
(text box)
·
Submit button
·
No pictures, graphics of any kind, less html the better.· Then use php on my web server to pull in these pages and create the final web page.· The Basic Stamp polls the web module for changes. If a read address is found retrieve the data @ that location from external memory and pass it to the web server module which will generate the something like the above.· With php I use query strings to set vars?
Example
·
http://xxx.xxx.xxx.xxx/sample.spi?ReadAddress=F0F0
or
http://xxx.xxx.xxx.xxx/sample.spi?WriteAddress=F0F0&data=0CB0.
·
This is what I’m trying to accomplish at least, yet not sure as to what modules are best suited for this. This way if I have a need for multiple stamps, everything is coming on TCP/IP and easily transported since I have cat5 and wireless everywhere @ home.· Also I have so many variables now that none of these modules will be able to create the complex pages wanted.· I have a web server now that works with 4GB of pics now why bother these simple machines with complex page creation.·
·
As for the web server DonR, it is running Apache with PHP/MySQL and is local.· I will probably end up using a serial connection if this will not work over TPC/IP.· I can see in the future having them in a remote location with dial-up to connect to my home.· PHP as far as I know cannot connect to the serial port, I could be wrong though.
·
Siteplayer, which you already have. This should easily do what you want.
Xipher - www.xipher.com (alas, it appears that they've changed their website
to something less useful)
TINI - but this could be total overkill www.maxim-ic.com/TINIplatform.cfm
Rabbit - rabbitsemiconductor.com/
and here's an interesting board I just found:
microcontrollershop.com/product_info.php?cPath=98&products_id=558
It's a Microchip PIC Ethernet Board.
Poke around some more, I'm sure you'll find something that may suit you.
-Rusty-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
I want to send serial data from the stamp to siteplayer and have siteplayer display it on my siteplayer HTML page.
I know this must be unbelievably simple but I'm lost.
Do you know what I need to do on the siteplayer side? is there an object associated with receiving serial data?
Thank you so much for your help, I'm having such a rough time with this.
Charles
http://www.easyvitools.com/articles/webscript.html
Good luck!
Karl
Charles,
If you're expecting the Siteplayer to simply capture whatever you put onto
its serial port then you will be sorely disappointed since the SP is not capable
of this. For data via the serial port to be put into SP objects you'll need to
enter this data with SP serial commands as explained in the documentation.
For instance, to set an SP object at address $0123 that's been declared to be
a two-byte integer with a value from your BS (say $5678), you'll need to send
the following byte stream from your BS to the SP:
$91 $23 $01 $78 $56
$91 --> WriteX cmd. (use 2-byte address for destination) $90 + 2 (bytes to write) - 1
$23 --> LSB of the address
$01 --> MSB of the address (oh, MSB/LSB -> Most/least Significant Byte)
$78 --> LSB of the data (or [noparse][[/noparse]data AND $00ff] )
$56 --> MSB of the data (or [noparse][[/noparse]data AND $ff00] / 256 )
It will probably look something like this in PBASIC for a BS2:
Further Siteplayer questions can either be sent to me directly or you're welcome
to join the Siteplayer group on Yahoo.
Apologies for the ugly PBasic. I'm not THAT fluent and I'm currently rebuilding a
PC and haven't installed the Parallax nor Siteplayer software/documentation yet.
If the T9600 value doesn't work, lemme know and I'll do a "Jon" and wire up a
Siteplayer with one of my BS2's for you and get you all the details, from PBASIC
code to wiring diagram.
Not a problem.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking
Post Edited (Fe2o3Fish) : 12/5/2004 5:35:10 AM GMT