Op woensdag 27 juli 2016 16:10:36 UTC+2 schreef mwall:
>
>
>
> On Wednesday, July 27, 2016 at 9:03:02 AM UTC-4, Dennis slagers wrote:
>>
>> Lucky I saw that the 018rc8 = 0.18
>>
>>
>> https://github.com/weewx/weewx/commit/2f8c3ec69f3d662b7ddf43d266924f80ed500cda
>>
>> I have modified the driver a very little due to some raspberry pi issue 
>> (I think)
>> wrote a blog entry about it and also added previous suggestions
>>
>>
>> https://www.aroundmyroom.com/2016/07/17/weatherstation-and-te923-usb-issues-on-a-raspberry-pi/
>>
>> after 3 days it crashed due to not having my SD card size deployed 
>> totally. I was missing 6GB or so ;-) .. 
>> drive full . .(duh) .. 
>> fixed that with the piconfig.
>>
>> It's up 7 days now. Longest uptime was during my holiday 21 days, so we 
>> have some days to gooo .. 
>>
>>
>>
> dennis,
>
> thank you for documenting your steps in your blog posting.
>
> it is not clear whether the reset is necessary.  it is supposed to provide 
> a clean slate for the driver to start communicating with the usb.  however, 
> i think its actual efficacy depends on the operating system, libusb, and 
> pyusb versions.
>
> the bind command seems to be the important part here:
>
> echo -n $id:1.0 > /sys/bus/usb/drivers/usbhid/unbind
>
>
> what is $id?  you can find out by doing:
>
> cat /sys/bus/usb/drivers/usbhid/unbind
>
> so far this seems to be specific to rpi, but perhaps not all rpi.  could 
> you tell us which os you are running on your pi?
>
> m
>


sudo cat /sys/bus/usb/drivers/usbhid/unbind
cat: /sys/bus/usb/drivers/usbhid/unbind: Permission denied

sudo echo -n $id:1.0 > /sys/bus/usb/drivers/usbhid/unbind
-bash: /sys/bus/usb/drivers/usbhid/unbind: Permission denied

even as root .. permission denied... 


PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/";
SUPPORT_URL="http://www.raspbian.org/RaspbianForums";
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs";

drwxr-xr-x 2 root root    0 Jul 27 16:31 .
drwxr-xr-x 8 root root    0 Jul 27 16:31 ..
--w------- 1 root root 4096 Jul 27 16:31 bind
lrwxrwxrwx 1 root root    0 Jul 27 16:31 module -> ../../../../module/usbhid
-rw-r--r-- 1 root root 4096 Jul 27 16:31 new_id
-rw-r--r-- 1 root root 4096 Jul 27 16:31 remove_id
--w------- 1 root root 4096 Jul 27 16:31 uevent
--w------- 1 root root 4096 Jul 23 15:34 unbind
root@weatherstation:/sys/bus/usb/drivers/usbhid#

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to