From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKmVLepjzWFPvgAAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 08:46:50 +0100 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cEpMJupjzWG1bwAAG6o9tA (envelope-from ) for ; Thu, 30 Dec 2021 08:46:50 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 56DA81EAC3 for ; Thu, 30 Dec 2021 08:46:50 +0100 (CET) Received: from localhost ([::1]:59620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2q9B-0003hb-Bw for larch@yhetil.org; Thu, 30 Dec 2021 02:46:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2q6d-0001UW-H6 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2q6d-000253-77 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n2q6d-0006kr-52 for guix-patches@gnu.org; Thu, 30 Dec 2021 02:44:11 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51838] [PATCH v6 37/41] gnu: Add node-serialport-parser-inter-byte-timeout. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 30 Dec 2021 07:44:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51838 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51838@debbugs.gnu.org Cc: Timothy Sample , Pierre Langlois , Jelle Licht , Philip McGrath , Liliana Marie Prikler Received: via spool by 51838-submit@debbugs.gnu.org id=B51838.164085020825732 (code B ref 51838); Thu, 30 Dec 2021 07:44:11 +0000 Received: (at 51838) by debbugs.gnu.org; 30 Dec 2021 07:43:28 +0000 Received: from localhost ([127.0.0.1]:51076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5w-0006gt-6E for submit@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:28 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:34747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n2q5m-0006dl-4d for 51838@debbugs.gnu.org; Thu, 30 Dec 2021 02:43:19 -0500 Received: by mail-qt1-f179.google.com with SMTP id o17so21061473qtk.1 for <51838@debbugs.gnu.org>; Wed, 29 Dec 2021 23:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xsE0Zh1nC1lD5wiDzkPPslWtiHYLGa/Eet2uRe2A394=; b=VrvFLIgecurVVB3UcwrmM9/xaOLHsmZf5NeSG7kSwCHFcr3+V8wrXbAuGVNufkEe2A 0+JswTIycE9pI7I3r0eL/SGzWsng3uBXrmv33eexiBlnvSqroNa3MD2rrk6Y9bBx9MWI zKwr75GQS7YvV6sm50QfHUGOdcXWA7NE3R2NDWiAiKp1ASRwjzRRzfI8o6YJllAIpmZP g7nOQvEhxNJl6adiew+6qT88B7niorlIev0cLGpmyna2tYvyXQxjH98TLOLZKY+CvWmO 3yJmeRikFK2yDWMusaUTmJel98YdWomsxZM74rhl5Avp2SoukACK1bg2jNPGtMYjWpQR AmPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xsE0Zh1nC1lD5wiDzkPPslWtiHYLGa/Eet2uRe2A394=; b=tN1HxQPIAsEgvTcTVTGpJdVMU9PpRG3/919i+aGChgqXOCYOTuoL2Urp1eYWXBZ+a5 lTVTu2PRxPvFaOBajHbJR9VUSIjTR0w82zQYfHo26hE9rLVsI2e4uRSDFN3f1Vmvow1w 62RXNNAcpHOIaQXjFVuYfSsCFIsGwQSu8aODm8/5fCKOkFqW9j0siWjnQt9F6ZvuKbjY AK/O8f/aBRx04A297z/lTdakk1trnJTxYXQcsyojhoSR0hHJaCE6wdf/7ebr/ACERwIy /Ri4+Sk2VoiFfSFQv688ZwH1fkNS3jTbDKg2DWyLK9aG63JSEQmEQv5YIAsckTUiKsC2 GLIw== X-Gm-Message-State: AOAM532oKTlfXNB8gvKwItCf1UauGeCDY1nIzwHBxpvPleyFw/3SNr6I r7yglD83Bg9uQWrDcJuf8ACWuwDaEZY5E5oh X-Google-Smtp-Source: ABdhPJw5nLtyJoiqv+K473hRw3raOdPT1RprpZ3gmMJndYQT0cseKUhB0l3dlsabM/AiB1FRUrgMug== X-Received: by 2002:a05:622a:1ba4:: with SMTP id bp36mr25069675qtb.455.1640850192686; Wed, 29 Dec 2021 23:43:12 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with UTF8SMTPSA id d1sm18439679qtn.56.2021.12.29.23.43.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Dec 2021 23:43:12 -0800 (PST) From: Philip McGrath Date: Thu, 30 Dec 2021 02:39:15 -0500 Message-Id: <20211230073919.30327-38-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230073919.30327-1-philip@philipmcgrath.com> References: <082a81964a43ae5f735ad2ca433d0dfe00859c35.camel@gmail.com> <20211230073919.30327-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640850410; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=xsE0Zh1nC1lD5wiDzkPPslWtiHYLGa/Eet2uRe2A394=; b=evLQhYLOoMnRZRdLQjJuxpFRaaXpIRxro47bgGpHrC3x4qg3nDj9gfvr+mTqJ7eoJZ1kDJ d2WAqg2KPL2+spWS5pvJC8fi23fOv0q0Y3BhH6hgYW+WqwqzRAHbfLVUAoAebqwaZ1ecK3 3t4hAL//xJb5VVnJQ9jok55LEk1VFkqkwaSyr1aXsoIuA5x/WKg7+SchpXnHYKruxQsiyL ZF/Fc6IRuTUebYL+vjgBLvoBD20KHuoGsRCcDlGqJLWO0Cus//J76kqPaOGZFDJiessuVV je1zivECrUWU2U87QGV3GfObkexa/L/ijEMRisvtEZxrMz+lfXeIZrHalfNFlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640850410; a=rsa-sha256; cv=none; b=um6a5CQInMm2W6zQBFuSgUmBZUXtuxZimJGwErbqBeS6XG2ib09wTVJSnnoZCxu55+kRjZ 9GZW9TvCSrWIxNWLUQyIY2LwSTpAxjwGoLFi8MP/N8t2GUYpQ+2Yrztz29Y61KDAJ855EV QBRICE4p/QTaGP/SSaTqi2BOvtZqHYNwfuJTQOFpYR/Rm73Oe3KqX0PKydy8zrABpWmlcg ztZ3GzhNjsGK+UPp9RRLp3SPqcxDdvx7Vf33wKvGHlveJnUu5+qsEt1Xh0JY4HCzVa3TCh UFYS0fTT4Uylv4vr+KCS4NZJ0CiMWjqun2h9NTxG/yM+EebkAqD6DLnUvD/sVA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=VrvFLIge; dmarc=none; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.93 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=VrvFLIge; dmarc=none; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 56DA81EAC3 X-Spam-Score: 0.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: EhEIfkcmjxJf * gnu/packages/node-xyz.scm (node-serialport-parser-inter-byte-timeout): New variable. --- gnu/packages/node-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 55b60fa773..6337554830 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -1250,3 +1250,25 @@ (define-public node-serialport-parser-ready messages. This package provides @code{Ready}, a parser that waits for a specified sequence of ``ready'' bytes before emitting a ready event and emitting data events."))) + +(define-public node-serialport-parser-inter-byte-timeout + (package + (inherit node-serialport-binding-abstract) + (name "node-serialport-parser-inter-byte-timeout") + (version "9.2.4") + (inputs `()) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda args + (chdir "packages/parser-inter-byte-timeout")))) + #:tests? #f)) + (synopsis "Node SerialPort parser to detect pauses in data") + (description "Node SerialPort is a modular suite of Node.js packages for +accessing serial ports. The Guix package @code{node-serialport} provides the +recommended high-level interface. + +Parsers are used to take raw binary data and transform them into usable +messages. This package provides @code{InterByteTimeout}, a parser that emits +data if there is a pause between packets for the specified amount of time."))) -- 2.32.0