Success! After 10+ hours of painful problem solving, at 2am this morning we got the second revision of our prototype working.