Author Topic: Final try at sync and internet access  (Read 14855 times)

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« on: December 19, 2003, 10:44:03 pm »
OK.  I am about to throw this 860 off the highest building I can find.

NOTE: THE FOLLOWING IS A RANT.  IF YOU DON\"T WANT TO LISTEN PLEASE SKIP TO THE NEXT PARAGRAPH CAUSE I REALLY NEED SOME HELP.  --   I know why Sharp does not want to release these things in north america - its because they are not ready for prime time.  If you want to sell a pda to the mass market you have to make it work \"out-of-the-box\". I have been trying to get this thing to sync and connect to the internet for about two weeks now and I haven\'t been able to.  Note that I have been working with computers for over 25 years.  I started out building computers from components in the 70\'s - etching pc boards etc. (I know, I know - I\'m a dinosaur)  I am now designing/developing web e-commerce apps using java/jboss/tomcat so I feel that I have a resonable level of competence to bring to this thing.  The reason I want to use a zaurus is because it seems to meet the requirements my company has for a certain application.  I want to use it as a node in a peer to peer ecommerce application and am hoping to be a zaurus reseller.  This application will be used by people who are not linux guru\'s so it needs to work (once set up) well enough for someone who has little technical know-how.  I need a PIM (no problem) word/excel compatability (no problem) but I also need internet connectivity via the usb cable so someone can sync to my app and then hit the road (big problem)  and also the ability to sync to outlook (big problem).  Despite the excellent work done by a lot of people around the world to build these custom roms, etc., the fact is that there are certain things that just don\'t work easily.

OK.  I feel better now.

The two things I need are to be able to sync with outlook and to connect to the internet over the usb cable. I have tried various instructions from several people and sources over the past two weeks.  I have searched this forum as well as zaurus.com and eterne.net.  I have read all the how-tos I could find. I have tried TKC, X11, OZ and the original Sharp ROMs.  I have tried software - usb drivers and intellisync - from several sources.  I have tried from my home pc (winXP) and work (Win 2000).

The closest that I have gotten is my current configuration.

    My Zaurus is running TKC 2.5.1 which I just loaded.
    PCLINK is set to USB-TCP/IP (advanced) with the hostname zaurus and USB IP 192.168.129.201.  
    I have added my DNS server ip\'s to /etc/resolv.conf (as indicated by a helpful soul)
 
    MY PC is using Windows XP
    I am using intellesync and the usb drivers from 560v132s.zip that I just downloaded from myzaurus.com.  
    The network connection for the zaurus (in windows XP) is set to ip address 192.168.129.200/255.255.255.0.  
    The local area connection for my original internet connection is set to \"allow other computers to connect through this computers internet connection\"
    I have disabled my pc firewall (zonealarm) for testing.
    I have uninstalled and reinstalled and rebooted several times.

Now:
I can ping the zaurus (192.168.129.201) from my pc.
I can ping my pc connection (192.168.129.200) from the zaurus.  

But:
I can\'t ping www.google.com - Host name lookup failure
I can\'t ping 216.239.37.99 (googles ip) - Network is unreachable
I can\'t ping 169.254.142.154 (my dhcp assigned ip address from my isp) - Network is unreachable
When I run intellisync the zaurus screen flips into \"communicating\" mode , but then I get a \"communication was aborted\" on the zaurus 6 times and \"an error occured while trying to connect\" on the pc then it all stops.

I would REALLY, REALLY, REALLY like some help with this.  I just can\'t figure out what\'s going on and I know other people have this working.

