On Tue, Sep 29, 2020 at 1:42 PM Gerhard Sittig <gerhard.sit...@gmx.net> wrote:
> On Tue, 2020-09-29 at 08:57 +0200, Michael Stapelberg wrote: > > > > Thanks for the quick review. > > > > I’ll try and grab another capture and update the decoder as time permits > > over the next few days. > > > > Unfortunately, I’m not aware of any more documentation than what I > > reference in > > > https://michael.stapelberg.ch/posts/2020-09-28-nuki-scs-bticino-decoding/ > > at the very end. > > Maybe adding a link to that article would be a good first step, though? > > Are you aware that the UART decoder extracts the bytes for you > when you move the sample point away from the center of the bit > time towards the start of it? See the attachment (assuming that > I don't forget to attach it). > Ah, great, thanks for the tip! It looks like you added this option in commit https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff;h=bd50ceb314e4607e596c98c534aafcfe142a73b6 but that commit is not yet included in any released version of libsigrokdecode. Maybe it’s time to do a new release? :) 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? I found out that I can also specify the samplerate when doing the CSV import, but I’m curious regardless. > Which suggests that SCS could and probably should stack on top > of UART, very much like MIDI, DMX, LIN and others do. > Yes, that will make things simpler. > > And I do agree that before any decoder implementation it's > essential to have documentation/references/details on the > protocol, and captures for demonstration. I consider this even > more important than any implementation itself, since the > information is need to create a proper decoder in the first > place, and maintain it later on. > I can definitely take another capture or two. Are you saying we need more than the captures to get this patch merged? I don’t know whether bTicino/Legrand is willing to share any documentation. What has been your success rate if you have asked companies to share such docs? > > Is the SCS protocol comparable to other home automation setups > like KNX or EIB? Searching the 'Net suggests that "simplified > wiring" is rather generic a term, brings up boats, motor bikes, > and houses. > I have not worked with KNX or EIB before, but have read the terms a few times while trying to find details about SCS. In particular, http://guidopic.altervista.org/alter/eibscsgt.html talks about “KNXGATE/SCSGATE”, implying that they are similar to a certain extent. > > > 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