Use data from the USB port

More
5 years 3 months ago #214840 by bierluiz
Replied by bierluiz on topic Use data from the USB port
bash: /usr/local/sbin:/usr/local/bin:usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Please Log in to join the conversation.

More
5 years 3 months ago #214844 by Aciera
Replied by Aciera on topic Use data from the USB port
Then I'd say those are all the directories (separated by ':') that have been added to your $PATH and your component needs to be in one of those, I think.

Please Log in to join the conversation.

More
5 years 3 months ago #214845 by bierluiz
Replied by bierluiz on topic Use data from the USB port
Ok I found the folder, but I don't have permission to save there

Please Log in to join the conversation.

More
5 years 3 months ago #214846 by Aciera
Replied by Aciera on topic Use data from the USB port
Yes, those are system folders. So maybe try sudo in front of the terminal command. Or open an filemanager with elevated privileges like 'sudo nemo'

Please Log in to join the conversation.

More
5 years 3 months ago #214847 by andypugh
Replied by andypugh on topic Use data from the USB port

Ok I found the folder, but I don't have permission to save there
 
As I said, you will need to use sudo

sudo cp thefile /usr/bin/thefile

 

Please Log in to join the conversation.

More
5 years 3 months ago #215003 by bierluiz
Replied by bierluiz on topic Use data from the USB port
Ok, I solved this problem.

Now I need to import the pyusb library. How exactly do I do that?

Please Log in to join the conversation.

More
5 years 3 months ago #215004 by rodw
Replied by rodw on topic Use data from the USB port
pypi.org/project/pyusb/
Code:
pip install pyusb

Please Log in to join the conversation.

More
5 years 3 months ago #215021 by bierluiz
Replied by bierluiz on topic Use data from the USB port
Is it possible to develop a realtime component to do this?

An userspace component may not be fast enough for what I am trying to do.

Please Log in to join the conversation.

More
5 years 3 months ago #215029 by andypugh
Replied by andypugh on topic Use data from the USB port

Is it possible to develop a realtime component to do this?

An userspace component may not be fast enough for what I am trying to do.
I don't think that realtime has access to the USB port. (And USB itself is not realtime) 

Please Log in to join the conversation.

More
5 years 3 months ago #216113 by bierluiz
Replied by bierluiz on topic Use data from the USB port
I am having a lot of trouble to install the libraries because of the Linux version I am using (10.04)

The website which it gathers the libraries from does not support Ubuntu 10.04 anymore.

Updating Linux version is not an option at the moment.

Any ideas?

Please Log in to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum