Open sysmaster80 opened 9 years ago
Hi, It looks like you don't have permission to configure the USB device (see last line of your log)
-> try to run the app as root (with sudo), it should work better.
To avoid this you should write a udev rule to change the permissions to your owl device. (https://www.google.be/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=udev+rules+usb+device+permissions)
Best regards, Philippe
Hi Philippe,
Thanks, for the swift reply, I'm getting closer.
And it has nothing to do with your software, more an issue within Ubuntu 15.x.
I syslogged a fresh boot and found that the cm160 is not started, initially I had also the impression that there was also a screw up on the usb/tty port, but that not confirmed yet.
(note: under 14.x it worked out of the box, and all files are still in the right locations)
Then I started cm160 as root in a terminal, and it was unable to communicate with the device, until I dis/reconnected it, now it is running flawless... probably until the next reboot.
So, I will be digging some more, you're of the hook (not that I ever expected an error on your side)
Some sideline information, I'm also Belgian, however do no longer master the French language, and live in Thailand. I modified your web pages so they match local conditions, and added a module that calculates my upcoming bill, based on the how they charge it here. KW rates change depending on the number of KW used within a period, whereby a period is one month but depending on district/area has a different cut-off date.
Thanks for your help,
Luc
On 10/23/2015 08:54 PM, Philippe Cornet wrote:
Hi, It looks like you don't have permission to configure the USB device (see last line of your log)
-> try to run the app as root (with sudo), it should work better.
To avoid this you should write a udev rule to change the permissions to your owl device. (https://www.google.be/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=udev+rules+usb+device+permissions)
Best regards, Philippe
— Reply to this email directly or view it on GitHub https://github.com/cornetp/eagle-owl/issues/16#issuecomment-150579273.
After I upgraded the system to Ubuntu 15.x, the data collection from the device is no longer working. I think that it is not an issue with your software but with the usb link, however my knowledge of Linux is to limited to find the error. attached some clipping from Syslog, where I disconnected and reconnected the usb cable, and then restarted the cm160 program, and they are no longer talking to each other. (sorry no attachment, I can't upload a txt file, so... see below) Worked perfectly under 14.x.
I would appreciate if you could put me on the right track to fix it.
Best regards,
Luc
Oct 23 19:34:44 workstation kernel: [22537.610588] usb 2-3: USB disconnect, device number 4 Oct 23 19:34:44 workstation kernel: [22537.610781] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0 Oct 23 19:34:44 workstation kernel: [22537.610807] cp210x 2-3:1.0: device disconnected Oct 23 19:34:44 workstation ModemManager[656]: (tty/ttyUSB0): released by modem /sys/devices/pci0000:00/0000:00:02.0/usb2/2-3
Oct 23 19:34:48 workstation kernel: [22541.771327] usb 2-3: new full-speed USB device number 5 using ohci-pci
Oct 23 19:34:48 workstation kernel: [22541.996613] usb 2-3: New USB device found, idVendor=0fde, idProduct=ca05
Oct 23 19:34:48 workstation kernel: [22541.996626] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct 23 19:34:48 workstation kernel: [22541.996634] usb 2-3: Product: OWL Wireless Electricity Monitor USB version is connected
Oct 23 19:34:48 workstation kernel: [22541.996639] usb 2-3: Manufacturer: Silicon Labs
Oct 23 19:34:48 workstation kernel: [22541.996644] usb 2-3: SerialNumber: 001FD7B0
Oct 23 19:34:48 workstation kernel: [22542.003934] cp210x 2-3:1.0: cp210x converter detected
Oct 23 19:34:48 workstation kernel: [22542.183989] usb 2-3: reset full-speed USB device number 5 using ohci-pci
Oct 23 19:34:48 workstation kernel: [22542.391669] usb 2-3: cp210x converter now attached to ttyUSB0
Oct 23 19:34:48 workstation mtp-probe: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:02.0/usb2/2-3"
Oct 23 19:34:48 workstation mtp-probe: bus: 2, device: 5 was not an MTP device
Oct 23 19:34:49 workstation colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1
Oct 23 19:34:50 workstation gnome-session[1702]: Wait for cm160 device to be connected
Oct 23 19:34:50 workstation gnome-session[1702]: Found compatible device #0: 0fde:ca05 (005)
Oct 23 19:34:50 workstation gnome-session[1702]: Found 1 compatible device
Oct 23 19:34:50 workstation gnome-session[1702]: usb_set_configuration returns -1 (could not set config 1: Operation not permitted)