Git Product home page Git Product logo

antgo's Introduction

The ANT+ Library for Go

antgo's People

Contributors

half2me avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

antgo's Issues

‘libusb_set_debug’ is deprecated ERROR

I am completely new to golang, so this is probably my fault.

I did 'go mod init antdump' in /cmd/antdump, and then I did go get commands for all the modules

Then it gave me a libusb error. So, following advice online I ran 'sudo apt-get install libusb-1.0-0-dev'

And now, when I run this:
~/projects/antgo/cmd/antdump$ go run antdump.go -driver=usb -pid=0x1008 -ws="ws://localhost:8080"

I get this:
github.com/kylelemons/gousb/usb
cgo-gcc-prolog: In function ‘_cgo_f568adb1d92f_Cfunc_libusb_set_debug’:
cgo-gcc-prolog:505:2: warning: ‘libusb_set_debug’ is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations]
In file included from ../../../../go/pkg/mod/github.com/kylelemons/[email protected]/usb/libusb.go:27:
/usr/include/libusb-1.0/libusb.h:1362:18: note: declared here
1362 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
| ^~~~~~~~~~~~~~~~
2022/10/24 16:12:59 Starting Device
2022/10/24 16:12:59 Opening USB device
2022/10/24 16:12:59 Loop Started
2022/10/24 16:12:59 Loop stopped!
2022/10/24 16:12:59 Closing USB device
2022/10/24 16:13:46 handle_events: error: libusb: interrupted [code -10]

Any ideas?

ANTUSB2 Not receiving any data (Windows, Linux)

Hello I'm trying to run the antdump example. I used both Linux and windows, on both it doesn't seem to receive any data

On windows I get:

2021/08/17 12:42:06 Starting Device
2021/08/17 12:42:06 Opening USB device
... then the app just stays there

On Linux:

2021/08/17 14:53:06 Starting Device
2021/08/17 14:53:06 Opening USB device
2021/08/17 14:53:06 Loop Started
2021/08/17 14:53:06 Loop stopped!
2021/08/17 14:53:06 Closing USB device
2021/08/17 14:53:07 handle_events: error: libusb: interrupted [code -10]
2021/08/17 14:53:14 handle_events: error: libusb: interrupted [code -10]
...

(should't here the app terminate since stuff seem to be closing ??)

I also took a peak on the dongle's traffic packages with USBTrace on windows and I think no data is being sent out.

My device is an ant+ environment sensor so 4Hz(8192) (which is the default channel frequency - your lib doesn't expose that Setting) should be working with the configuration done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.