(P.S. - you\'ll see this over on devnet as well)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Final try at sync and internet access
« Reply #1 on: December 20, 2003, 06:49:01 am »
I presume that you need to add some routes to your Windows box(es) so that they know how to get the packets where they should be going (and coming back from).

People have posted about this *extensively* on the devnet. I\'d take a look there before you do any throwing (I know you say you\'ll be posting there, try a search back in time a lot, now that you have connectivity the instructions will be the same for any of the Zs), and if you do decide to throw it, tell me where and when, I wasn\'t bad at cricket ;-)

Actually Windows might need ICS (internet connection sharing) to be turned on. Try a search for that on the devnet too.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

wbs

  • Newbie
  • *
  • Posts: 15
    • View Profile
Final try at sync and internet access
« Reply #2 on: December 20, 2003, 07:01:08 am »
Quote
Actually Windows might need ICS (internet connection sharing) to be turned on. Try a search for that on the devnet too.
Yes, Windows will either need ICS enabled or it will need the Zaurus network device bridged to your existing LAN\'s NIC (if you\'re accessing the Internet from a LAN already). Otherwise, packets originating from the Z will just be dropped as you haven\'t instructed Windows to forward them.
 
My Zaurus is integrated perfectly into my LAN. I used the following commands to set it up:

Code: [Select]
echo "nameserver 192.168.1.1" > /etc/resolv.conf



ifconfig usbd0 192.168.1.200 broadcast 192.168.1.255 netmask 255.255.255.0



route add -net default gw 192.168.1.1 netmask 0.0.0.0 metric 1 usbd0

 
My ADSL router is 192.168.1.1 (also providing DNS), my XP box is 192.168.1.23 and my Zaurus is 192.168.1.200
 
Remember, with a configuration like mine, the Z is bridged to the NIC. If your Windows box has a standalone Internet connection then I\'d imagine ICS is your best option.

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #3 on: December 20, 2003, 09:16:23 am »
Well I tried adding the route and also the other commends mentioned, but still no go.

By the way.  Do those commands write to files, or do I need to create a script to re-run them if I need to?

Anonymous

  • Guest
Final try at sync and internet access
« Reply #4 on: December 20, 2003, 11:16:37 am »
Check the zaurus has the same workgroup as your pc. I use pc IP address 192.168.129.1  Many of the duplicate log entries removed.
# pwd
/home/root/usr/lib/samba
# grep BYANDLARGE smb.conf
        workgroup = BYANDLARGE
#
# pwd
/home/system/var/smb
# grep BYANDLARGE log.nmb
log.nmb:  process_name_refresh_request: unicast name registration request received for name BYANDLARGE<1e> from IP 192.168.129.1 on subnet UNICAST_SUBNET.
log.nmb:  Samba name server ZAURUS is now a local master browser for workgroup BYANDLARGE on subnet 192.168.129.201
log.nmb:  process_name_refresh_request: unicast name registration request received for name BYANDLARGE<00> from IP 192.168.129.1 on subnet UNICAST_SUBNET.
log.nmb:  process_name_registration_request: unicast name registration request received for name BYANDLARGE<1e> from IP 192.168.129.1 on subnet UNICAST_SUBNET.
Error - should be sent to WINS server
log.nmb:  Samba name server ZAURUS is now a local master browser for workgroup BYANDLARGE on subnet 192.168.129.201
log.nmb:  process_name_refresh_request: unicast name registration request received for name BYANDLARGE<1e> from IP 192.168.129.1 on subnet UNICAST_SUBNET.
#

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Final try at sync and internet access
« Reply #5 on: December 20, 2003, 11:24:27 am »
I had my doubts about the above too, especially if your Z and the internet connection adaptor are on different subnets.

One thing that does work, though it takes your PC off the net while you\'re running it, is to bridge the connections between the two adaptors.

Control Panel ] Network Connections, then select both of the adaptors in question, right click and choose bridge.

You\'ll need to alter your Z\'s IP address, mask, DNS and gateway to that of your PC though before you do the bridging (actually you may be able to do it afterwards, but it\'s a pain without the keyboard).

The other thing to try is a proxy server running on your PC, that said I (think I) need one with nested proxies as I\'m hidden behind another proxy server at Uni - I\'ve also had this working.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Anonymous

  • Guest
Final try at sync and internet access
« Reply #6 on: December 20, 2003, 11:28:52 am »
Also check this (DESKTOP is Windows pc name, BYANDLARGE is workgroup, ZAURUS is device name)

# pwd
/home/system/var/lock/samba
# cat nmbd.pid
3191
# cat smbd.pid
3189
# cat browse.dat
\"BYANDLARGE\"              c0001000 \"\"                            \"BYANDLARGE\"
\"ZAURUS\"                  40019a03 \"Samba 2.0.7-ja-2.2\"          \"BYANDLARGE\"
\"DESKTOP\"                 40011203 \"\"                            \"BYANDLARGE\"
#

Anonymous

  • Guest
Final try at sync and internet access
« Reply #7 on: December 20, 2003, 11:38:34 am »
On your PC with zaurus on and in cradle:
C:]ipconfig /all

Ethernet adapter Local Area Connection 21:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : SL Series (NDIS 5)
        Physical Address. . . . . . . . . : 40-00-02-00-00-01
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.129.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DHCP Server . . . . . . . . . . . : 192.168.129.201
        Primary WINS Server . . . . . . . : 192.168.129.201
        Lease Obtained. . . . . . . . . . : Saturday, December 20, 2003 8:33:55 AM
        Lease Expires . . . . . . . . . . : Saturday, December 20, 2003 8:43:55 AM

Anonymous

  • Guest
Final try at sync and internet access
« Reply #8 on: December 20, 2003, 12:00:34 pm »
See if the servers are running.

# ps -ef |grep mbd
root      5865     1  0 16:47 ?        00:00:00 smbd -D -l /dev/null
root      5867     1  0 16:47 ?        00:00:00 nmbd -D -l /dev/null
root      6019  6016  1 16:58 ttya0    00:00:00 grep mbd
#

mussi

  • Jr. Member
  • **
  • Posts: 95
    • View Profile
    • http://
Final try at sync and internet access
« Reply #9 on: December 20, 2003, 12:31:04 pm »
your pc has to route the packets of the Z as well:

in other words in cmd on Windows:

- route add 192.168.129.201 255.255.255.255 192.168.129.1

Could you also post the output of \"route print\" into the forum?

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #10 on: December 20, 2003, 06:11:08 pm »
Wow.  Lots of things to try.  I appreciate all the help.  It\'ll take a bit to try all these.

