This is a difficult search. I found a lot of information on the Canon EF mount (largely because of Magic Lantern), and some about Nikon. Pentax is not enough of a mainstream brand to interest a lot of folks to reverse engineer the lens-camera communication, and the Pentax-Q is even a smaller subset of that. I noticed that on the Metabones FAQ page, they say, "We do not have complete specifications of the respective mount communication protocols...", so that means either they are made available to them or they reverse-engineered them. I'd recommend that you email Metabones to see if they 1) know what the specification is, or 2) know how to obtain it, and 3) would divulge it to you, and then I would also email Pentax (Ricoh) to see if they would be willing to would divulge the specifications.