All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

CDC-ACM device - pull data using linux

Warning.... I do not know much about embedded systems or much in this realm of programming/electronics... I bought a Dexcom CGM meter for blood glucose and then only after found out that my phone was ...
0
votes
0answers
20 views

USB virtual serial device continuously disconnects/reconnects until data is read

I have a USB device that creates a virtual COM port on Raspbian Linux. The device is detected, and the device node (/dev/serial1) is created fine. If I then use screen the device steams data to me ...
2
votes
1answer
29 views

Merge two usb ports/two keyboards into one

I use two keypads (Koolertron AE-SMKD72 Type A), that I use as one split keyboard. But they are recognized as two separate keyboards, what causes some problems: I use an alternative keyboard layout ...
1
vote
1answer
29 views

Why does a single Yubico show as multiple devices, what's the difference between hid-generic and input?

When I plug in my Yubikey it shows as, usb 1-1: new full-speed USB device number 46 using xhci_hcd usb 1-1: New USB device found, idVendor=1050, idProduct=0407, bcdDevice= 5.12 usb 1-1: New USB ...
1
vote
1answer
55 views

Phony USB hubs in Linux

Using Ubuntu 18.04, with my desktop motherboard I obtain: $ lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=...
0
votes
0answers
37 views

Create udev rules to run a shell script after insert an USB device

Actually, I have two lines of rules in my rules.d folder: SUBSYSTEM=="tty", ATTRS{idVendor}=="23b8", ATTRS{idProduct}=="0005", SYMLINK+="ttyACM-Daruma", MODE="0777" SUBSYSTEM=="tty", ATTRS{idVendor}==...
0
votes
0answers
163 views

How to resume the USB device after selective suspend configuration in Ubuntu host

I have Linux based development board on which DWC3 USB controller driver is present. I have implemented Link Power Management(L2 state) in the usb driver. Ubuntu is the host which on which my ...
0
votes
0answers
97 views

Handling USB endpoint Zero Length Packet request in Linux Kernel USB driver

I have a test app which basically sends block of characters over USB by using NCM connection. When packet size is exact 512 bytes i see NCM is getting hung. By analyzing further i have found that it ...
0
votes
1answer
782 views

How to write data to a HID USB device?

