Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polar v650 #19

Open
ArsenyMironov opened this issue Sep 15, 2019 · 2 comments
Open

Polar v650 #19

ArsenyMironov opened this issue Sep 15, 2019 · 2 comments

Comments

@ArsenyMironov
Copy link

Hi!

I'm trying to use your software with Polar v650. The list command does see the device, but when I try to connect it I get an error

loophole(no device)>list
0 - Polar V650 (BUEY4HDMAIMVW8OJ)

loophole(no device)>connect 0
Traceback (most recent call last):
File "~/anaconda2/lib/python2.7/site-packages/loophole/main.py", line 300, in
main()
File "~/anaconda2/lib/python2.7/site-packages/loophole/main.py", line 293, in main
cli.cmdloop(__INTRO.format(version))
File "~/anaconda2/lib/python2.7/cmd.py", line 142, in cmdloop
stop = self.onecmd(line)
File "~/anaconda2/lib/python2.7/cmd.py", line 221, in onecmd
return func(arg)
File "~/anaconda2/lib/python2.7/site-packages/loophole/main.py", line 116, in do_connect
self.device.open()
File "~/anaconda2/lib/python2.7/site-packages/loophole/polar/init.py", line 667, in open
self.usb.open(self.usb_device)
File "~/anaconda2/lib/python2.7/site-packages/loophole/polar/init.py", line 587, in open
self.usb.open(usb_device)
File "~/anaconda2/lib/python2.7/site-packages/loophole/polar/init.py", line 502, in open
assert self.ep_out_0 is not None
AssertionError

Is it possible to solve?

Thanks!

@rsc-dev
Copy link
Owner

rsc-dev commented Oct 25, 2019

It is hard to tell based on this stack trace. It seems like USB access issue.

@edneville
Copy link

edneville commented Dec 29, 2019

I'm getting the same, here's a strace:

timerfd_settime(9, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=10051, tv_nsec=65525000}}, NULL) = 0
ioctl(10, USBDEVFS_SUBMITURB, 0x564355a911b0) = 0
poll([{fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLOUT}], 3, 60000) = 1 ([{fd=10, revents=POLLOUT}])
ioctl(10, USBDEVFS_REAPURBNDELAY, 0x7ffcb66a2f80) = 0
timerfd_settime(9, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(10, USBDEVFS_REAPURBNDELAY, 0x7ffcb66a2f80) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(9, TFD_TIMER_ABSTIME, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=10051, tv_nsec=65720000}}, NULL) = 0
ioctl(10, USBDEVFS_SUBMITURB, 0x564355a98b70) = 0
poll([{fd=6, events=POLLIN}, {fd=9, events=POLLIN}, {fd=10, events=POLLOUT}], 3, 60000) = 1 ([{fd=10, revents=POLLOUT}])
ioctl(10, USBDEVFS_REAPURBNDELAY, 0x7ffcb66a2f80) = 0
timerfd_settime(9, 0, {it_interval={tv_sec=0, tv_nsec=0}, it_value={tv_sec=0, tv_nsec=0}}, NULL) = 0
ioctl(10, USBDEVFS_REAPURBNDELAY, 0x7ffcb66a2f80) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(10, USBDEVFS_GETDRIVER, 0x7ffcb66a3580) = -1 ENODATA (No data available)
ioctl(10, USBDEVFS_SETCONFIGURATION, 0x7ffcb66a31ac) = 0
write(2, "Traceback (most recent call last"..., 35) = 35

I'm not sure if this will look familiar to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants