Giter VIP home page Giter VIP logo

Comments (13)

ataradov avatar ataradov commented on August 28, 2024

What hardware/OS this is? What does lsusb say? What does dmesg say when you plug in the debugger?

from edbg.

 avatar commented on August 28, 2024

thank you for your faster reply:

results : lsusb

aswin@aswin-fourthfrontier:~$ lsusb
Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 004: ID 0cf3:0036 Atheros Communications, Inc.
Bus 001 Device 003: ID 0c45:670b Microdia
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 03eb:2111 Atmel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

results dmesg when device plugged in:

[ 809.171466] usb 2-1: USB disconnect, device number 2
[ 822.126910] usb 2-1: new high-speed USB device number 3 using xhci_hcd
[ 822.255395] usb 2-1: config 1 interface 2 altsetting 0 bulk endpoint 0x84 has invalid maxpacket 64
[ 822.255404] usb 2-1: config 1 interface 2 altsetting 0 bulk endpoint 0x5 has invalid maxpacket 64
[ 822.255817] usb 2-1: New USB device found, idVendor=03eb, idProduct=2111
[ 822.255824] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 822.255829] usb 2-1: Product: EDBG CMSIS-DAP
[ 822.255832] usb 2-1: Manufacturer: Atmel Corp.
[ 822.255836] usb 2-1: SerialNumber: ATML2393031800001029
[ 822.256087] usb 2-1: ep 0x87 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 822.256098] usb 2-1: ep 0x6 - rounding interval to 128 microframes, ep desc says 255 microframes
[ 822.257965] hid-generic 0003:03EB:2111.0003: hiddev0,hidraw0: USB HID v1.11 Device [Atmel Corp. EDBG CMSIS-DAP] on usb-0000:00:14.0-1/input0
[ 822.258142] cdc_acm 2-1:1.1: ttyACM0: USB ACM device

thank you,

Aswin

from edbg.

ataradov avatar ataradov commented on August 28, 2024

That all looks good. I've never seen this error before, so I don't really know what may be wrong.

The only thing I can suggest is to run as root and see if that makes any difference.

from edbg.

 avatar commented on August 28, 2024

No, the same. I am using Debian 8 Jessie. But the same thing happened with ubuntu 14.04 as well(On the same machine). The application works fine in my other two laptops. I doubt there is some hardware related issues. Can you suggest a way to debug the code from hardware level?

Is there anything to be changed on boot setup? I am using "Dell Vostro 14 3000 Series"

Thank you,

Aswin

from edbg.

ataradov avatar ataradov commented on August 28, 2024

I really have no idea. I just used a standard Linux demo code as a base for the USB stuff , I have no deep knowledge of what it is doing under the hood and how it interacts with the OS. And without a way to reproduce, there is not much I can do to debug this.

from edbg.

 avatar commented on August 28, 2024

Okay, Thank you. :)

from edbg.

ataradov avatar ataradov commented on August 28, 2024

If you want to spend some time debugging this, then we can try.

For starters, I'd print out the value of 'path' in the "udev_list_entry_foreach(dev_list_entry, devices)" loop right after the line"path = udev_list_entry_get_name(dev_list_entry);".

This will show if it found more than one USB HID device and some of them are not behaving properly.

Alternatively, try to run the program when no debuggers are attached. If it fails the same way, then there is some weird device in the system and path printout will help to understand which one.

from edbg.

ataradov avatar ataradov commented on August 28, 2024

And if previous test shows that this is a problem, then simply change "check(parent, "unable to find parent usb device");" to "if (NULL == parent) continue;" to skip that device.

from edbg.

 avatar commented on August 28, 2024

Yes you are right. I am getting the same error when the debugger is unplugged as well. this is the printed output /sys/devices/pci0000:00/INT33C3:00/i2c-1/i2c-DLL0662:00/0018:06CB:2985.0001/hidr

from edbg.

 avatar commented on August 28, 2024

Yes.... We did it !!! Awesome !!! It works.

Thank you so much 👍

from edbg.

ataradov avatar ataradov commented on August 28, 2024

This is an I2C touchpad from Synaptics pretending to be a HID device. But it is not a part of the USB tree, obviously, so it has no parent. I'll change the code accordingly.

from edbg.

 avatar commented on August 28, 2024

Alex I am adding you to my linkedin network please accept my request. I need to learn lot from you.

from edbg.

ataradov avatar ataradov commented on August 28, 2024

Code updated.

from edbg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.