I have to develop an application to communicate with a C8051F340-TB board from Silicon Labs through USB (just to be clear, I am using the P3 connector from fig. 4 of previous link, not the USB Debug ...
2
votes
1answer
113 views

How to find out two usb devices are on the same hub

I have a microcontroller board which has a USB hub to which several CP2108 USB to serial modules are connected and one PIC Microcontroller is connected. The USB hub is connected to Laptop USB Port.. ...
1
vote
0answers
183 views

Specify Function on USB Device

I am trying to make a composite USB device using ConfigFS on my Raspberry Pi Zero. I followed this guide to create a USB device: http://isticktoit.net/?p=1383 I have set up a standard USB device ...
4
votes
1answer
272 views

Prevent Linux kernel from setting USB device configuration

I'm trying to write a Linux driver for an existing USB device, based on captured USB communication. The device has multiple configurations. Unfortunately, it seems like the device doesn't follow the ...
0
votes
0answers
188 views

How do I mount USB CDROM Drive

I have an external usb cdrom drive but cannot find it in RHEL 7.4. The attached image is the results of my "ls /dev/". When I execute the "cat /var/log/dmesg | grep usb" I get the below results but ...
2
votes
1answer
189 views

What Happens to /dev/bus/usb After 1001 Connections

/dev/bus/usb/*/* lists all the usb devices connected on Alpine Linux. For example a phone could be /dev/bus/usb/001/009. When that phone is reconnected it will be /dev/bus/usb/001/010, i.e. it ...
2
votes
0answers
468 views

Binding linux gadget to udc driver

I want to bind my g_hid gadget to the usb otg port on my board. I Know that using the configFS one can bind the gadget to a UDC driver just by pass the name of the otg port, as explained here but if ...
0
votes
0answers
96 views

Microsoft keyboard media keys and USB hub

I have a puzzle: 1) Debian 4.9.65 system 2) Microsoft Natural Keyboard 4000 3) Acer monitor working as USB hub When the keyboard is plugged to the monitor's USB hub, it mostly works, visible in lsusb ...
25
votes
3answers
3k views

How to safely insert USB stick/device to Linux computer?

When inserting a USB stick or device to computer, there is always the risk that the device is malicious, will act as an HID and potentially do some damage on the computer. How can I prevent this ...
0
votes
2answers
36 views

Need to access USB

Have ~300Gig of data on a usb . All data came from OSX and trying to move them onto a windows machine. I was able to see the files on my linux (ubuntu 16.04) machine , but after sticking the usb ...
0
votes
1answer
843 views

How to make g_printer (USB-gadget printer) work in Raspberian Pi

I'm trying to use gadget mode on a Raspberry Pi Zero W and the g_printer device to emulate a printer so I can capture data, process it, and send it to some APIs over wi-fi. I've set up the board using ...
2
votes
1answer
1k views

Use USBIP for devices that are being removed and reconnected

I am using usbip and a raspberry pi to extend the range of a wireless keyboard to a computer that is just a tad too far away for the keyboard to work reliably on its own. Sometimes the USB receiver ...
1
vote
0answers
242 views

What determines /dev entry?

I am trying to use a package called "linux-gpib" to interface with a USB-GPIB adapter. I installed the driver, and didn't get any errors, and plugged in my device. In Python there is a wrapper for ...
1
vote
2answers
707 views

USB 3.1 hub shown as USB 2.0

My problem is the following. My system is detecting my USB 3.1 Gen1 hub (onboard hub). First, I confirmed that my motherboard does indeed have support for USB 3.1. I have an Asus H97-PRO which has ...
3
votes
0answers
250 views

USB 3.0 XCHI endpoints

I am having a very hard time finding USB-related debugging utilities or strategies for linux. I have a USB 3.0 device that fails when connected to an EspressoBin 3.0 port with a Not enough host ...
3
votes
1answer
593 views

Detect change in usb gadget state

Problem: How can I detect when the gadget is or is not connected to a host from the gadget itself? Background: The g_mass_storage Linux kernel module can be used to provide a mass storage device via ...
3
votes
0answers
3k views

USB cdc_acm driver not assigning Data interface to any port

I have a USB CDC-ACM device emulating Serial over USB communication. The CDC Communications and Data interfaces are shown respectively on 2-1:1.0 (Comm) and 2-1:1.1 (Data) interface descriptors, and ...
0
votes
1answer
575 views

why usb is not working with Centos 5 while it is working with other OSs

I have a box with gigabyte GA-B150-HD3 motherboard, I installed Centos 7 on its SSD and every thing worked fine. But for some reason I have to install Centos 5 on it and I installed Centos 5.11 on it. ...
8
votes
1answer
377 views

How to keep USB device (action cam) from going to sleep?

I've got an action cam (iON Air Pro Lite WiFi). It uses an SD card and can be connected to the PC via USB cable. It comes with only Windows and Mac support. However, once connected via USB and turned ...
1
vote
1answer
58 views

USB3--> ethernet --> USB3 extension [closed]

I'm interested in greatly extending (~100m) a USB3 connection for a robotics project. Does anybody have any suggestions? I would love to be able to go: USB3 hub with several clients ==> some device ==...
5
votes
0answers
1k views

Android device not recognized by lsusb anymore

I know this question has been asked before, however none of the threads were helpful. My android device is not being recognized anymore. When I connect my phone, it does not show the USB-Debugging ...
1
vote
0answers
215 views

Mount two same usb device Always in the same port UBUNTU

need to mount two device (identical/equal) at the same port...not difficult but look this: /dev/input/event6 - Sycreader_RFID_Technology_Co.__Ltd_SYC_ID_IC_USB_Reader_08FF20140315 /dev/input/event2 - ...
0
votes
1answer
721 views

How to get a USB device path by its idVendor and idProduct? [closed]

Now I can get a USB device's idVendor and idProduct. How to use them to get its path like /dev/ttyACM0 or /dev/ttyUSB0? The next function needs this path instead of its idVendor and idProduct. Notice:...
1
vote
2answers
417 views

Is value of bInterfaceProtocol fixed or decided by Kernel?

Let's say: $ ls -l /dev/input/by-id lrwxrwxrwx 1 root root 10 Feb 10 03:47 usb-Logitech_USB_Keyboard-event-if01 -> ../event22 lrwxrwxrwx 1 root root 10 Feb 10 03:47 usb-Logitech_USB_Keyboard-event-...
2
votes
1answer
44 views

Can I list my usb content without mounting it?

I am wondering if there was a way to list files on a device without mounting it (i.e la output )
2
votes
1answer
428 views

USB devices not recognized when laptop runs on battery

When I use my laptop on battery, no USB device I connect (i.e. memory stick, external hard drive or mouse) is recognized on either USB 2.0 or USB 3.0 ports. I found two workarounds, which I, however, ...
1
vote
1answer
232 views

Does Linux cut power to usb devices that consume too much power?

If I short an Arduino, will Linux detect that something is wrong and dissable the port? The Mabook will display a warning and dissable the device.
4
votes
3answers
777 views

USB/HDMI adapter detected only as audio adapter

My employers want to try to send a video signal from a laptop in their storage room to a tv they have mounted in the dining room (restaurant). There is no HDMI output from this laptop (Toshiba ...
1
vote
2answers
761 views

Android device is stopped getting detected in linux

My motorola android mobile was getting detected initially in linux mint 17.3 . Then I was using it for android studio where mobile is getting detected and could do testing android app via my mobile. ...
1
vote
1answer
2k views

what is the difference between usbtouchscreen and usbhid?

I am trying to understand the touchscreens. And I came across these two kernel modules: usbtouchscreen and usbhid. I am confused as what is exactly the difference ? Lets assume I have a touchscreen ...
0
votes
1answer
26 views

USB Drive Password when copying data

Is there a possible way or software where I can still be able to save files to my USB Drive but it will require password when I copy a file from my USB Drive to another computer? I tried write-...
1
vote
1answer
685 views

How do I access USB endpoints with recent Linux kernels?

I am modifying some dated code (from year 2011; see here) that accesses a USB endpoint in the path: /sys/class/usb_endpoint/usbdevBUS.DEVICE_epENDPOINT/device where "BUS", "DEVICE", and "ENDPOINT" ...
4
votes
2answers
538 views

How can I make a udev rule using a “sibling” device's serial number (for USB devices with no unique serials)?

I have testing equipment that is made-up of the following: a USB Hub connected to the master PC, the hub is embedded in the test jig and is used so that we have only 1 USB cable running from the jig ...
7
votes
1answer
10k views

Safely remove usb from linux device [duplicate]

I am using a USB with an embedded device running linux. The issue is that in some cases when I unmount the usb by giving the command umount /media/sda1 the unmount is successful but when I proceed to ...
0
votes
1answer
2k views

All USB devices that were connected, EVER

How do I find all the USB devices that were connected, since the installation of the OS? I suspect that the path /var/run/udev/data has this info, but not sure. In addition, how do I filter the ...
0
votes
0answers
86 views

How to get the photos off a Windows phone

How can I see the photos taken with a Windows phone? I'm used to simply plugging in a phone using an USB cable and being able to browse to the folder containing the photos. In this case however, ...
4
votes
2answers
1k views

USB bus port number vs USB physical position

I have multiple devices connected to 3 USB ports. I can list them connected with some identification numbers through the following commands: # cd /sys/bus/usb/drivers/usb # ls 1-1 1-1.2 1-1.3 ...
0
votes
0answers
119 views

USB dongle not accessible in Linux

I have a USB dongle (security token) to connect company servers; in fact there is a private LAN with some servers in it. The company has got me a public address with this security token to connect to ...
6
votes
1answer
1k views

How to logically eject/disconnect & reattach a usb device (dongle)?

We've bought a commercial application who just work only if their dongle usb is connected to the server. However sometimes the application can not recognize the dongle, so it doesn't work, but if ...
0
votes
1answer
771 views

How do I load a kernel module later in the boot sequence?

I've been experimenting with the g_mass_storage kernel module. I first tried loading it by putting it in /etc/modules and the options in /etc/modprobe.d/file.conf This worked, but when I connected ...
2
votes
1answer
688 views

lsusb shows USB devices that are not connected

I have the weird issue that lsusb shows USB devices that are not connected. We have a couple of devices connected via USB. To disconnect them from the system we disable the power to the USB port with ...
1
vote
0answers
315 views

Ethernet USB dongle works then randomly drops until restart

I've been using xubuntu 14.04 as my daily driver for a while now, as I've been getting into web development. I'm using a dell ultrabook that has no ethernet port (XPS 12 9Q33), and so I have usb 2.0 ...