Re: Identifying port names for users
Re: Identifying port names for users
- Subject: Re: Identifying port names for users
- From: Mark Thomas <email@hidden>
- Date: Thu, 10 Apr 2003 15:53:14 +0100
- Organization: Coderus Ltd
Hi Bernd,
The problem I have seen isn't specific to the WebShuttle, but I am seeing
this with the BT Highway box, as I get different names there as well :-(.
So I was wondering from the MoreSCCreatePortArray which I am using, this
does all the IORegistry searching and pulling all the correct data together
from the USB IORegistry planes ???. Should it be treating things the same
way as the network config, if there are specific specialty required ???.
0 : <CFString 0x1465ef0 [0x8016024c]>{contents = "Type"} = <CFString
0x1467700 [0x8016024c]>{contents = "PPP"}
2 : <CFString 0x1467750 [0x8016024c]>{contents = "SubType"} = <CFString
0x146b550 [0x8016024c]>{contents = "PPPSerial"}
3 : <CFString 0xdc0b0 [0x8016024c]>{contents = "DeviceName"} = <CFString
0x14677f0 [0x8016024c]>{contents = "modem"}
5 : <CFString 0x14674d0 [0x8016024c]>{contents = "SortOrder"} =
<CFNumber 0x14676f0 [0x8016024c]>{value = 0, type = kCFNumberSInt32Type}
6 : <CFString 0x146a6e0 [0x8016024c]>{contents = "Hardware"} = <CFString
0x146b6f0 [0x8016024c]>{contents = "Modem"}
7 : <CFString 0x1466990 [0x8016024c]>{contents = "UserDefinedName"} =
<CFString 0x1467640 [0x8016024c]>{contents = "Internal Modem"}
)}
1 : <CFDictionary 0x146b570 [0x8016024c]>{count = 7, capacity = 11,
pairs = (
0 : <CFString 0x146a6e0 [0x8016024c]>{contents = "Hardware"} = <CFString
0x146b6f0 [0x8016024c]>{contents = "Modem"}
2 : <CFString 0x1466b40 [0x8016024c]>{contents = "IOTTYBaseName"} =
<CFString 0x1466b60 [0x8016024c]>{contents = "ws_imlppp"}
3 : <CFString 0x1467750 [0x8016024c]>{contents = "SubType"} = <CFString
0x146b550 [0x8016024c]>{contents = "PPPSerial"}
6 : <CFString 0x1465ef0 [0x8016024c]>{contents = "Type"} = <CFString
0x1467700 [0x8016024c]>{contents = "PPP"}
11 : <CFString 0xdc0b0 [0x8016024c]>{contents = "DeviceName"} =
<CFString 0x1467a60 [0x8016024c]>{contents = "ws_iMLPPP"}
13 : <CFString 0x14674d0 [0x8016024c]>{contents = "SortOrder"} =
<CFNumber 0x146b640 [0x8016024c]>{value = 2, type = kCFNumberSInt32Type}
14 : <CFString 0x1466990 [0x8016024c]>{contents = "UserDefinedName"} =
<CFString 0x1466b80 [0x8016024c]>{contents = "ws_imlppp-port"}
3 : <CFDictionary 0x146b740 [0x8016024c]>{count = 7, capacity = 11,
pairs = (
0 : <CFString 0x146a6e0 [0x8016024c]>{contents = "Hardware"} = <CFString
0x146b6f0 [0x8016024c]>{contents = "Modem"}
2 : <CFString 0x1466b40 [0x8016024c]>{contents = "IOTTYBaseName"} =
<CFString 0x1467ab0 [0x8016024c]>{contents = "bt digital access usb"}
3 : <CFString 0x1467750 [0x8016024c]>{contents = "SubType"} = <CFString
0x146b550 [0x8016024c]>{contents = "PPPSerial"}
6 : <CFString 0x1465ef0 [0x8016024c]>{contents = "Type"} = <CFString
0x1467700 [0x8016024c]>{contents = "PPP"}
11 : <CFString 0xdc0b0 [0x8016024c]>{contents = "DeviceName"} =
<CFString 0x1467e70 [0x8016024c]>{contents = "BT Digital Access USB"}
13 : <CFString 0x14674d0 [0x8016024c]>{contents = "SortOrder"} =
<CFNumber 0x14678b0 [0x8016024c]>{value = 4, type = kCFNumberSInt32Type}
14 : <CFString 0x1466990 [0x8016024c]>{contents = "UserDefinedName"} =
<CFString 0x14669b0 [0x8016024c]>{contents = "bt digital access usb-port"}
I did think that if there is a key "IOTTYBaseName", and that values is
within the "UserDefinedName" string, then use the "DeviceName", but that
only half's works (for "bt digital access usb-port") as for the webshuttle
name doesn't even work. I never see "WebShuttle 1 MLPPP".
So I am wondering if this is a bug in this code or is it user error
( Quinn any ideas )
I guess other tools are suffering from this maybe ???.
I had a go digging out the USB product name, but I just got back
"WebShuttle", not the "WebShuttle 1 MLPPP", any ideas ???
Thanks
Mark.
>
Hi Mark,
>
>
this has to do with the way the Network Setup/Config stuff works. I
>
tried hard to get a decent port name to be displayed in ZTerm for
>
instance, but all you get as a serial client is the BSD name (which is
>
ws_imlppp something).
>
The internal modem port name is specially treated in Network config;
>
there might be a translation (German: "Internes Modem") displayed.
>
Please have a look at:
>
1.
>
/System/Library/PrivateFrameworks/NetworkConfig.framework/Versions/A/
>
Resources
>
Inside the language directories you'll find some string lists, which
>
will further confuse you...
>
2. With the IORegistryExplorer you might have a look at the properties
>
of the different classes, for WebShuttle:
>
Search the Service Plane for WebShuttle and you will eventually find
>
the three ports (IOModemSerialStreamSync and IOSerialBSDClient).
>
What you'll need is to get the 'Product name' entry out of the
>
IOModemSerialStreamSync, the BSD name is right there as well.
>
BTW, the 'Product Name' key also exist on USB CDC devices - USB modems
>
which do not need a driver.
>
>
As I heard through the grapevine the Network configuration stuff will
>
change quite a bit with 10.3, so, after playing around with patching
>
here and there to have a more user friendly display of port names, I
>
finally gave up for now :-( and wait for better times...
>
>
Ciao
>
>
Bernd
>
>
>
Am Mittwoch, 09.04.03 um 16:04 Uhr schrieb Mark Thomas:
>
>
> Hi,
>
> Does anyone know what key should you be using when you get a list of
>
> the
>
> port/services from the MoreSCCopyServiceIDs call. As by going by the
>
> kSCPropUserDefinedName doesn't always show the same name which appears
>
> in
>
> the network settings active ports list,
>
>
>
> Any ideas why, as using the kSCPropUserDefinedName key gives me the
>
> proper
>
> "Internal modem" string, but doesn't work for all for all devices e.g.
>
> The
>
> WebShuttle device kSCPropUserDefinedName is "ws_imlppp-ports", but the
>
> name
>
> which appears in the active port list is "WebShuttle 1 MLPPP"
>
>
>
> So I am wonderig if there's another field which I am suppose to use
>
> ???.
>
>
>
> Thanks
>
> Mark.
>
> _______________________________________________
>
> macnetworkprog mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/macnetworkprog
>
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.