On Thu, 2009-05-28 at 03:49 +0200, David Richardson wrote:
> 
> 
> On Sun, May 24, 2009 at 4:30 AM, Mark Ellis <m...@mpellis.org.uk>
> wrote:
>         On Thu, 2009-05-21 at 05:34 +0200, David Richardson wrote:
>         > I'm trying to use SynCE to connect more than a dozen WM
>         devices at
>         > once. I have got it to work for multiple devices as long as
>         they're
>         > all in PPP mode but some of the devices can only be set in
>         RNDIS mode
>         > (namely the Blackjack 1 and Blackjack 2). For these devices
>         only the
>         > first one I'm connecting will create a new network interface
>         (eth1)
>         > and any other RNDIS phone I plug in will not create a new
>         interface
>         > but the dmesg output is fine (ie the same as the first
>         device)
>         >
>         
>         
>         This is theoretically possible, but as far as I know you're
>         the first
>         one to report trying it.
>         
>         Can you please plug in two devices and send the unedited dmesg
>         output,
>         and the result of iptables -a
> 
> First device (no other devices plugged in) dmesg output
> 
> [10095.896200] usb 2-1: new full speed USB device using uhci_hcd and
> address 4
> [10096.073705] usb 2-1: configuration #1 chosen from 1 choice
> [10096.216333] rndis_host 2-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed,
> -47
> [10096.223042] eth1: register 'rndis_host' at usb-0000:00:1a.1-1,
> RNDIS device, 80:00:60:0f:e8:00
> 
> ifconfig now detects eth1 and synce-pls -p DEVICE_ID works.
> 
> After connecting the second device, dmesg output:
> 
> [10284.568072] usb 6-1: new full speed USB device using uhci_hcd and
> address 6
> [10284.739528] usb 6-1: configuration #1 chosen from 1 choice
> [10284.846093] rndis_host 6-1:1.0: RNDIS_MSG_QUERY(0x00010202) failed,
> -47
> [10284.853772] eth2: register 'rndis_host' at usb-0000:00:1d.2-1,
> RNDIS device, 80:00:60:0f:e8:00
> 
> Which is basically identical to the output when the first device is
> connected, but eth2 doesn't exist according to ifconfig.
> 
> synce-pls -p DEVICE_ID still works but synce-pls -p DEVICE_ID2 can't
> find the configuration.
> 
> iptables -a didn't do anything (iptables v1.4.0).  Perhaps you mean
> iptables -L?  The output of that is:
> 

Sorry, meant ifconfig -a, but you got the idea anyway :)

> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination         
> 
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination         
> 
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination  
> 
> the output of ifconfig is:
> 
> eth1      Link encap:Ethernet  HWaddr 80:00:60:0f:e8:00  
>           inet addr:169.254.2.2  Bcast:169.254.2.255
> Mask:255.255.255.0
>           inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:11 errors:8 dropped:0 overruns:0 frame:0
>           TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:1056 (1.0 KB)  TX bytes:11128 (11.1 KB)
> 
>  
>         
>         
>         
>         > So I thought it might be an IP collision so I edited
>         > HKEY_LOCAL_MACHINE\Comm\DTPT\DTPTCLI_ADDR and DTPTSER_ADDR
>         and the
>         > device now connects using the new IP, but the first device
>         is still
>         > the only one creating an interface.
>         >
>         
>         
>         Good idea.
>         
>         > So does anyone have any ideas of what might be preventing
>         the second
>         > interfaces from appearing?
>         >
>         
>         
>         Not yet....
>         
>         > (I also tried setting
>         > HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers
>         \DefaultClientDriver to
>         > Serial_Class instead of RNDIS on the devices that wouldn't
>         let me
>         > disabled advanced networking through the GUI, but no
>         interfaces were
>         > made in that mode either)
>         >
>         > dmesg even says [11839.205688] eth2: register 'rndis_host'
>         at
>         > usb-0000:00:1a.1-1, RNDIS device, 80:00:60:0f:e8:00
>         >
>         > eth2 even though no eth2 exists afterward
>         >
>         > Any thoughts on what unique value I can change so that the
>         second (and
>         > third) devices are detected?  All of them use the HWaddr of
>         > 80:00:60:0f:e8:00.
>         
>         
>         Ah, this could be a significant problem I guess.
> 
> Any idea how I can spoof the mac address on my phone?  Or is my
> phone's hardware even specifying this address (seems unlikely to me
> since I also have an HTC 3125 that just happens to use this HWAddr)?
> If synce is specifying this address, can I change that somehow?
> Googling 80:00:60:0f:e8:00 seems to reveal that it is the common
> HWaddr for RNDIS sync even in Windows.
> 

The more I look I thing every rndis connection uses this address, and I
can't see any way to change it. It does appear in a registry entry

HKEY_LOCAL_MACHINE\Comm\ConnectionSharing\Addresses\192.168.0.102
\HardwareAddress

which seemed like a long shot since it's obviously for ICS, but hey it
is Micro$oft :), so I tried changing it but to no effect.

I bet you can change it, but I have no idea where.

> An alternative solution to this problem would be getting the
> blackjacks to run in ppp mode.  This works fine with all the other
> phones, and is only a problem with the blackjack because it seems
> forced to run in rndis.  As mentioned before I've already tried
> specifying manually to use ppp mode by modifying the registry and I
> have also tried using an app I found called USBSwitch.cab that is
> supposed to switch between RNDIS and PPP on phones that don't offer
> the functionality in the GUI.  However, neither of these options
> allowed my device to be detected at all by synce (and I think
> USBSwitch.cab fails outright on the Blackjack)

What did you do in the registry to switch this ? I did a quick diff on
registry dumps from a device connected by rndis then serial. There are a
few relevant differences, but the most likely looks like

HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\DefaultClientDriver

which under rndis is RNDIS and when using serial is SerialClass, worth a
try on yours.

What did you get in dmesg when connecting using USBSwitch ?

>  
>         
>         
>         >
>         > Thanks!
>         >
>         > -David Richardson
>         >
>         >
>         
> ------------------------------------------------------------------------------
>         > Register Now for Creativity and Technology (CaT), June 3rd,
>         NYC. CaT
>         > is a gathering of tech-side developers & brand creativity
>         professionals. Meet
>         > the minds behind Google Creative Lab, Visual Complexity,
>         Processing, &
>         > iPhoneDevCamp asthey present alongside digital heavyweights
>         like Barbarian
>         > Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>         > _______________________________________________
>         > SynCE-Devel mailing list
>         > SynCE-Devel@lists.sourceforge.net
>         > https://lists.sourceforge.net/lists/listinfo/synce-devel
>         
>         
> ------------------------------------------------------------------------------
>         Register Now for Creativity and Technology (CaT), June 3rd,
>         NYC. CaT
>         is a gathering of tech-side developers & brand creativity
>         professionals. Meet
>         the minds behind Google Creative Lab, Visual Complexity,
>         Processing, &
>         iPhoneDevCamp asthey present alongside digital heavyweights
>         like Barbarian
>         Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
>         _______________________________________________
>         SynCE-Devel mailing list
>         SynCE-Devel@lists.sourceforge.net
>         https://lists.sourceforge.net/lists/listinfo/synce-devel
>         
> 

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to