Axel Gembe
2008-Jun-06 20:40 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
Uses Megatec USB Phoenix Subdriver, USB Id is 06da:0002. Signed-off-by: Axel Gembe <ago at bastart.eu.org> --- drivers/megatec_usb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/megatec_usb.c b/drivers/megatec_usb.c index 178b0b3..958876b 100644 --- a/drivers/megatec_usb.c +++ b/drivers/megatec_usb.c @@ -120,6 +120,7 @@ static usb_ups_t KnownDevices[] = { {0xffff, 0x0000, &krauler_subdriver}, /* Ablerex 625L USB */ {0x0665, 0x5161, &phoenix_subdriver}, /* Belkin F6C1200-UNV */ {0x06da, 0x0003, &phoenix_subdriver}, /* Mustek Powermust */ + {0x06da, 0x0002, &phoenix_subdriver}, /* Online Yanto */ {0x0f03, 0x0001, &phoenix_subdriver}, /* Unitek Alpha 1200Sx */ {-1, -1, NULL} /* end of list */ }; -- 1.5.5.1
Alexander I. Gordeev
2008-Jun-08 00:45 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
On Sat, 07 Jun 2008 00:40:28 +0400, Axel Gembe <ago at bastart.eu.org> wrote:> Uses Megatec USB Phoenix Subdriver, USB Id is 06da:0002. > > Signed-off-by: Axel Gembe <ago at bastart.eu.org> > --- > drivers/megatec_usb.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/drivers/megatec_usb.c b/drivers/megatec_usb.c > index 178b0b3..958876b 100644 > --- a/drivers/megatec_usb.c > +++ b/drivers/megatec_usb.c > @@ -120,6 +120,7 @@ static usb_ups_t KnownDevices[] = { > {0xffff, 0x0000, &krauler_subdriver}, /* Ablerex 625L USB */ > {0x0665, 0x5161, &phoenix_subdriver}, /* Belkin F6C1200-UNV */ > {0x06da, 0x0003, &phoenix_subdriver}, /* Mustek Powermust */ > + {0x06da, 0x0002, &phoenix_subdriver}, /* Online Yanto */ > {0x0f03, 0x0001, &phoenix_subdriver}, /* Unitek Alpha 1200Sx */ > {-1, -1, NULL} /* end of list */ > };Please send more information. Vendor name is Yunto, right? What is the exact model name? Some driver output would be interesting too. -- Alexander
Kjell Claesson
2008-Jun-08 16:36 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
Hi Alexander, Den Sunday 08 June 2008 02.45.36 skrev Alexander I. Gordeev:> On Sat, 07 Jun 2008 00:40:28 +0400, Axel Gembe <ago at bastart.eu.org> wrote: > > 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. Regards Kjell
Arjen de Korte
2008-Jun-08 16:53 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
>> > 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
Alexander I. Gordeev
2008-Jun-09 15:03 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
On Sun, 08 Jun 2008 20:36:13 +0400, Kjell Claesson <kjell.claesson at epost.tidanet.se> wrote:> Hi Alexander, > > Den Sunday 08 June 2008 02.45.36 skrev Alexander I. Gordeev: >> On Sat, 07 Jun 2008 00:40:28 +0400, Axel Gembe <ago at bastart.eu.org> wrote: >> > 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. > > Regards > Kjell >Well, since there is only one evidence maybe we can just ignore it? :) Moreover, not everybody uses hal versions. -- Alexander
Arnaud Quette
2008-Jun-12 12:45 UTC
[Nut-upsdev] [PATCH] megatec_usb: add support for online yunto
2008/6/12 Axel Gembe <ago at bastart.eu.org>:> Arnaud Quette wrote: > >> interestingly, such rebranded products generally use the maker >> Vendor/Product IDs, *but* expose the rebranders Name and model using >> iManufacturer and idProduct. Maybe a path to dig! >> just send back an lsusb -v excerpt of the device for validation. >> >> > Bus 001 Device 003: ID 06da:0002 Phoenixtec Power Co., Ltd > Device Descriptor: > bLength 18 > bDescriptorType 1 > bcdUSB 1.10 > bDeviceClass 0 (Defined at Interface level) > bDeviceSubClass 0 > bDeviceProtocol 0 > bMaxPacketSize0 8 > idVendor 0x06da Phoenixtec Power Co., Ltd > idProduct 0x0002 > bcdDevice 0.02 > iManufacturer 1 ONLINE > iProduct 2 YUNTObingo! Arnaud -- Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ Free Software Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080612/d5cc8e4b/attachment.htm