[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
Arjen de Korte
nut+devel at de-korte.org
Sun Jun 8 16:53:14 UTC 2008
>> > Uses Megatec USB Phoenix Subdriver, USB Id is 06da:0002.
>
> Hmm.. This may cause trouble in the hal enabled drivers. Check this
> section of
> the ups-nut-device.fdi.
> -------------------------------
> <!-- Phoenixtec Power Co., Ltd -->
> <match key="usb_device.vendor_id" int="0x06da">
> <match key="usb_device.product_id" int="0x0002">
> <append key="info.category" type="string">battery</append>
> <merge key="info.capabilities" type="strlist">battery</merge>
> <merge key="info.addons"
> type="strlist">hald-addon-bcmxcp_usb</merge>
> <merge key="battery.type" type="string">ups</merge>
> </match>
> </match>
> --------------------------------
>
> It is a shame that the vendors use different protocoll with the same
> product code.
The problem is that these devices probably use the same one from
Phoenixtec. Supporting this would require creating a meta-driver that not
only detects the USB-to-serial converter, but that also probes which
serial protocol is used.
There really is nothing we can do about vendors that are too cheap to
really embed USB support in their microcontrollers but instead use an
off-the-shelf USB-to-serial converter. Maybe we should drop auto-detecting
these, since there is no way to be absolutely sure what is really
connected, unless they have their own VID:PID combination.
Best regards, Arjen
--
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
More information about the Nut-upsdev
mailing list