Dan,
Thanks for your help.
I try what you said but it seems not work.
Could you give me more detail about your operation.
Specially about "I switch to this location before
plugging in my device, then switch to the real location when the
device is
plugged in. It then selects the medium saved under the real
location"
Do you think this is a "BUG" of MAC OS ??
Regards,
Mark
----- Original Message -----
From: "Daniel Sumorok" <email@hidden>
To: <email@hidden>
Sent: Wednesday, January 19, 2005 11:16 AM
Subject: Re: How to get the information of "force media" in driver ???
> Hi,
> I have noticed similar behavior with my usb-ethernet device.
> However, I created another "location" in the network preferences. This
> "location" sets IPV4 and IPV6 to "off". I switch to this location before
> plugging in my device, then switch to the real location when the device is
> plugged in. It then selects the medium saved under the real location.
>
> Hope this helps,
>
> -Dan
>
> On Tue, 18 Jan 2005, Mark Lee wrote:
>
> > Dear all,
> >
> > In my 'usb to Ethernet ' driver ( I developed it base on
> > AppleUSBCDCSampleDriver source code).
> >
> > It works fine but medium change.
> >
> > After the driver is installed, you can change the medium by CONTROL
UI
> > (system preference) and it works correctly
> > after the medium change. For example, 100M to 10M medium change.
> >
> > The issue is, when I unplug and plug the USB cable from my device
or I
> > reboot the Mac PC, my
> > device will work on "default medium (100M)" but not previous
assigned
> > medium (10M). But the
> > CONTROL UI shows the correct medium setting(10M).
> >
> > I found that the system (OS X) does not call the "selectMedium
routine"
> > in my driver after system
> > reboot or driver unload and load.
> >
> > How should I do then the OS will call the "selectMedium routine" in
my
> > driver after system
> > reboot or driver unload and load. Or how I get the medium
information
> > in CONTROL UI ??
> >
> >
> > Regards,
> > Mark
> >
> >
> >
> >
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Macnetworkprog mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> > http://lists.apple.com/mailman/options/macnetworkprog/email@hidden
> >
> > This email sent to email@hidden
> >
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/macnetworkprog/email@hidden
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden
This email sent to email@hidden