OK As it turns out my computer was in workgroup \"MSHOME\" and my Zaurus was in \"WORKGROUP\"  All are \"MSHOME\" now.

OK.  NOw for the \"route print\" outputs.

From my PC

===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x90003 ...00 50 8d 51 22 68 ...... NVIDIA nForce MCP Networking Controller - Packet Scheduler Miniport
0x110005 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
0x140002 ...40 00 02 00 00 01 ...... SL series Ver3 (NDIS 5) - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     65.92.13.181    65.92.13.181     1
       65.92.13.1  255.255.255.255     65.92.13.181    65.92.13.181     1
     65.92.13.181  255.255.255.255        127.0.0.1       127.0.0.1     50
   65.255.255.255  255.255.255.255     65.92.13.181    65.92.13.181     50
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1     1
      169.254.0.0      255.255.0.0  169.254.142.154  169.254.142.154     20
  169.254.142.154  255.255.255.255        127.0.0.1       127.0.0.1     20
  169.254.255.255  255.255.255.255  169.254.142.154  169.254.142.154     20
    192.168.129.0    255.255.255.0  192.168.129.200  192.168.129.200     30
  192.168.129.200  255.255.255.255        127.0.0.1       127.0.0.1     30
  192.168.129.255  255.255.255.255  192.168.129.200  192.168.129.200     30
        224.0.0.0        240.0.0.0  169.254.142.154  169.254.142.154     20
        224.0.0.0        240.0.0.0  192.168.129.200  192.168.129.200     30
        224.0.0.0        240.0.0.0     65.92.13.181    65.92.13.181     1
  255.255.255.255  255.255.255.255  169.254.142.154  169.254.142.154     1
  255.255.255.255  255.255.255.255  192.168.129.200  192.168.129.200     1
Default Gateway:      65.92.13.181
===========================================================================
Persistent Routes:
  None

From my Zaurus

Kernel IP routing table
Destination      Gateway              Genmask         Flags Metric Ref       Use Iface
192.168.129.0  *                        255.255.255.0  U      0        0              0 usbd0
default             192.168.129.200  0.0.0.0            UG    0        0              0 usbd0
default             192.168.129.200  0.0.0.0            UG    1        0              0 usbd0

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #11 on: December 20, 2003, 06:17:42 pm »
Quote
Check the zaurus has the same workgroup as your pc.

It was different, but now changed to MSHOME on both systems.  Still no go.

Quote
/home/system/var/smb
# grep BYANDLARGE log.nmb

There is not log.nmb in /home/systrm/var/smb.  In fact that directory is empty

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #12 on: December 20, 2003, 06:24:24 pm »
Quote
/home/system/var/lock/samba
# cat nmbd.pid
3191
# cat smbd.pid
3189

nmbd.pid is 1404     smbd.pid is 1402   --  although this changes but always has delta = 2

Quote
# cat browse.dat
\"BYANDLARGE\"              c0001000 \"\"                            \"BYANDLARGE\"
\"ZAURUS\"                  40019a03 \"Samba 2.0.7-ja-2.2\"          \"BYANDLARGE\"
\"DESKTOP\"                 40011203 \"\"                            \"BYANDLARGE\"
#

\"MSHOME\"          c0001000 \"ZAURUS\"                   \"MSHOME\"
\"ZAURUS            40049a03 \"Samba 2.0.7-ja-2.2    \"MSHOME\"
\"REGULAR\"         40011003 \"\"                               \"MSHOME\"

Looks similar to what you posted - REGULAR is the name of my XP box.

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #13 on: December 20, 2003, 06:28:57 pm »
Quote
On your PC with zaurus on and in cradle:
C:]ipconfig /all
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : SL Series (NDIS 5)
        Physical Address. . . . . . . . . : 40-00-02-00-00-01
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 192.168.129.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DHCP Server . . . . . . . . . . . : 192.168.129.201
        Primary WINS Server . . . . . . . : 192.168.129.201

Mine is

Ethernet adapter Local Area Connection 7:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : SL series Ver3 (NDIS 5)
        Physical Address. . . . . . . . . : 40-00-02-00-00-01
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.129.200
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : 209.226.175.223
                                            198.235.216.134

I\'m a little confused because your info seems to indicate you have the zaurus NDIS adapter set to dhcp on your windows box.   I thought that the idea was to hard code the ip address so it would remain constant on the zaurus

b2bpro

  • Full Member
  • ***
  • Posts: 218
    • View Profile
    • http://
Final try at sync and internet access
« Reply #14 on: December 20, 2003, 06:31:12 pm »
Quote
See if the servers are running.

# ps -ef |grep mbd
root      5865     1  0 16:47 ?        00:00:00 smbd -D -l /dev/null
root      5867     1  0 16:47 ?        00:00:00 nmbd -D -l /dev/null
root      6019  6016  1 16:58 ttya0    00:00:00 grep mbd
#

funny all I get is the grep process.

root      1420  1152  2 18:29 ttya0    00:00:00 grep mbd

What are the two other processes that are running?  This looks interesting, maybe something isn\'t starting up.