please dont rip this site

Question:

I would like to know what's necessary to make a SX52BD demo board visible all over the Internet and not only by the local network.

I've already tried the following:

  1. . I gave a static IP to the board.
  2. . Loaded the SX device using iSX for SX52BD
  3. . Loaded the SX device with html pages (index.html).
  4. . I connected the SX device to the web server host of my LAN using a hub to do that
  5. . I went to the browser and type the following: http://<IPaddress>/index.html

Anyone have any idea what's wrong?

Answer:
Author: Stephen Holland
Date: 08-10-2001 06:22

  1. . Upgrade your source code, as this will ensure you have the latest bug fixes (go to http://www.sxlist.com/ubicom/lib/io/osi3/tcpip/isx_2_3_5.src
  2. . You may need to setup the default gateway. The following code is what you need:

Insert the following snippet of code just before the main loop in the program.

---------------- 

; obtain and store gateway MAC addr 
; send a dummy packet to the gateway so that ARP can do its 
; work and ferret out the gateway's MAC addr 
_bank IP_BANK 
mov remoteIP3, #GATEWAY_IP_ADDR3 
mov remoteIP2, #GATEWAY_IP_ADDR2 
mov remoteIP1, #GATEWAY_IP_ADDR1 
mov remoteIP0, #GATEWAY_IP_ADDR0 
_bank UDP_BANK 
clr udpTxDataLenMSB 
clr udpTxDataLenLSB 
call @UDPStartPktOut 
call @UDPEndPktOut 

:initLoop call @NICWaitRxFrame 
call @ARPCheckIfIs 
jb arpFlags.ARP_RSP_RCVD, :gotIt 
jmp :initLoop 

:gotIt ; store the MAC addr for posterity 
bank ARP_BANK 
mov w, host1Eth0 
bank GATEWAY_BANK 
mov gatewayEth0, w 
bank ARP_BANK 
mov w, host1Eth1 
bank GATEWAY_BANK 
mov gatewayEth1, w 
bank ARP_BANK 
mov w, host1Eth2 
bank GATEWAY_BANK 
mov gatewayEth2, w 
bank ARP_BANK 
mov w, host1Eth3 
bank GATEWAY_BANK 
mov gatewayEth3, w 
bank ARP_BANK 
mov w, host1Eth4 
bank GATEWAY_BANK 
mov gatewayEth4, w 
bank ARP_BANK 
mov w, host1Eth5 
bank GATEWAY_BANK 
mov gatewayEth5, w 
; reset ARP 
clr arpFlags 
setb arpflags.ARP_BYPASS ; we want to direct pkt to gateway from hereon 
out 

; main program init  
 

See:


file: /Techref/scenix/lib/io/osi3/tcpip/defaultgateway.htm, 2KB, , updated: 2002/4/1 17:15, local time: 2024/3/28 03:15,
TOP NEW HELP FIND: 
3.237.65.102:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.sxlist.com/techref/scenix/lib/io/osi3/tcpip/defaultgateway.htm"> How can I make an SX52 visible on the Internet and not just on the local network?</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 

Welcome to www.sxlist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .