Shop OBEX P1 Docs P2 Docs Learn Events
a small question about a resembly program — Parallax Forums

a small question about a resembly program

ieSX52ieSX52 Posts: 15
edited 2005-05-28 03:15 in General Discussion
hi,Here is a part of a project which··uses SX52 as a web server by adding some Virtual Peripherals. The project is much the same as·"the iSX for SX52BD" . You can download the source files·from http://www.sxlist.com/techref/ubicom/lib/io/osi3/tcpip/isx_2_3_5.src.
There is a EEPROM (32K) can be stored web pages. But i don't know how to·calculate the hash of these pages.You can see·a segment below:

; *** HTTP Constants ***
·
; States for parsing HTTP headers
·
HTTP_PORT_MSB······ = 0· ; local tcp port number for HTTP server.
HTTP_PORT_LSB = 80 ;· "
·
HTTP_SEG_SIZE· = 1400
·
URI1············· = $81····· ; hash of "resource.htm"
URI2············· = $28·· ; hash of "emeter.htm"
URI3············· = $0c·· ; hash of "econtrol.htm"
URI4············· = $8d·· ; hash of "efamily.htm"

Can anyone help me?

Thanks,
Chally
·

Comments

  • CPUMANCPUMAN Posts: 55
    edited 2005-05-27 06:11
    I can't help you with hash, but I'm sure someone else can.

    But I'm really interested in this project, are you planning to provide any other information about it other then just the source code?

    Chris
  • ieSX52ieSX52 Posts: 15
    edited 2005-05-27 07:59
    Chris,
    you can see my post.i also give you the picture of my board named SX52 Embedded MCU for Protocol Solving Design.
  • ieSX52ieSX52 Posts: 15
    edited 2005-05-27 08:02
    oh,sorry,i have not post any picture ever.i can only post the picture of my board by using attachment manager.
    693 x 473 - 81K
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2005-05-27 16:51
    Hey Foxboy, I was just looking through the docs you posted...it mentions connecting the board directly to the card on the PC- does this mean that a cross-over cable is used? (Or do they swap the wires- I don't think that would be the case)-

    Also, how old is this board? They mention Windows 95/98 only, leads me to believe this is dated....

    Just curious, I have not seen this board, and I try to keep up on embedded devices products....

    Ryan

    EDIT: Just answered my own question- it looks like a cross-over cable is supplied with this kit...

    How has the kit been? (ie do you like it? problems?)

    Post Edited (LostboY) : 5/27/2005 5:02:31 PM GMT
  • ieSX52ieSX52 Posts: 15
    edited 2005-05-28 03:15
    Hey LostboY, you are right. i'd like to discribe the procedure of the project's performance to you. First you should download a assembly program to the SX by using the SX-KEY tool. This program is used to control SX to download some pages in the successive procedure. Then you must connect a cross-over cable to the board and download some pages to a EEPROM which can store 32K bytes.The third procedure is to download another assembly program to SX through which you can use your browser to see the content of pages that you download to EEPROM in the second procedure and control the states of some peripheral equipments like fanner module.

    Though they mention Windows 95/98 only,i have done it well on the windows XP.It uses SX52, i think it would be not old.

    What i want it to do is that it can be used as an embedded device.It can register on the residential gateway automatically once it is connected to.But i don't know how I can receive the information which come from SX and display it and how to use SX to send the information.And then i can control the devices connected to SX by UGI. Could you help me and give me some advice?

    Post Edited (Foxboy) : 5/28/2005 3:51:42 AM GMT
Sign In or Register to comment.