Byron A Jeff wrote: >This topic rolls in about twice a year. I always ask the same question >when I see this setup: Why a web server? I agree completely on this. I can understand why it can be perfect with=20 a web server for such things as a router or a copier machine. But for=20 most other stuff it would just be a lot of overhead. It is good as the=20 user already have the interface tools and know the comcept of links and=20 pages. This is also why our Very Simple Control Protocol (http://www.vscp.org)=20 has been developed Here we standardize on events (can be UDP=20 datagrams), registers (just as IC's have) and decision matrices. - A node can be configured by using a very simple set of register=20 read/write commands. - A node can give "information" to other devices by well specified events. - Decision Matrix entries can be added on a node that support them to=20 let the node handle events automatically (Event - Decision - Action). This works over differnet low level protocols. CAN, UDP, RS-232,=20 RS-485/422, USB etc. It's stupid and *very* simple but a fun way to make tiny little things=20 work together..... /Ake >On Tue, May 03, 2005 at 01:13:53AM +0100, kerrisnow@btinternet.com wrote= : > =20 > >>Here is my plan: >> =20 >> > >Sorry I'm late to the party. > > =20 > >>I would like to use the pic18f2455 to create a web server. I am not >>going to use ethernet or eeprom. I will connect it to my pc >>with the serial cable. The other end of the cable will connect to the >>serial port of the pic. The pc will connect to the pic with slip for th= e >>web server and with hyperterminal instead of the lcd of picdem.net. >>Does this sound o.k.? >> =20 >> > >This topic rolls in about twice a year. I always ask the same question >when I see this setup: Why a web server? > >I always ask the question because with the physical interface you specif= y >(serial/SLIP) there's no way to build a box that can connect to the=20 >Internet without a gateway. Now that's OK, but I always question the >utility of shoving an entire HTTP/TCP/IP/SLIP stack onto the PIC. > >The question is also generated based on objective. My objective when I >was looking at the problem was threefold: > >1) Leverage as much of the TCP/IP standard, which has tons of written an= d >tested code, as I could. > >2) Have the potential for true Internet connectivity. > >3) Keep new code/stack on the PIC as small as possible. > >This lead me to a UDP/IP/SLIP stack with a PC SLIP gateway. It's a proje= ct >that I put a couple of students on years ago, but never got completely >fleshed out. > >The one downside with my approach is that you do have to have custom=20 >software on the PC to receive and process packets. But I always looked a= t >it as having a big, easy to program PC, as opposed to as a more constrai= ned >PIC to work on. Also there are standard programs that can interface with >UDP ports. netcat for example can be found here: > >http://www.securityfocus.com/tools/137 > >With a tutorial here: > >http://m.nu/program/util/netcat/netcat.html > >As a linux guy a 5 second Google found this article for a framework for >UDP applications: > >http://www.linuxgazette.com/node/8758 > >As standard socket code, it should port easily. > >But again it depends of the objective. I wasn't looking at the Kewl fact= or >of having a webserver on a PIC. It may be a worthy goal if we're talking >Ethernet or PPP which can connect to the network standalone. But with SL= IP >which virtually requires a gateway, UDP seems to be the ticket for=20 >delivering content around the network with a PIC. > >BTW hyperterminal isn't going to get you where you want to go. You need = to >create a SLIP connection in your dialup networking, and use that to conn= ect. > >Just some thoughts. > >BAJ > =20 > --=20 --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergav=E4gen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 Company home: http://www.eurosource.se =20 Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.eurosource.se/akhe Automated home: http://www.vscp.org --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist