PPP Client

"Sean Mullaney" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <A858D4579DC2C54BA7110084D418BF82066D67@www.bluetechnologies.co.uk>
You need to set the IP address and subnet of the default interface eth0 to be something other than 0.0.0.0 - the default subnet of that interface is 0.0.0.0 which means that ALL network traffic will go through it by default.  So switch it to something else and you should be able to route through your PPP interface instead.  Try this:

           TININet.setIPAddress("etho", "10.0.0.112"); 
           TININet.setSubnetMask("etho", "255.255.255.0"); 
           TININet.setGatewayIP("etho", "10.0.0.1"); 
           TININet.setPrimaryDNS("10.0.0.1"); 
           TININet.setSecondaryDNS("10.0.0.1"); 
           TININet.setDefaultInterface("eth0".getBytes()); 
            
           try { 
                TININet.commitNetworkState(); 
           catch(CommittException e) { 
                e.printStackTrace(); 
           } 



Hi,

I have prepared my own customised board using DS80C400. Little bit about my
hardware...

2MBytes of flash (AM29LV017D) interface at address 0x400000
512KBytes of SRAM interface at address 0x00000
Board has 2 RS232 serial port for interfacing with external device.

I am able to make PPP Client class under TINIOS from flash. After getting
connected to local ISP, i am able to get the local/remote IP Address,
Primary/Seconday DNS IP address. When I try to ping or download the web page
from net, i am not able to get connected.

Similarly using TCP/IP protocol, when I try to connect the host (whose IP
Address is predefined in the code), unable to get connected.

Anyone can help me where i am doing wrong or any more information required
to be send once the PPP session is up.

I am using the sample PPPClient.java source code.

Regards
Saurabh
___________________________
Sean Mullaney
 
Blue Technologies
Unit 8, La Gare
53 Surrey Row
London   SE1 0DF
 
Office: 0207 928 1026
Mobile: +44 7813 945 517
Web: http://www.bluetechnologies.co.uk/
Email: sean.mullaney-dfwjXQrgxUuHdZQakrT3Eua5wBl2o7f50Fzj8UutsXo@public.gmane.org

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.602 / Virus Database: 383 - Release Date: 01/03/2004
 
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.