half2me / antgo Goto Github PK
View Code? Open in Web Editor NEWANT+ Library in GO
License: MIT License
ANT+ Library in GO
License: MIT License
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?
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
I am trying to run through the instructions and not sure where to find antserver.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.