Open mithro opened 8 years ago
I'm keen to take this on.
What firmware do I want on my Atlys board to test?
Where is the protocol defined?
No protocol is defined except in the C code at https://github.com/timvideos/HDMI2USB-misoc-firmware/blob/master/firmware/lm32/ci.c
Follow instructions at https://github.com/timvideos/HDMI2USB-misoc-firmware/tree/master/scripts to get firmware building set up.
shenki; if you don't have time setting up the environment, you can use this for now: http://enjoy-digital.fr/open_hardware/hdmi2usb/atlys_hdmi2usb_gateware_2015_09_08.tar.gz
it seems mithro is setting up travis-ci so we will be able to provide prebuilt firmwares soon.
@xfxf has been working on this issue, so I'm assigning it to him.
My version of this code can be found at https://gist.github.com/mithro/0717f9a0b39a538e1e6d - I don't know where Ryan is keeping his code currently.
About to start hacking on this again. I'd like to abstract out the HDMI2USB hardware specific bits to something more agnostic and reusable as a library, so we'll need to figure out an appropriate interface/protocol. Will start prototyping something, expect it'll probably end up changing wildly but will require some direction on this.
@mithro @shenki I recall having issues a month ago with trying to read from the HDMI2USB serial interface, which @mithro identified as some sort of bug in the driver. Was this solved?
To be clear, it is not the "HDMI2USB serial interface" which has problems. It is the driver for the Exar USB UART on the Atlys board -- this isn't used on the Opsis and will eventually not used on the Atlys too.
right, thanks for the clarification - in any case it was a blocker for making sane progress on this for me a month ago. is there a workaround/fix?
The workaround was the code I posted (which isn't 100% reliable, but should get you going).
@shenki was also on getting a rewritten kernel driver upstream.
The code above did not work for me at the time; same issues trying to read from the device.
@xfxf - Please give it a go and report what actually happening + explain what is not happening.
Ping!
@xfxf has started something here -> https://github.com/xfxf/hdmi2usbmon/blob/master/simple_switch_ui.py
@xfxf mentioned;
the tk version works for basic use, started rewriting using toga, haven't finished there's a later version than that, but it's on a device not near me atm iirc that version lets you choose inputs/outputs, and dumps debug output into a text frame, not much more
Probably best to start with python and something like pygtk or pyqt. You'll probably want to use pyserial for talking to the HDMI2USB board.
UI could look something like this;