My plans are to add support for this type of weather station to an existing open source weather server, wview. The software runs on a variety of *nix operating systems and I would like to take an approach that is most standard and more likely to work on many *nix systems. The sofware also runs on SBC computers like NLSU, Sheeva plug, etc. <br>
<br>Therefore my goal should be to take the aproach that will be more likely to work on any *nix system. So far I see that there are several options:<br><br>* user space solution: libusb + libhid<br><br>* hidraw driver API<br>
I suppose that most *nix have this driver loaded on the kernel. What I don't understand is what you suggest about the possibility of writting a backend for libhid using hidraw driver.<br><br>* usbserial <br>I don't know much about this option and I don't know if this specific device can run using this driver. Data is received through an interrupt but it seems that the reset command is transfered using control_data, not a write interrupt.<br>
<br><br>Thanks,<br>Jordi.<br><br><div class="gmail_quote">2009/7/30 Peter Stuge <span dir="ltr"><<a href="mailto:peter@stuge.se">peter@stuge.se</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jordi Puigsegur wrote:<br>
> [ 78.544058] usb 4-1: new low speed USB device using uhci_hcd and address 3<br>
<div class="im">> [ 78.718640] usb 4-1: configuration #1 chosen from 1 choice<br>
> [ 78.735138] generic-usb 0003:0FDE:CA01.0002: hiddev96,hidraw1: USB HID v1.10 Device [Universal Bridge] on usb-0000:00:1d.0-1/input0<br>
><br>
> The last three lines appear when the weather station is plugged in<br>
> the computer. Someone has pointed me out that in Ubuntu Jaunty the<br>
> usbserial is built-in in the kernel, however I don't see it in<br>
> dmesg. I suppose that is not the problem.<br>
<br>
</div>If I were you I would just program the hidraw API directly to begin<br>
with. Then maybe look into making a hidraw backend for libhid.<br>
<br>
Is portability across many operating systems important for you?<br>
<br>
<br>
//Peter<br>
<br>
_______________________________________________<br>
libhid-discuss mailing list<br>
<a href="mailto:libhid-discuss@lists.alioth.debian.org">libhid-discuss@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss</a><br>
<a href="http://libhid.alioth.debian.org/" target="_blank">http://libhid.alioth.debian.org/</a><br>
</blockquote></div><br>