[PLUG] [Dev] Adding BSNL EVDO detection to NetworkManager
Chetan S
cshring at gmail.com
Thu Dec 18 14:46:48 IST 2008
On Thu, Dec 18, 2008 at 2:44 PM, Chetan S <cshring at gmail.com> wrote:
> This neat file resides under
> /usr/share/hal/fdi/information/10freedesktop/10-modem.fdi for Ubuntu
> Intrepid.
>
> Its an xml file and has some neat lines for nokia, novatel etc etc.
>
> How it works -
> a. Hal detects the device and loads the appropriate driver
> b. Hal info is a xml based "salad dressing" file that hal uses to
> inject more information to a specific device listing of hal.
> In usb modem case it adds <append key="modem.command_sets"
> type="strlist">IS-707-A</append> i.e the commandset info for
> cdma2000.
> c. Network manager walks the device list searching for the string
> IS-707-A and "detects" the modem as usb modem.
>
> A sample listing from that file :
>
> <!-- Novatel -->
> <match key="@info.parent:usb.vendor_id" int="0x1410">
> <!-- Merlin XS620/S640,S620,EX720,S720,EV620
> CDMA/EV-DO,ES620/Merlin ES720/Ovation U720,ES620 SM Bus,U727 -->
> <match key="@info.parent:usb.product_id"
> int_outof="0x1100;0x1110;0x1410;0x1120;0x1130;0x2100;0x2110;0x2130;0x4100;0x5010">
> <match key="@info.parent:usb.interface.number" int="0">
> <append key="modem.command_sets" type="strlist">IS-707-A</append>
> </match>
> </match>
>
>
> Where to get this information from to create a new entry ???
>
> hal-device ofcourse !!!!!!
>
> So I created the following entry just under the Novatel entry.
>
> <!-- BSNL -->
> <match key="@info.parent:usb.vendor_id" int="0x5c6">
> <!-- ZTE EVDO AC8700 -->
> <match key="@info.parent:usb.product_id" int_outof="0x3197">
> <match key="@info.parent:usb.interface.number" int="0">
> <append key="modem.command_sets" type="strlist">IS-707-A</append>
> </match>
> </match>
> </match>
>
>
> the vendor id and product id I gleaned from the hal-device o/p after
> the modem driver was loaded by hal.
>
Incidentally the same procedure can be used to add detection for _any
modem_ provided it can be detected via HAL. Ain't it fun ?
regards,
C
More information about the Plug-mail
mailing list