On 05/22/2012 11:09 PM, Iztok Jeras wrote: > $ sigrok-cli -i onewire.bin -I binary -p 1=OWR -o onewire.sr > The problem with the output file is that it is missing a sample rate. > How could I specify it? > https://github.com/jeras/sigrok-dump/tree/master/onewire/verilog
As Uwe said, the binary input module needs to get some options for that, so imports can be a bit more flexible. As a temporary workaround, just edit the "metadata" file inside the .sr file (it's actually just a zip file). It's text, take a look at what's in some of the .sr files to see how you can specify samplerate. It all works fine without a specified samplerate as well, of course. > > Protocol decoder: > > I started writing the protocol decoder. > https://github.com/jeras/sigrok/tree/master/libsigrokdecode/decoders/onewire > But I have issues debugging it. Currently I run configure, "make" and > "sudo make install". I was able to run the decoder, but the given > error did not help much. How do you debug this decoders (while > developing them)? I would like to see the Python error trace, if > possible, and avoid installing. Note you can set the environment variable SIGROKDECODE_DIR to e.g. your development directory -- it will take precedence over any other module path. That way you can avoid doing "make install" all the time. Currently we're not doing a full traceback when an exception is raised in a python PD. The file/linenumber that it does show is *cough* not necessarily right, either. Definitely something that needs fixing :-) There is no debug path for PDs back into libsigrokdecode and from there to the frontend. I'm not so sure that it's worth doing... I just use print() and watch stdout. -- Bert Vermeulen [email protected] email/xmpp ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

