On Thu, Jun 01, 2017 at 18:30 +0000, Ahmed, Shabbir wrote: > > I am trying to use the sigrok-cli tool to decode CAN bus data > captured in the form of raw analog voltage readings (a txt file > with just analog values). Is it possible to do this? If so what > are the options that have to be provided to the tool?
The current implementation of the decoder does not accept analog input, neither can sigrok-cli convert analog input to digital format right now. If you can provide your capture as logic data instead of analog, then you can use the CAN decoder on that digital input. Pick either of the supported input formats for import, alternatively use sigrok-cli with any one of the supported logic analyzers or mixed signal scopes to capture the CAN traffic, then have it decoded. An example command would be along those lines: $ sigrok-cli -i filename.sr -P can:can_rx=2:bitrate=125000 For more details see 'sigrok-cli --help', 'sigrok-cli -P can --show', and the manpage which discusses command line use in great detail. For a list of drivers and formats see the output of 'sigrok-cli --version'. If you want to experiment with data that others have captured, see the can/ directory in the sigrok-dumps repo. Hope this helps. virtually yours Gerhard Sittig -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel