You are not logged in.

#1 2016-12-15 04:50:47

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

[Solved] dfu-util does not recognize Particle Photon; works on Mac

When connected via USB,

dfu-util -l

is supposed to list the Particle Photon [1], but it does not on Arch. It works with the same version of dfu-util on the Mac.

The device is being created as

crw-rw-rw- 1 root uucp 166, 0 Dec 15 04:44 /dev/ttyACM0
lsusb -v

shows it as:

Bus 008 Device 004: ID 2b04:c006  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x2b04 
  idProduct          0xc006 
  bcdDevice            2.50
  iManufacturer           1 Particle
  iProduct                2 Photon
  iSerial                 3 2A0032001751353338363333
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           84
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          4 Composite
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bFunctionProtocol       1 AT-commands (v.25ter)
      iFunction              10 Photon Serial
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceProtocol      1 AT-commands (v.25ter)
      iInterface             10 Photon Serial
      CDC Header:
        bcdCDC               1.10
      CDC Call Management:
        bmCapabilities       0x00
        bDataInterface          1
      CDC ACM:
        bmCapabilities       0x02
          line coding and serial state
      CDC Union:
        bMasterInterface        0
        bSlaveInterface         1 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              16
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface             10 Photon Serial
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              9 Photon Control Interface
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0003
  Self Powered
  Remote Wakeup Enabled

Any ideas?

[1] https://store.particle.io/collections/photon

Last edited by jernst (2016-12-15 18:22:23)

Offline

#2 2016-12-15 08:20:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,392

Re: [Solved] dfu-util does not recognize Particle Photon; works on Mac

random guess, did you try to sudo it? (at least you need UID to write to the device, but I don't know whether that's required for the call)

Online

#3 2016-12-15 17:26:24

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Re: [Solved] dfu-util does not recognize Particle Photon; works on Mac

Permissions was my first, guess, too, but that's not it. No change when executed as root.

Offline

#4 2016-12-15 18:20:17

mathben
Member
From: Montreal
Registered: 2013-04-06
Posts: 8

Re: [Solved] dfu-util does not recognize Particle Photon; works on Mac

You need to enable DFU mode on Photon to let dfu-util recognize it.
https://docs.particle.io/guide/getting- … re-upgrade-

Offline

#5 2016-12-15 18:22:06

jernst
Member
From: Silicon Valley
Registered: 2014-03-04
Posts: 307

Re: [Solved] dfu-util does not recognize Particle Photon; works on Mac

Thanks, @mathben. You are correct. Sorry about this, operator error.

Offline

Board footer

Powered by FluxBB