-
Notifications
You must be signed in to change notification settings - Fork 20
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
How to Connect Via USB and Linux #31
Comments
This library works fabulously well under linux, no weird vendor drivers required.
|
You can try to run it with |
Thanks for your reply and example this is very helpful !! I tried querying the USB ports on my system while the Radiacode 101 is connected and from what I can see it doesn't show up ? Are you able to see it when querying your USB ports from the terminal ? This is what I get when I query with it connected to my system:
Thanks I will try this and report back! I appreciate the support a lot !! |
Radiacode devices do not show up as a tty, they're connected as a generic USB device. In this library all the "business logic" necessary to interact with a radiacode device is in userspace. Are you trying to communicate with your device using a VM? If so, you might also need to check your USB pass-through settings in your hypervisor. dmesg
lsusb
lsusb -v
|
Gonna toot my own horn a little bit and point you at some other things I've written to interact with radiacode on linux, using this library: https://github.com/ckuethe/radiacode-tools This code works for me on both x86_64, armhf, and aarch64. I don't have any riscv or i686 boards (I guess I could run using qemu) but really this library should work just about anywhere that libusb works. |
I am not using a VM, I am using a Thinkpad P15 Gen2i with Ubuntu Budgie 22.04 LTS latest updates and patches via Ubuntu Pro
I will check out this project as well !! Thanks for such a quick response overall !! I appreciate it a lot !! |
I would be remiss if I didn't also say have a look at the included examples, which I used in order to write my tools: https://github.com/cdump/radiacode/tree/master/radiacode-examples Once you can make the examples work on your machine, you could do a PR to improve the documentation for the next person to find the library. You're approaching this with fresh eyes; what would you have liked to see in the docs to make it easier to start working with RadiaCode devices on linux? :) |
I just got the basic example working properly and retooled my own code, now my script successfully connects to the hardware and prints back some device information. Now I just need to figure out how to sample data and get it into a CSV file entry. Thank you so much for you help so far ! I was thinking a Markdown page that describes the API for the radiacode class would be very helpful. I'm new to Python development and spent most of my time with C for embedded microcontrollers, I'm learning fast but the more information the easier it can be for me. |
I should mention that my project is open source and available here ! Still workign through getting the correct data in the correct columns but I've made a lot of progress today and I'm very thankful for all the help everyone has been giving me !! Thank you so much ! |
There isn't much documentation regarding the examples on how to connect via USB how do I go about doing it ? The documentation shows use for Bluetooth passing a MAC address as a command line argument to get it to connect tot he script. I want to use USB.
Also does this library work under Linux ? I was able to install it via pip no problems but given that the radiacode products don't work under Linux and there isn't a Phyton USB Driver for Linux as far as I know I'm not sure if it will work. Can anyone add anything ?
The text was updated successfully, but these errors were encountered: