Author Topic: USB connect to Windows (redux)  (Read 7733 times)

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
USB connect to Windows (redux)
« Reply #15 on: November 14, 2004, 08:07:29 pm »
Ok, let me see if I got this straight:

 1)  install drivers to XP
 (correct installation is indicated by the following in windows device manager:
      - an entry for "SL Series (WDM) Under the "Universal Serial Bus Controllers"
      - a device labeled "SL Series (NDIS 5)" under "Network Adapters" in the Device Manager. )

 2)  Set the tcp/ip settings for the SL series network adapter in XP  to:
      - IP Address:    192.168.129.1
      - Netmask:       255.255.255.0
      - Gateway:       192.168.129.201

  3) Still in XP, still in the settings box for the SL series network adapter,
      - disable the "IEEE 802.1x authentication" on the authentication tab
      - For internet access: set allow internet connection sharing on the advanced tab (if you're NOT on a network with a DHCP server elsewhere).   If you ARE on a local network, try bridging connections.

  4) Make sure your firewall will allow communication!

I'm still rather fuzzy on what needs to be done on the Z side as it depends evidently on what you want to do, and what ROM you are using.
  For the Cacko ROM (on a 5000d), to enable syncing with, (for example) Ko/Pi:
   - the network dialog on the settings tab has no interaction
   - set the PC link option to the default IO.  

  - I don't know when the tcp/ip setting under PC link is useful.  Though I read in other places it MUST be used, that didn't seem the case for me.
 
   - the network settings IS of course where you set up wireless and it has the standard wireless setup options.  Wireless was completely painless on the Z with this ROM.  Pop in the card and you're good to go on an unencripted line.
 
     - I don't know when the network setting for LAN are useful yet.  They just say unavailable if I set them to:
       Create a service with the following settings
          IP Address:     192.168.129.201
          Netmask:         255.255.255.0
          Gateway:       192.168.129.1   (EDIT:  If I understand Dave correctly, this should be the address of the PC)



EDIT:
[Sigh]  I still am not sure what's best.  I can start up things like the vnc server or the kde pim for sync, and get communication both ways. (even controlling the Z from the desktop for awhile), then suddenly the Z freezes and the only way out is a soft reset.
« Last Edit: November 15, 2004, 07:30:34 pm by caunt »

lumi

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
USB connect to Windows (redux)
« Reply #16 on: November 14, 2004, 09:23:37 pm »
Quote
4) on the Z, under network in "settings",
 - Create a service with the following settings
 IP Address: 192.168.129.201
 Netmask: 255.255.255.0
 Gateway: 192.168.129.200 ???

On the Z, the gateway needs to be 192.168.129.1 (the IP address of the PC).  I would suspect that is why you couldn't connect.

Quote
3) Still in XP, still in the settings box for the SL series network adapter,
 - disable the "IEEE 802.1x authentication" on the authentication tab
 - allow internet connection sharing on the advanced tab

I'm not a XP user so I am not positive about 3b (connection sharing).  It _may_ be that you need to allow connection sharing on your Ethernet network interface rather than the Zaurus network interface.

Also, you need to make sure there is no firewall turned on on the Zaurus network.

If you have problems where the Zaurus is hanging you'll need give details.  Also, if you still can't get connection you should give us diagnostic info.  For Windows open a command prompt and run:

- ipconfig /all
- route -n
- ping 192.168.129.201

Edited: 11/15/2004 to correct the explanation of the gateway address on the Z.

Dave
« Last Edit: November 15, 2004, 07:07:54 pm by lumi »

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
USB connect to Windows (redux)
« Reply #17 on: November 15, 2004, 10:20:09 am »
Thanks Dave,

--------
On the Z, the gateway needs to be 192.168.129.1 (the IP address of the Z). I would suspect that is why you couldn't connect.
--------

I didn't follow that... I understood the IP address of the Z was supposed to be
198.168.129.201.   Maybe you meant that the gateway address on the Z need to match the IPaddress of the PC ? (which kind of makes sense - the gateway of the PC is the Z and the gateway of the Z is the PC).  Is this the case?

Thanks very much for you offer to help!!!  I'm beginning to wonder though, if I crashed and soft-booted enough to mess up my file system.   I know every time I do this, linux runs through a huge list of  errors and fixes them, but since the partition is an unjournaled ext2, is it possible I just need to wipe everything out and start over?  (after I figure out the usb stuff of course, so I won't need to do it again!)

lumi

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
USB connect to Windows (redux)
« Reply #18 on: November 15, 2004, 12:55:07 pm »
Caunt,

I corrected my previous posting.  It sounds like you are getting the concepts.  Please tell us if you do get connected.

Re: Re-installation

You haven't told us anything about the versions you are running and whether this Zaurus is a "production" device or not for you.

Usually, after one or two proper reboots I stop getting any corruption caused by earlier forced reboots.

Dave

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
USB connect to Windows (redux)
« Reply #19 on: November 15, 2004, 07:23:45 pm »
Drat,
i keep hoping I found the problem and won't have to bother you folks.

Oh well, I just hung it again, so here are the details: (although my connection status info on the PC tells me packets are still going back and forth occasionally)

