Aha!

The sample rate got lost when converting to CSV, cutting, then converting
back from CSV.

I outlined the steps in subsection “Captured SCS telegrams”:
https://michael.stapelberg.ch/posts/2020-09-28-nuki-scs-bticino-decoding/#captured-scs-telegrams

Is there a better way to extract only certain ranges of data from a sigrok
capture?

On Wed, Sep 30, 2020 at 7:40 AM Gerhard Sittig <gerhard.sit...@gmx.net>
wrote:

> On Tue, 2020-09-29 at 18:16 +0200, Michael Stapelberg wrote:
> >
> > By the way: in your screenshot, I see that you seem to have loaded
> > my 2020-09-27-anlern-02-klingel-PUR-filtered.srzip into pulseview,
> > but when I try to do that and add the UART decoder,
> > the decoder reports the following error:
> >
> > srd: Traceback (most recent call last):
> >   File "/usr/share/libsigrokdecode/decoders/uart/pd.py", line 517, in
> decode
> >     raise SamplerateError('Cannot decode without samplerate.')
> > uart.pd.SamplerateError: Cannot decode without samplerate.
> >
> > Is there a trick you used to correct the samplerate?
>
> Well, I cheated and specified the 500k samplerate in the
> archive's metadata before opening it in the application.
>
> In fact I assumed that you were well aware of the trick -- the
> ".srzip" name and content looked like handcrafted to me. :)
> Never got the idea that _not_ having a samplerate would be the
> normal condition, after your initial capture must have had one,
> and all the import formats support a respective option when the
> file content lacks the information. :-]
>
>
> 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.
>
>
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
>
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to