issue with BeeHive204 Programmer

hi,
I have a connecting issue with BeeHive204 Programmer
(http://www.elnec.com/en/products/production-programmers/beehive204/)

When I plug device:

Oct 22 09:38:45 USBRedirectP01 kernel: [ 1458.768704] usb 1-1.5: new high-speed USB device number 5 using dwc_otg
Oct 22 09:38:45 USBRedirectP01 kernel: [ 1458.869166] usb 1-1.5: New USB device found, idVendor=0424, idProduct=2504
Oct 22 09:38:45 USBRedirectP01 kernel: [ 1458.869196] usb 1-1.5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:38:45 USBRedirectP01 kernel: [ 1459.130409] hub 1-1.5:1.0: USB hub found
Oct 22 09:38:45 USBRedirectP01 kernel: [ 1459.130860] hub 1-1.5:1.0: 4 ports detected
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.408702] usb 1-1.5.1: new high-speed USB device number 6 using dwc_otg
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.509172] usb 1-1.5.1: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.509201] usb 1-1.5.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.588716] usb 1-1.5.2: new high-speed USB device number 7 using dwc_otg
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.689192] usb 1-1.5.2: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.689220] usb 1-1.5.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.768782] usb 1-1.5.3: new high-speed USB device number 8 using dwc_otg
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.869180] usb 1-1.5.3: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.869209] usb 1-1.5.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1459.948723] usb 1-1.5.4: new high-speed USB device number 9 using dwc_otg
Oct 22 09:38:46 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1/product, error 2 (No such file or directory)
Oct 22 09:38:46 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1151
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1460.049193] usb 1-1.5.4: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:38:46 USBRedirectP01 kernel: [ 1460.049222] usb 1-1.5.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.2/product, error 2 (No such file or directory)
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1152
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.3/product, error 2 (No such file or directory)
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1153
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.4/product, error 2 (No such file or directory)
Oct 22 09:38:47 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1154

When I try to connect the first usb (there are 4) on the client:
Oct 22 09:41:52 USBRedirectP01 logger: Authorizing -> '1393' '1180' 's_user (s_user)' '192.168.0.75' ''
Oct 22 09:41:52 USBRedirectP01 logger: Authorized!
Oct 22 09:41:53 USBRedirectP01 kernel: [ 1646.268725] usb 1-1.5.1: reset high-speed USB device number 6 using dwc_otg
Oct 22 09:41:53 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 BOUND to connection 3
Oct 22 09:41:54 USBRedirectP01 kernel: [ 1647.513928] usb 1-1.5.1: USB disconnect, device number 6
Oct 22 09:41:54 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 SURPRISE UNBOUND from connection 3
Oct 22 09:41:54 USBRedirectP01 vhusbdarmpi2[2423]: Unmanaging device 1151
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.618726] usb 1-1.5.1: new high-speed USB device number 10 using dwc_otg
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719182] usb 1-1.5.1: config 1 interface 0 altsetting 1 bulk endpoint 0x81 has invalid maxpacket 64
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719211] usb 1-1.5.1: config 1 interface 0 altsetting 1 bulk endpoint 0x1 has invalid maxpacket 64
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719238] usb 1-1.5.1: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719257] usb 1-1.5.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:41:59 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1/product, error 2 (No such file or directory)
Oct 22 09:41:59 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1151

When I try the second time:
Oct 22 09:41:52 USBRedirectP01 logger: Authorizing -> '1393' '1180' 's_user (s_user)' '192.168.0.75' ''
Oct 22 09:41:52 USBRedirectP01 logger: Authorized!
Oct 22 09:41:53 USBRedirectP01 kernel: [ 1646.268725] usb 1-1.5.1: reset high-speed USB device number 6 using dwc_otg
Oct 22 09:41:53 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 BOUND to connection 3
Oct 22 09:41:54 USBRedirectP01 kernel: [ 1647.513928] usb 1-1.5.1: USB disconnect, device number 6
Oct 22 09:41:54 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 SURPRISE UNBOUND from connection 3
Oct 22 09:41:54 USBRedirectP01 vhusbdarmpi2[2423]: Unmanaging device 1151
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.618726] usb 1-1.5.1: new high-speed USB device number 10 using dwc_otg
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719182] usb 1-1.5.1: config 1 interface 0 altsetting 1 bulk endpoint 0x81 has invalid maxpacket 64
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719211] usb 1-1.5.1: config 1 interface 0 altsetting 1 bulk endpoint 0x1 has invalid maxpacket 64
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719238] usb 1-1.5.1: New USB device found, idVendor=1393, idProduct=1180
Oct 22 09:41:59 USBRedirectP01 kernel: [ 1652.719257] usb 1-1.5.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Oct 22 09:41:59 USBRedirectP01 vhusbdarmpi2[2423]: Warning, could not open device product file /sys//devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5.1/product, error 2 (No such file or directory)
Oct 22 09:41:59 USBRedirectP01 vhusbdarmpi2[2423]: Found High speed device [1393:1180] "0x1393, 0x1180" at address 1151
Oct 22 09:53:28 USBRedirectP01 logger: Authorizing -> '1393' '1180' 's_user (s_user)' '192.168.0.75' ''
Oct 22 09:53:28 USBRedirectP01 logger: Authorized!
Oct 22 09:53:28 USBRedirectP01 kernel: [ 2341.710420] usb 1-1.5.1: reset high-speed USB device number 10 using dwc_otg
Oct 22 09:53:28 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 BOUND to connection 3

