**** BEGIN LOGGING AT Thu Jun 21 03:00:02 2018 Jun 21 07:18:35 abhishek_[m] / anirban1998[m] here now? Jun 21 07:19:17 Here Jun 21 07:20:05 one more and we have a quorum... Jun 21 07:24:42 Here Jun 21 07:25:18 ok tell us the sad usb saga Jun 21 07:27:01 step 1 hooked up audio straight to pocket beagle, overcurrent complaint Jun 21 07:28:00 step 2 plugged audio through powered hub to pocket beagle, no enumeration at all Jun 21 07:28:21 Yeah true...it's really worrying. I am currently using a powered hub. The audio device is plugged into it...and the hub is in turn plugged into the pocketbeagle...and the pocketbeagle is connected to the laptop. I checked the dmesg log...the USB audio device is not recognized. Jun 21 07:28:31 that powered hub + audio works with linux PC? Jun 21 07:28:53 Yeah Jun 21 07:29:16 powered hub + anything else works with pocketbeagle? Jun 21 07:29:19 I am able to directly plug the audio device to my laptop and work Jun 21 07:29:28 the question was with hub Jun 21 07:29:38 since bad port on hub could get ya Jun 21 07:31:22 No the hub is okay...it's working...worked on another configuration where the pocketbeagle is plugged into the hub..and the hub to the PC...and then the pocketbeagle is easily recognized... Jun 21 07:31:23 so you said yes to hub + audio working with PC, what about hub + any usb + pocketbeagle? Jun 21 07:31:27 Is the OTG cable you using good? Jun 21 07:31:47 no it doesn't count if pocketbeagle is usb device instead of host Jun 21 07:32:20 to prove compatibility you should show pocketbeagle as host connected to usb stick or something instead of audio card through hub Jun 21 07:32:59 (did that make sense?) Jun 21 07:33:20 No sorry didn't get you Jun 21 07:34:08 basically every component and cable the same, except for USB stick in place of audio card: pocketbeagle <-> hub <-> stick Jun 21 07:34:41 if that doesn't work, your pocketbeagle does NOT like your hub Jun 21 07:34:42 Okay Jun 21 07:35:18 once upon a time beagleboards had some hubs they did not like, there was a list of "approved" ones that had tested out ok... Jun 21 07:36:08 also doing it like that tests your cable, which can also be the bad part like abhishek_[m] was getting at Jun 21 07:36:28 anirban1998: How's the OTG cable that you're using to connect PBg with the audio card? Jun 21 07:37:50 abhishek_: the last time I connected in that configuration...it was giving an error...is the USB cable bad? Jun 21 07:38:08 It had not happened previously Jun 21 07:39:01 If the device draws much current, many embedded boards will NOT want to power it Jun 21 07:39:42 There's no OCP on the PBg IIRC Jun 21 07:40:28 Wormo yes but that's where the powered hub comes in question...the device is powered from the powered hub and not from the pocketbeagle I feel Jun 21 07:40:38 Over current protection Jun 21 07:41:04 yes that's why you need a hub, but you need a *compatible* one Jun 21 07:41:41 ideally all usb 2.0 hubs work alike, eh... Jun 21 07:43:43 The link to my hub https://www.amazon.in/QuantumZERO-External-Powered-USB-Ports/dp/B011OSM2KW/ Jun 21 07:43:44 hendersa asked me to buy it Jun 21 07:44:15 do the usb stick test anyways Jun 21 07:47:02 Okay...will do Jun 21 07:49:05 Wormo abhishek_ One thing about which I am confused is that the same configuration which worked for hendersa is not working for me. He didn't use any hub...just directly plugged the audio card to the usb port of the pocketbeagle. Jun 21 07:49:53 Can there be any problem with the USB port of the pocketbeagle and not the hub? Jun 21 07:52:20 hendersa mentioned that there can be problems with the D+ and D- pins of the USB port...as the power logs and errors clearly show that the VCC and GND pins are working fine Jun 21 07:53:56 Anyways I will do the test and inform u Jun 21 07:57:02 Which USB port of the PBg? There are two of them Jun 21 08:03:35 these things can also be marginal so that it works with one pocketbeagle but not all of them Jun 21 08:03:41 did you do the test yet? Jun 21 08:04:03 or even with a pocketbeagle powered up one way but not another Jun 21 08:08:21 Wormo Am not currently home so couldn't do the test yet...will tell you when I try it Jun 21 08:10:02 oh ok I may need to check logs then, depending on how long that is Jun 21 08:12:07 Wormo: Are you available 4-5 hours from now? Jun 21 08:12:14 nope Jun 21 08:12:16 zzzzzz Jun 21 08:12:25 Okay Jun 21 08:12:45 I can leave the client going, it will probably stay connected Jun 21 13:16:10 abhishek_: Wormo I tried with the USB stick...telling u the configuration...plugged the USB stick to the hub...plugged the hub into the pocketbeagle USB port...and connected pocketbeagle to laptop via ssh using USB cable...nothing in the dmesg log. Jun 21 13:16:10 The USB port was connected to the pocketbeagle using a wiring assembly. Jun 21 13:16:51 Post a pic? Jun 21 13:18:37 Of the circuit? Or dmesg logs? Jun 21 13:19:22 Both. Jun 21 13:26:57 * anirban1998[m] uploaded an image: IMG_20180621_185137.jpg (4667KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/DRXtNbyuvULHdIUJVuzbXqPL > Jun 21 13:27:22 * anirban1998[m] uploaded an image: Screenshot (1).png (181KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/VDCzPxDyXhbFcwVFpcYIgDiL > Jun 21 13:28:52 abhishek_: Sorry the pictures are a little bit clumsy...hope you can understand. Jun 21 20:36:40 anirban1998[m]: you are using the same image hendersa used, right? Jun 21 20:37:24 ds2: Yeah Jun 21 20:38:00 anirban1998[m]: can you describe the problem from the top? Want to make sure we don't have a communications gap Jun 21 20:40:12 ds2 Okay...I am currently using a powered hub. The audio device is plugged into it...and the hub is in turn plugged into the pocketbeagle...and the pocketbeagle is connected to the laptop. I checked the dmesg log...the USB audio device is not recognized. Jun 21 20:40:58 anirban1998[m]: can you be more specific on not recogonized - is there any errors in dmesg when you plug it in? Jun 21 20:41:02 The original configuration that hendersa used was...directly plugging the USB audio card into the USB port of the pocketbeagle Jun 21 20:41:17 the hub shouldn't be needed with the pocketbeagle Jun 21 20:41:47 also, have you tried: USB audio direct to the pocketbeagle, then power the pocket beagle from the hub ? Jun 21 20:41:55 That one didn't work for me...error -71 was coming in the dmesg log Jun 21 20:42:29 error -71.... hmmm let me look it up Jun 21 20:43:53 protocol error... Hmmm Jun 21 20:44:20 so to confirm: you got error -71 if you directly connect the USB audio to the pocketbeagle, correct? Jun 21 20:44:34 Yeah tried that one too...but no result...when I plugged the usb audio directly into the port...this error was coming...hendersa mentioned that the USB device was probably taking up too much power that's why this error was coming Jun 21 20:45:11 Yeah Jun 21 20:45:12 there is no way for the pocketbeagle to know the USB audio is taking too much power Jun 21 20:45:45 it almost sounds like you have a bad connection or the pocketbeagle is damaged Jun 21 20:45:54 do you have a decent camera? Jun 21 20:46:03 Okay...then what exactly is the problem? Jun 21 20:46:49 I suspect maybe a solder joint got damaged and there is a signal integrety issue... error -71 is pretty basic Jun 21 20:47:46 The USB port had to be connected to the pocketbeagle using a wiring assembly...can it have some faults? Jun 21 20:47:54 if you have a decent camera, can you take pictures of the pocket beagle, top and bottom Jun 21 20:48:23 yes, it can. the wires can come loose - it is a mod added by hendersa and could have been impacted during transit Jun 21 20:49:08 https://i.imgur.com/idVYH8D.png Jun 21 20:49:09 The wiring assembly. Jun 21 20:49:40 a photograph please Jun 21 20:50:02 as you can see from that diagram, there is literally nothing to it. DM/DP + power and gnd Jun 21 20:50:13 power and gnd goes directly to +5V so there is no way it can measure overcurrent Jun 21 20:50:32 ds2: I don't have a decent camera right now...will try to send clear pictures, tomorrow if you are alright with that Jun 21 20:50:42 so either DM/DP is too long or broken or it is swapped around (this is the purple/blue wire pair going to the USB connector Jun 21 20:50:53 anirban1998[m]: that's fine Jun 21 20:51:18 I'd also check for a break/crimp on the DM/DP wires Jun 21 20:51:24 and make sure it isn't too long Jun 21 20:51:32 ds2 yeah but when I used a USB hub...to connect...then the error -71 was not present...but still the audio device was not recognized Jun 21 20:51:51 USB 2.0 HS is a bit picky Jun 21 20:52:28 anirban1998[m]: yes, that error -71 won't get propagated if it is bad wiring.... can you do lsusb with the USB Hub and confirm Linux can see the hub? Make sure it is THAT hub not the virtual root hubs Jun 21 20:52:48 another way to do it is, unplug, lsusb, plug in hub, lsusb and see if it changes Jun 21 20:53:34 Yeah I checked with lsusb...it only shows the root hubs Jun 21 20:53:53 then it never saw the hub Jun 21 20:54:07 hubs do something wierd so the enumeration sequence is a little different Jun 21 20:54:16 this supports the idea something is wrong with DM or DP Jun 21 20:54:34 USB is very simple - there are 4 wires. VBUS, DP, DM, and GND Jun 21 20:55:08 if you have a meter, check for 5V on the little red board (Place red probe on the red wire at the red board side and black probe on the black wire Jun 21 20:55:34 Or if you got access to a cheap USB fan, USB light, etc, plug that in and see if it works. that will verify VBUS and GND being good Jun 21 20:56:20 Yeah another error which turned up when I connected the USB hub was that of VBUS rise or some error..I cannot exactly remember Jun 21 20:56:58 that has me a little worried Jun 21 20:57:12 check for 5V if you can... it'll help narrow down with of the 4 wires Jun 21 20:57:38 and double check you are using the same SW image as hendersa... old images do not like the way things are setup (it wants a few more things) Jun 21 20:59:32 Yeah I am using the same image...the SD card was already inserted into the board...when I got it...didn't take it out Jun 21 21:00:42 that should limit the issues being somewhere in that 4 wires Jun 21 21:01:38 checking for 5V at the socket would be the first thing I do (unless you don't have a meter or USB fan/flashlight/etc)... in that case, let me know and I'll figure something for you :D Jun 21 21:05:45 Okay, I think I have something of a USB light...will have to check...will inform you about my progress **** ENDING LOGGING AT Fri Jun 22 03:00:01 2018