Shop OBEX P1 Docs P2 Docs Learn Events
SX and Web Server — Parallax Forums

SX and Web Server

John CoutureJohn Couture Posts: 370
edited 2005-08-24 20:32 in General Discussion
The datasheet for the SX 52 mentions "examples of Virtual Peripheral modules are ... Internet Connectivity protocols such as UDP, TCP/IP stack, HTTP, SMTP, POP3" ... (ref: 4, sec 1.3.1)

Does anyone know of an existing web server software package that can be downloaded into the SX?· (free would even be sweeter!)


John J. Couture
San Diego Miramar College.

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-17 23:33
    http://www.sxlist.com/techref/ubicom/virtperf.htm
    Scroll down for SX stack. Requires SX52.
    regards peter
    ·
  • John CoutureJohn Couture Posts: 370
    edited 2005-08-18 20:55
    Thank you Peter! That was perfect!

    John J. Couture
    San Diego Miramar College
  • Ken GraceyKen Gracey Posts: 7,401
    edited 2005-08-19 02:04
    Anybody ever made use of this application?

    Any working devices out there?

    Ken Gracey
    Parallax, Inc.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-19 07:33
    Ken,

    I have the SX-Stack Evaluation Kit, which has a SX52BD datecode AB0011AB,

    preprogrammed with iSX embedded webserver version 1.0.4

    (at sxlist.com is version 2.3.5)

    This does work using win98.

    There are a few support files (schematics etc.) that are not at sxlist.com

    I could upload this (total zipped is 2.53 MB)

    regards peter
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-08-19 11:21
    Several years ago, I tried to use an SX52 for sending automated eMails via SMTP containing the system status of an appliance to a server. I used a slightly modified version of the Ubicom (still Scenix at that time) sample code. In general, it worked. The only problem was that the code for handling the eMail stuff was so large that there was almost no free program memory for application-specific code. At that time, I was thinking of using two SXes, one handling the eMail part, and the other the applicaiton-specific tasks, using a simple protocol for the inter-SX communication. I never finished this application because my customer finally decided to use some other solution.

    IMO, the lack of enough free program memory was one of the reasons why Scenix/Ubicon developed the IP series of controllers then.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • John CoutureJohn Couture Posts: 370
    edited 2005-08-19 15:39
    Guenther,

    Do you think attaching additional I2C memory to the mix would solve the problem?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2005-08-19 20:19
    John,

    I don't think so. You can use a serial EEPROM to store tables or other contstants but no program code (unless you have some p-code interpreter running on the SX, like the BASIC Stamps do). Code for reading/writing the serial EEPROM, e.g. via I²C would "eat up" extra space in the SX program memory.

    To be honest, I did not focus on that topic since a long time - if there are others lurking with more practical experience please bail in and shere your opinions and experiences, you are welcome. This IS an interesting topic!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    Günther
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-19 21:53
    Took a little longer, because the sources from sxlist.com would not assemble

    using the latest SASM. In fact they contain errors: skip instruction followed

    by compound statements. I fixed those errors.

    Also found a appnote AN23 that describes a setup using a SX28 for UDP messages.

    I altered the iSXv1_0_4.src to make it assemble using a SX28, according to the

    schematic in the AN23 document. (iSX_udp_for_sx28 folder).

    At the Ubicom site, entering support,·the·documents describing the iSX and eSX

    sources are not available, and I could not find them at sxlist.com also, but they

    are, together with the fixed sources,·in the zips.

    Unzip both attachements to the same folder.

    regards peter
  • PJMontyPJMonty Posts: 983
    edited 2005-08-19 22:59
    Peter,


    Glad to hear the "Compound statment following skip" warning I added to the IDE paid off. I added that one day after working on a project where I got burned by that problem. This is one of the advantages of me using the SxKey IDE as well as writing it. If I was just a hired gun, I would never even know to add a feature like that, let alone get inspired (annoyed) enough to do it right then and there.
      Thanks, PeterM
  • James NewtonJames Newton Posts: 329
    edited 2005-08-20 01:27
    Thank you Peter.

    I've updated everything on the sxlist.com web page.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2005-08-20 06:34
    Thanks James.

    You may want to provide a link to the SX specific tcp/ip i/o page

    on the Virtual Peripherals page (at VP sx stack). I really had to

    search those updates.

    regards peter

    The link is already there, I just didn't see it.



    Post Edited (Peter Verkaik) : 8/20/2005 6:51:01 AM GMT
  • John CoutureJohn Couture Posts: 370
    edited 2005-08-24 04:50
    James and Parallax <

    James, on your opening page you have a link labeled "Intro to IO control with the SX Microcontroller" which links to to a Parallax document that is no longer produced (stock# 45402). I think Mr. Alvarez said that it is now incorporated into the new 3.0 manual (http://www.parallax.com/dl/docs/books/ExploringTheSx.pdf ) Unit 9, pg 135. Did I get all of the references correct so that you two can update the links (grin).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John J. Couture

    San Diego Miramar College
  • James NewtonJames Newton Posts: 329
    edited 2005-08-24 20:32
    Thanks for letting me know...I've removed the link

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



Sign In or Register to comment.