*** tpb has joined #timvideos | 00:00 | |
mithro | paddatrapper: I will have time this afternoon to help you debug the descriptor thing | 00:42 |
---|---|---|
mithro | paddatrapper: We should also have our weekly sync up meeting | 00:42 |
*** sb0 has quit IRC | 02:40 | |
*** rohitksingh_work has joined #timvideos | 03:44 | |
Ishan_Bansal | mithro : Hi | 04:18 |
*** rohitksingh_wor1 has joined #timvideos | 04:45 | |
*** rohitksingh_work has quit IRC | 04:47 | |
mithro | Ishan_Bansal: Hi! | 04:56 |
mithro | Ishan_Bansal: so, we should get you a pull request set up | 04:57 |
mithro | Ishan_Bansal: I've got time now if you want me to help walk you through it | 05:01 |
Ishan_Bansal | mithro : I got a lecture now , are u available after 2 hours or so | 05:29 |
mithro | Ishan_Bansal: I plan to be | 05:29 |
Ishan_Bansal | mithro : I will see you than | 05:30 |
mithro | Ishan_Bansal: great! | 05:32 |
mithro | Ishan_Bansal: your lecture on anything interesting? :-P | 05:33 |
paddatrapper | mithro: ok cool | 06:55 |
Ishan_Bansal | mithro: I am back. | 07:03 |
mithro | wb | 07:03 |
Ishan_Bansal | mithro : ya, the lectures are on computer vision stuff. | 07:03 |
mithro | Ah cool | 07:03 |
mithro | I'm going to run away for about 30 minutes - do you want to see if you can get started without me? | 07:04 |
Ishan_Bansal | mithro: ok, no problem | 07:04 |
mithro | Need to grab some food while it's still available | 07:05 |
paddatrapper | food is good :) | 07:06 |
paddatrapper | mithro: got it working! Now to remove all the extra stuff in the main function... | 07:26 |
*** rohitksingh_work has joined #timvideos | 07:43 | |
*** rohitksingh_wor1 has quit IRC | 07:45 | |
paddatrapper | mithro: the issue was I need to run the RENUMERATE() macro to cause the FX2 to disconnect and reconnect when the new firmware is loaded | 07:51 |
mithro | Back now! | 08:28 |
mithro | paddatrapper: yay! | 08:28 |
paddatrapper | So now to fix the descriptors... | 08:28 |
mithro | Ishan_Bansal: did you get anywhere? | 08:29 |
mithro | paddatrapper: wireshark is really helpful for that | 08:31 |
mithro | paddatrapper: Have you learnt how to look at the ASM the compiler is producing yet? | 08:31 |
paddatrapper | mithro: yeah, I' mkinda counting on it | 08:31 |
paddatrapper | mithro: vim descriptors.asm | 08:31 |
mithro | paddatrapper: Yeah | 08:32 |
*** rohitksingh_work has quit IRC | 08:33 | |
*** rohitksingh_work has joined #timvideos | 08:45 | |
mithro | paddatrapper: Anything I can help with? | 08:55 |
paddatrapper | mithro: not currently, wireshark is being very helpful | 08:55 |
mithro | Great! | 08:56 |
Ishan_Bansal | mithro: Are you there for about an hour or so. | 08:56 |
mithro | Ishan_Bansal: I can be | 08:56 |
mithro | Ishan_Bansal: Shall we get the pull request going? | 08:57 |
Ishan_Bansal | mithro : I have to submit some documents to the college as I am going to home on 25 th , so busy with that but as soon as I get time I will made that. | 08:59 |
mithro | Ishan_Bansal: Okay | 09:00 |
Ishan_Bansal | mithro : So I need to fork the repository as I did with the Nueron1k/litejpeg and than after adding my changes have to made the pull request for the timvideos. Is that it is supposed to be. | 09:02 |
mithro | Ishan_Bansal: yes | 09:02 |
mithro | Ishan_Bansal: a pull request maps to a branch in git | 09:03 |
Ishan_Bansal | mithro : okay. | 09:04 |
mithro | Ishan_Bansal: So the idea is that you develop on a branch - committing frequently, once you are happy with the code you create another branch with the cleaned up version and send that as a pull request | 09:04 |
Ishan_Bansal | got it. | 09:06 |
mithro | Ishan_Bansal: Once you send a pull request, I'll then review it by putting comments and such | 09:13 |
mithro | Ishan_Bansal: I think we should aim to get one pull request done per week | 09:13 |
paddatrapper | mithro: do you know if there is a particular packet that lists the entire descriptor? At the moment I'm having to find sections by chance | 09:22 |
mithro | paddatrapper: http://www.beyondlogic.org/usbnutshell/usb5.shtml | 09:23 |
tpb | Title: USB in a NutShell - Chapter 5 - USB Descriptors (at www.beyondlogic.org) | 09:23 |
mithro | And http://www.beyondlogic.org/usbnutshell/usb6.shtml#StandardDeviceRequests | 09:24 |
tpb | Title: USB in a NutShell - Chapter 6 - USB Requests (at www.beyondlogic.org) | 09:24 |
mithro | They might be helpful? | 09:24 |
paddatrapper | thanks that second one is helpful. The first is a repeat of the spec | 09:24 |
mithro | paddatrapper: I think it's a little more concise | 09:25 |
mithro | paddatrapper: You can also use libusb to manually do the descriptor request stuff if you want | 09:27 |
mithro | http://libusb.org/static/api-1.0/group__desc.html | 09:27 |
tpb | Title: libusb: USB descriptors (at libusb.org) | 09:27 |
paddatrapper | mithro: that's an idea. At the moment I'm trying to reconcile the device requests you linked with what I'm seeing in wireshark | 09:28 |
mithro | USB in a Nutshell is a pretty good reference | 09:28 |
mithro | paddatrapper: BTW Have you tried the bulkloop demo with C descriptors? | 09:28 |
paddatrapper | e.g. get status: actual response is 0x02a0 while is should only have a length of 2 bytes, with the last two bits being used... | 09:29 |
paddatrapper | mithro: No I haven't | 09:29 |
paddatrapper | ah ok, never mind get status is correct | 09:30 |
paddatrapper | mithro: Seems the host is never requesting for descriptors - get descriptors request never sent | 09:32 |
mithro | paddatrapper: That normally means there is an error earlier | 09:32 |
paddatrapper | dmesg gives the error: usb 2-2: device descriptor read/8, error -110 | 09:33 |
mithro | paddatrapper: Go look up error -110? | 09:33 |
mithro | USB error -110 means power exceeded, the host could not provide enough electric power for the pendrive to operate. Because it has not enough power also the USB stick cannot provide the device descriptor to the host, as a result it cannot be identified and so on. Maybe your motherboard it's overloaded with devices that consume all the available pwoer. | 09:34 |
mithro | paddatrapper: Could mean you have the current requirement in the descriptor stuff wrong | 09:35 |
mithro | paddatrapper: or you have a ground loop / short in how you have connected your boards together | 09:35 |
mithro | paddatrapper: Another option is to check how it differs from a known working request | 09:36 |
paddatrapper | mithro: I've set max power to 250 which is 500mA | 09:36 |
mithro | paddatrapper: I would set it to something like 100mA or lower | 09:37 |
paddatrapper | I only have one board connected to usb, nothing else to interfear | 09:37 |
paddatrapper | ok will try that | 09:37 |
paddatrapper | even setting it to 50mA didn't help | 09:42 |
mithro | paddatrapper: Yeah - it's a good idea to have something working to compare too | 09:44 |
paddatrapper | mithro: I've been comparing the descriptors to the ones from the webcam | 09:45 |
paddatrapper | mithro: https://github.com/paddatrapper/HDMI2USB-fx2-firmware/blob/audio/audio/reference_descriptors | 09:48 |
tpb | Title: HDMI2USB-fx2-firmware/reference_descriptors at audio · paddatrapper/HDMI2USB-fx2-firmware · GitHub (at github.com) | 09:48 |
mithro | paddatrapper: I mean working get descriptors | 09:50 |
paddatrapper | Ah ok | 09:50 |
mithro | IE See if https://github.com/mithro/fx2lib/tree/linux-descriptors/examples/bulkloop works | 09:53 |
tpb | Title: fx2lib/examples/bulkloop at linux-descriptors · mithro/fx2lib · GitHub (at github.com) | 09:53 |
paddatrapper | mithro: yup it works | 10:02 |
mithro | paddatrapper: Okay, start modifying the descriptors of that :-P | 10:02 |
paddatrapper | going through the descriptors | 10:02 |
mithro | paddatrapper: I'm just about head out - do you have a quick moment to discuss goals for this week? | 12:14 |
*** rohitksingh_wor1 has joined #timvideos | 12:16 | |
*** rohitksingh_work has quit IRC | 12:16 | |
*** rohitksingh_wor1 has quit IRC | 12:39 | |
*** sb0 has joined #timvideos | 14:03 | |
paddatrapper | mithro: sorry didn't realise my IRC connection was gone. Ping me when you're back around | 15:22 |
mithro | I'm just about to head home to bed | 15:22 |
paddatrapper | ok. I'll be around from about 9 tomorrow if that works better for you? | 15:24 |
mithro | paddatrapper: So for this week I think we should target getting the descriptors working enough that the linux audio subsystem detects the device with a stretch goal of trying to get some data packets going? | 15:24 |
paddatrapper | mithro: Sounds reasonable | 15:24 |
paddatrapper | Especially working from the bulkloop stuff | 15:24 |
mithro | I'll try and look at all the pull requests tomorrow | 15:25 |
paddatrapper | cool | 15:25 |
*** CarlFK has quit IRC | 22:08 | |
*** CarlFK has joined #timvideos | 22:10 | |
*** ChanServ sets mode: +v CarlFK | 22:10 | |
*** hyades has joined #timvideos | 22:24 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!