Shop OBEX P1 Docs P2 Docs Learn Events
ser2ftp.exe: Free Program for Stamp/Propeller-to-Website Transfer. — Parallax Forums

ser2ftp.exe: Free Program for Stamp/Propeller-to-Website Transfer.

Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
edited 2012-04-22 21:48 in General Discussion
I've written a program for the PC that I call "ser2ftp". With this program running, a connected BASIC Stamp or Propeller board can save data to the PC or upload it to a remotely-served website via FTP. This is a way to get real-time Stamp data onto the web without having to run a server locally — something that many ISPs do not allow — and without any additional external hardware.

ser2ftp handles several different kinds of files:
  • Text files: txt, htm, html, etc.
  • Binary data files: bin, dat
  • Image files: gif, jpg, png
Image files are generated using simple plot commands, akin to HPGL, as well as raw pixel data, such as might be obtained from an attached camera. Color depth can range from 2-bit black-and-white to 24-bit RGB color.

I've prepared a demo using a Parallax MoBoStamp-pe, along with a DS1620 temperature sensor. The MoBoStamp samples the ambient temperature each time it's reset by ser2ftp (every 15 minutes) and records the reading in a circular EEPROM buffer. It then uses the plot commands to generate a graph of the last 24 hours of readings, along with an html file showing the latest reading and the time it was taken. Both the image (gif) file and the html file are uploaded to my website by ser2ftp, which you can view here: www.phipi.com/ser2ftp. A photo of the device, along with the PBASIC program that generates the two files are attached below.

If there's sufficient interest, I plan to document ser2ftp and make it available for download.

Thanks,
Phil

Update (2007.01.11): I've attached the documentation below. If anyone would like to test the program, PM me with information about your proposed app, and I'll get back to you.
Update (2012.04.22): Attached is a zip with the .exe file, the documentation, and the Perl source.

Comments

  • aliniousalinious Posts: 51
    edited 2007-01-03 03:34
    Phil,

    I am definitely interested! I have been using serproxy running on a remote Linux box that I remote into over my network.

    The ability to upload the types of files you listed and impose data collected from a Basic Stamp (or any other microcontroller for that matter) into those files would give me the ability to further enhance my home built weather station.

    The three questions I have for you are as follows:
    • What programming language did you use to write ser2ftp?
    • If the interest is there, will the source code be made available.?
    • Referring to the question directly above, if the source is made available would you be willing to allow a port of ser2ftp to Linux?

    Thanks,
    Alan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I learn when I succeed, but I learn more when I fail."
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-01-03 04:21
    Alan,

    In answer to your questions:

    1. Perl.

    2. The source code will be released under the GPL, once it has stabilized.

    3. Of course!

    -Phil
  • stamptrolstamptrol Posts: 1,731
    edited 2007-01-03 12:56
    Phil,

    Definitely interested in what you're doing. If you need a beta test, let me know!

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • BeanBean Posts: 8,129
    edited 2007-01-03 15:16
    Phil,
    I'm interested in testing it too.
    What will be your policy for "For Profit" use ?

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com
    Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1

    "USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-01-03 18:20
    Bean,

    No problem with commercial use, so long as the terms of the GPL are honored.

    All,

    I've got some "real work" in front of me for a couple days, then I can finish some mods on the program. I want to implement a better "timeout reset", more in line with the cron system used by Linux. This will permit restart intervals that align better with time-of-day boundaries.

    -Phil
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-01-11 22:35
    All,

    I've posted the documentation in the top posting, along with notes about how to become a tester.

    -Phil
  • racheneyracheney Posts: 1
    edited 2012-04-21 13:22
    Is the ser2ftp.exe program still avaible?
  • WBA ConsultingWBA Consulting Posts: 2,935
    edited 2012-04-22 20:48
    I second the request. I had not seen this before and I gave up on a project a while back because I couldn't fill a gaping hole in the concept. This program would fill that hole.
  • Ken GraceyKen Gracey Posts: 7,401
    edited 2012-04-22 21:20
    Hey Phil, I'd be considered an interested party. I have a use for the application right now.

    You may remember a while back a program called Microwebserv from CS Microsystems. I think they're long gone, but it worked in a similar manner using the PC for connections to the internet. Was a great solution for me to use to check the temperature on my radiant heat boiler system [which used to throw itself into heat overdrive for some reason - I could have done a better control system with a BS2 at the time[.

    Ken Gracey
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-04-22 21:48
    Wow, it's been more than five years, and I'd completely forgotten having written that program. But I found it and have posted a zip in the top post that includes the .exe and the Perl source code. Use at your own risk! I mean, it does cause files to be written on the server, after all.

    BTW, if all you need is a way to get Propeller data to a CSV file on your local machine, consider using the Windows CSV File Server that I posted more recently here:

    -Phil
Sign In or Register to comment.