Dipak Prasad writes:
 > I am about to start playing with the Olimex EW2 board (waiting for it to 
 > get delivered) and the mspgcc tcpip port.  Is there an example available to 
 > POST data to the MSP430 web server so that I can control the MSP430 via its 
 > own web server.  I believe that the tcpip  port available defaults to a GET 
 > operation.  How involved would it be for me to implement a POST operation, 
 > any pointers will be appreciated since I have not done any tcp/ip 
 > programming.

You don't really need POST, unless you're going to be uploading
largish forms full of text.  GET with a URL of
http://192.168.0.30/foo?a=b&c=d&e=f are eminently usable.  If your
HTML doesn't specify POST, the web client will format the form values
into a=b, c=d, and e=f as needed.  On the EW2 end you'll have to undo
the encoding, but no biggie.

IMHO, the example web server for the EW2 is a piece of crap.  Once I
figure out how to upload code (compilation is working fine), I'm going
to start working on a vastly improved version.  Wishlist:
  o configurable assignment of buttons to functions.
  o sensing of the four opto-isolated inputs.
  o control of the two relays
  o control of the beeper
  o control of the status light.
  o ability to send stuff to the LCD.
  o 1-Wire code, so you can read a temperature ibutton from the web.
  o telnet server for the serial port.

The idea is to make it useful out of the box, without *needing* to do
any development.

Also, the EW2 really, really really needs a BOOTP client.  DHCP would
be better, but BOOTP at a minimum.

It also needs to use a locally-assigned Ethernet address
(02:03:04:05:06) rather than a multicast address (01:02:03:04:05).  It
would be much better if the Olimex folks had bought an OUI, but I
guess they haven't.

-- 
--My blog is at angry-economist.russnelson.com  | I'm giving a short
Crynwr sells support for free software  | PGPok | talk at WTF, Isen's
521 Pleasant Valley Rd. | +1 315 268 1925 voice | stupid net conference:
Potsdam, NY 13676-3213  | FWD# 404529 via VOIP  | http://stupidnet.com

Reply via email to