![]() |
Access USB from Java
Hi all,
I would like to inquire about accessing the USB port from Java. How would one go about doing that? My idea is to write a Linux kernel module to transport data from a coprocessor handling video camera data to the roboRIO via USB. Provided that I do this, how would I go about accessing said USB data from Java on the roboRIO? PS: I want to use a coprocessor to handle video data because I want to run heavy openCV code to handle the camera feed. Despite the fact that the roboRIO is a dual-core processor, I am afraid of the 667 MHz clock rating being too slow to run the robot and the vision processing code without causing some hiccups. Alex Brinister |
Re: Access USB from Java
Why not use a more supported communication method, like I2C, SPI, or ethernet? What coprocessor are you using?
I would assume that someone who's smart enough to write a kernel module would also be able to figure out how to access that data in java. I don't know how to do either. |
Re: Access USB from Java
Create a SerialPort object and select kUSB in the constructor.
|
Re: Access USB from Java
I was thinking about an Intel NUC we have sitting around. It has an i3 processor and we have used it in the past for vision processing with success.
I don't yet actually know how to write a kernel module but I was going to learn. We have had issues using Ethernet for that type of thing in competition. There are a lot of hiccups processing the data. Thanks, Pault. Alex Brinister |
Re: Access USB from Java
Quote:
|
| All times are GMT -5. The time now is 03:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi