On 19/04/11 10:55, Henk Muller wrote: > I have put together some firmware to turn an XTAG2 into a logic analyser. > I could mimic an existing USB logic analyser protocol, but don't want to > run into trouble with copyrights/licenses/etc.
Great! > Does sigrok have an "open" protocol over USB that anybody can use? > > Eg, any USB logic analyser that has endpoints 0x1 and 0x82 that support > a command for sampling and a command for obtaining data will be > supported out of the box? sigrok just supports what logic analyzers have, it's not a hardware project. The only thing that comes close to a protocol for open source logic analyzer hardware would be the sump/OLS protocol. However it's a bit old, and stuff has accreted on to it over the years. I'd recommend just rolling your own, and keeping it simple. Using endpoints 1 and 2 for comms to/from the device like you said is great. Just define the commands as you need them, like 0x01 for setting sample rate, 0x02 for start sampling, and so on. Make sure the client can be sure when a transfer from the device is done -- either it's fixed size, or there's a header with the size, or there's an end delimiter. Do please make sure there's a command that returns meta information about the device -- the model, machine parsable. As always when doing a new protocol, have a command that returns the _version_ of the protocol, to make it future-proof. I don't think anyone on the sigrok project has an XMOS dev kit; are you planning on writing the sigrok driver as well? -- Bert Vermeulen [email protected] ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

