更新时间:2023-11-20 14:02:34
请阅读您的PM',可通过右上角的链接访问页面。
你试图从/ dev /访问设备,这意味着你有没安装它。在Linux中,设备需要先安装才能访问。你在跑什么味道(发行)?我知道Debian将自动挂载并将其放在/ media / usbdisk /中,因此您可以尝试在/或/ mnt目录中查找媒体或usb文件夹。
请阅读你的PM',可以通过页面右上角的链接访问。
你正在尝试从/ dev /访问设备,这意味着您没有安装它。在Linux中,设备需要先安装才能访问。你在跑什么味道(发行)?我知道Debian将自动挂载并将其放在/ media / usbdisk /中,因此您可以尝试在/或/ mnt目录中查找媒体或usb文件夹。
嗨
我使用的是Debian风味。
我试图做的是使用C程序访问USB设备,就像在串行通信中访问COM端口一样。
谢谢
嗨
我正在使用Debian风味。
我想要做的是使用C程序访问USB设备,就像在串行通信中访问COM端口一样。
谢谢
仅仅因为它是一个不同的设备意味着你将无法像访问串行通信那样访问它。我的意思是,可以编写包装器和所有内容来创建该功能,但是您需要以不同的方式访问它,因为它是USB设备而不是串行设备。
什么版本的Debian?你检查了/ media文件夹吗?
Hi
I am trying to write a file to a USB device using C program..
When i try to open the USB port, i find the foll error
"open_port: unable to open usbdev2.1_ep81: No such file or directory"
The command to open the USB port:
Please read your PM''s, accessible via the link in the top right corner of the page.
You are trying to access the device from /dev/, which means you have not mounted it. In Linux the device needs to be mounted before it can be accessed. What flavor (distribution) are you running? I know Debian will automount and put it in /media/usbdisk/ so you might try looking around your / or /mnt directory for a ''media'' or ''usb'' folder.
Please read your PM''s, accessible via the link in the top right corner of the page.
You are trying to access the device from /dev/, which means you have not mounted it. In Linux the device needs to be mounted before it can be accessed. What flavor (distribution) are you running? I know Debian will automount and put it in /media/usbdisk/ so you might try looking around your / or /mnt directory for a ''media'' or ''usb'' folder.Hi
I am using Debian flavor.
What i m trying to do is use a C program to access USB device in the same way as the COM port are accessed in Serial Communication.
Thanks
Hi
I am using Debian flavor.
What i m trying to do is use a C program to access USB device in the same way as the COM port are accessed in Serial Communication.
ThanksJust because it is a different device will mean that you will not be able to access it the same way you would access a serial communication. I mean, it''s possible to write wrappers and everything to create that functionality, but you will need to access it differently, just because it is a USB device and not a serial device.
What version of Debian? Did you check the /media folder?