Shop OBEX P1 Docs P2 Docs Learn Events
Propeller As FTP Client — Parallax Forums

Propeller As FTP Client

jmwachteljmwachtel Posts: 12
edited 2011-03-01 12:23 in Propeller 1
I am needing to get a string of data updated every 15 seconds to an off site web server that will be processing the data. The web server can be setup with any protocol needed, but I was thinking FTP possibly to transfer the data. What do you guys think? Anyone had any experience doing something similar? Thank you,

Joseph

Comments

  • Heater.Heater. Posts: 21,230
    edited 2011-03-01 11:55
    No. FTP is to complicated for that.
    For just a few bytes every few seconds send them in a normal http request. Encoded into the url as parameters. Have a cgi script serve up that page and extract the data from the requests.
  • Heater.Heater. Posts: 21,230
    edited 2011-03-01 11:57
    Security is an issue though.
  • jmwachteljmwachtel Posts: 12
    edited 2011-03-01 12:08
    Security I think could be handled, any examples of this with the propeller? How do you even generate an http request from the propeller?
  • Heater.Heater. Posts: 21,230
    edited 2011-03-01 12:23
    Assuming you have some networking hardware connected to the prop, I have no idea about that, just open a connection to your web server and start sending it some strings. An http request is just a few lines of text. You will find descriptions, examples, tutorials about that via Google.

    The web server can pass parameters from within the request to a cgi script thst you write in the language of your choice.

    The cgi script is expected to output the html used as the response. You can keep that very simple.

    Fun part is that you can experiment with all this by manually telneting to your server, type in the request and see the response come back.

    Not sure how one would handle security. As it stands anyone could send any data into your server in the same way. Perhaps you need to encrypt the data in the request parameters plus salt plus checksum with a simple cipher like the TEA algorithm.
Sign In or Register to comment.