a small question about a resembly program
ieSX52
Posts: 15
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
·
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
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
you can see my post.i also give you the picture of my board named SX52 Embedded MCU for Protocol Solving Design.
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
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