5000d (got from ebay  been waiting since they came out till I could afford one !)
Various CF cards stolen temporarily from camera use for flashing and file transfer
1GB sd card from PNY formatted to ext2 kept permanently in the Z as HD
(http://www.jr.com/JRProductPage.process?Product=3997196 has a great deal going currently, $50 taxed and shipped to CA)
Cacko 5000 - Advanced Flash ROM update 3.10 (kernel 2.4.18) 30-0

Cacko rom comes with 2 connection apps that I find:
PC link and Network.
Setting the gateway on the Z to the address of the PC still didn't remove the "connection unavailable" message in network.

PC Link allows me to choose "default IO" or "advanced TCP/IP", however it appears to be for syncing specific software only and since it keeps popping up every time I plug in the usb cable, it seems to be getting in the way and confusing things.

At any rate, trying to run anything over the connection hangs the Z..whether it be the VNC server, or the Ko/Pim sync or even (on a whim) the "sync"button on that mysterious PC Link page.

Actually, it doesn't seem limited to connection apps.  If I plug in the usb whatever app I am using seems capable of hanging the Z
« Last Edit: November 15, 2004, 07:32:52 pm by caunt »

lumi

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • http://
USB connect to Windows (redux)
« Reply #20 on: November 15, 2004, 07:49:32 pm »
Caunt,

I am not telling you that our previous discussion was useless but if you are using the Cacko ROM then you should be posting to the "Sharp ROMs" forum.  This is the OpenZaurus ROM forum (and Cacko isn't an OZ-style ROM).  OpenZaurus doesn't have a "PC Link" application -- OZ's function is like the "Advanced TCP/IP Networking" and it is built into "Network" on the usbd0 interface.

Dave

caunt

  • Newbie
  • *
  • Posts: 48
    • View Profile
USB connect to Windows (redux)
« Reply #21 on: November 16, 2004, 12:23:01 pm »
Thanks Dave,

I understood this is the SharpRom forum.  My first post you noticed, was trying to get the basics down...which IP addresses where.  I understand if that's as much help as you can give me. (though I understood cacko was based on the SharpROM)
This thread just was discussing exactly the info I was struggling with at the time. (IP addresses) and I thank you very much for clearing that up for me.
« Last Edit: November 16, 2004, 01:11:59 pm by caunt »

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
USB connect to Windows (redux)
« Reply #22 on: November 17, 2004, 04:35:40 pm »
Since I initiated this thread, it seemed a good time to jump back in with an update.

Thanks to all the advice and clarifications posted here, I've managed to ssh into my Zaurus from both my Win2K workstation and my XP laptop. And sftp files. Thanks to all. The key issues, natch were:
1. install and run the ssh utils
2. understand which computer gets which IP address and
3. where to set them.

I think I've got that now. In a fit of pique I disinstalled dropbear when I installed the ssh suite. Will I regret that?

The bad news is this generally works as long as I don't want to do too much of it. I've noticed that can't-reestablish-a-connection-after-suspend syndrome, which I know I've seen discussed hereabouts. Somewhere there's a work-around which IIRC involves dropping and re-adding the usb modules?

Rather more interesting is that communicating with the Z plays hell with the W2K system. Everything works ducky until I close the connection and suspend the Z. Of course I can't reconnect to it, but even more of a pain is that this truly messes over the W2K system, but in a subtle way. The usb manager goes wonky and refuses to play. The system device manager retires to private life and takes up chicken farming. Communication with other usb devices, such as a memory stick, gets dicey.

And the system will not shut down cleanly. Various apparently random processes (they're not always the same ones) go zombie and refuse to exit for shutdown. The whole system hangs forever in the final stages of power-down. I have been reduced to Pulling The Plug out of the wall to reboot.

Now you may say what you like about the stability of Windows systems (and many do), but fact of the matter, it takes some hard work to do that to W2K.

Any ideas what's going on and how I can communicate with the Z and still unmount it cleanly?

I haven't experimented as much with the XP system, so I'm not sure how much of this happens there.

But there is one interesting pathology. On the laptop I use a USB powered cable to connect to the Z in lieu of the Sharp cradle. In theory, it runs the Z off the laptop's power while it's connected and up. When I first plug it in this is true, but the Z does not seem to recognize this as the moral equivalent of AC power. So it suspends in a couple of minutes and things get zarked. In particular, it stops getting power.

Is there a fix for this? I suppose I can go to the power setting and app and change the behavior under "battery" to "suspend-never" and then change it back when I'm finished, but it's kind of a nuisance. A short script would be nice. There must be a fer-chris'-sake-don't-suspend setting somewhere?

Mystified as usual,
Windrose
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
USB connect to Windows (redux)
« Reply #23 on: November 18, 2004, 02:47:47 am »
Quote
...that can't-reestablish-a-connection-after-suspend syndrome, which I know I've seen discussed hereabouts. Somewhere there's a work-around which IIRC involves dropping and re-adding the usb modules?
It involves installing the hotplug package from the old OZ 3.2 feed. It worked in 3.3.6 but, unfortunately, when I tried it in 3.5.1 nothing changed. 3.5.2 should be coming out soon, I hope someone's had a close look at that problem.
Quote
There must be a fer-chris'-sake-don't-suspend setting somewhere?
Haven't found one yet but it would be a great feature of the battery status applet. And I guess a script should be possible using the "qcop" command which can send all kinds of useful messages to Opie.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)