the program (Beehive204) does not work: Programmer comunication error.

In the client in Device Manager the driver USB of Programmer is OK

Server:
Raspberri PI2
update and server virtualhere last version

Client:
Windows server 2012
update and client virtualhere last version

Thanks in advance

#2

Are you using a powered USB hub between the pi and the beehive? What seems to be happening is that as soon as the device is used it is being disconnected forcefully from the pi. this usually means 1. there is not enough power to the USB port to drive the device, or 2. there needs to be firmware downloaded to the device when it starts.

My Configuratios:
Raspberry->USB Programmer (plug directly to raspberry). The programmer is powered.

I tried to put a powered hub between the Raspberry and the programmer but is it the same.
I think no firmware needed download.
which test can i do?

When I connect twice the four USB in the virtualhere client I see "in use by you" four times and in USBDeview:

Port_#0001.Hub_#0001 BeeProg2, site of multiprogramming system Vendor Specific Yes Yes No No 00000000ab1ccd25.115111.ns 22/10/2015 12.02.11 22/10/2015 12.02.01 1393 1180 90.00 ff ff ff Pg4uUSB @oem53.inf,%Pg4uUSB.SvcDesc%;Elnec USB driver pg4uusb.sys Elnec 0 mA 2.00 BeeProg2, site of multiprogramming system 3.17.0.0 USB\VID_1393&PID_1180\00000000ab1ccd25.115111.ns Removable, UniqueID, SurpriseRemovalOK
Port_#0002.Hub_#0001 BeeProg2, site of multiprogramming system Vendor Specific Yes Yes No No 00000000ab1ccd25.115114.ns 22/10/2015 12.02.25 22/10/2015 12.02.17 1393 1180 90.00 ff ff ff Pg4uUSB @oem53.inf,%Pg4uUSB.SvcDesc%;Elnec USB driver pg4uusb.sys Elnec 0 mA 2.00 BeeProg2, site of multiprogramming system 3.17.0.0 USB\VID_1393&PID_1180\00000000ab1ccd25.115114.ns Removable, UniqueID, SurpriseRemovalOK
Port_#0003.Hub_#0001 BeeProg2, site of multiprogramming system Vendor Specific Yes Yes No No 00000000ab1ccd25.115113.ns 22/10/2015 12.02.54 22/10/2015 12.02.44 1393 1180 90.00 ff ff ff Pg4uUSB @oem53.inf,%Pg4uUSB.SvcDesc%;Elnec USB driver pg4uusb.sys Elnec 0 mA 2.00 BeeProg2, site of multiprogramming system 3.17.0.0 USB\VID_1393&PID_1180\00000000ab1ccd25.115113.ns Removable, UniqueID, SurpriseRemovalOK
Port_#0004.Hub_#0001 BeeProg2, site of multiprogramming system Vendor Specific Yes Yes No No 00000000ab1ccd25.115112.ns 22/10/2015 12.03.10 22/10/2015 12.02.59 1393 1180 90.00 ff ff ff Pg4uUSB @oem53.inf,%Pg4uUSB.SvcDesc%;Elnec USB driver pg4uusb.sys Elnec 0 mA 2.00 BeeProg2, site of multiprogramming system 3.17.0.0 USB\VID_1393&PID_1180\00000000ab1ccd25.115112.ns Removable, UniqueID, SurpriseRemovalOK

#5

It should not say this: "Oct 22 09:41:54 USBRedirectP01 vhusbdarmpi2[2423]: Device 1151 SURPRISE UNBOUND from connection 3"

It means that the device is unplugging itself. So its probably number 2 then and firmware must be downloaded to the device on boot.

My guess it its expecting this to occur and its not occuring so it doesnt know what to do.., thats why its saying invalid max packet etc when it resets the second time.

There is not much that can be done unfortunately , you could check with the manufacturer to see if they do indeed send firmware to the device. Or if you want to do some debugging yourself use something like usblyzer and see what happens when the device starts when normally attached to a computer. Perhaps you could see something occuring then...

Hi Michael,
I've tried debugging with usblyzer: nothing happens when I plug in the device; when I start the Program (pg4UW) I see some message.
I've tried to redirect the device in RDP section and in this situation It work; but is too slow.
Some advice?
Thanks

#7

You would need to turn on Hot plug capture in usblyzer to see the interesting stuff, like its enumeration. Do this:

Make sure you programmer is unplugged, in USBLyzer select Capture Settings and check all boxes in there, then click start capture.

Then plug the programmer directly into the usb port. Then all the messages will start streaming on the screen. Those messages are the interesting ones. You dont need to start pg4UW. If you do this and get the ulz file email it to me at mail [at] virtualhere.com (mail[at]virtualhere[dot]com) and ill take a look. But if the firmware does need to be uploaded to the device before hand it would require coordination from the manufacture which is doubtful..