Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Consistency requires you to be as ignorant today as you were a year ago." -- Bernard Berenson


computers / comp.sys.raspberry-pi / Re: Struggling to read signals from IR diode

SubjectAuthor
* Struggling to read signals from IR diodeD.M. Procida
`- Re: Struggling to read signals from IR diodeD.M. Procida

1
Struggling to read signals from IR diode

<1p8v0im.1s4105nizs0h1N%real-not-anti-spam-address@apple-juice.co.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2050&group=comp.sys.raspberry-pi#2050

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: real-not...@apple-juice.co.uk (D.M. Procida)
Newsgroups: comp.sys.raspberry-pi
Subject: Struggling to read signals from IR diode
Date: Sat, 8 May 2021 12:38:03 +0100
Organization: Apple Juice, Cardiff
Lines: 37
Message-ID: <1p8v0im.1s4105nizs0h1N%real-not-anti-spam-address@apple-juice.co.uk>
X-Trace: individual.net GwDdmNEPP8gc1aWy0zbZiAnOKUlH2GqbDi8hV2tsOqT+ZvJZap
X-Orig-Path: real-not-anti-spam-address
Cancel-Lock: sha1:veGs4ZaEM7NqlMEJMSdEdKRad6k=
X-Face: -F:Ew;er}*l!V&Ip'P)wDs\Dve[S\LJE3Q6Hq{*Vm;Ik[:9_M]?pyl`DB((L"lafQVGXrBv
}Y+Q[$8Tf&IW6]*dh]9<$FQ;^)s?{jiVUhIB~K_I'g*6d@@8qh+%&A7VUX!)9cI2L.V%R~~`_y^&"-
>|=LYLHAS*s.-b4pJi:2CN$U$1s^3qGx5Ls_eBYJS'g*SooJU~x7Q7E42xL+nUdQREF*4H,hgXt9{8
}X5"3#"'zZK>Q{!jx]b3s"io"xM&wk7%hI<t0%,y$-qpyki`C,?"V>ZWy<d}W+-}S^GNY0Gc6zp2R8
:
User-Agent: MacSOUP/2.8.5 (ea919cf118) (Mac OS 10.14.6)
 by: D.M. Procida - Sat, 8 May 2021 11:38 UTC

I'm using Pi3, Rasberry Pi OS Buster.

Diode: TSOP38238

The diode is connected to GND, 3.3V and GPIO14 (= header pin 8)

In /boot/config.txt:

dtoverlay=gpio-ir,gpio_pin=14

The IR configuration seems to be OK and assigned to /sys/class/rc/rc0.

$ ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event0) with:
Name: gpio_ir_recv
Driver: gpio_ir_recv, table: rc-rc6-mce
LIRC device: /dev/lirc0
Attached BPF protocols: Operation not permitted
Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo
mce_kbd rc-6 sharp xmp imon
Enabled kernel protocols: lirc rc-6
bus: 25, vendor/product: 0001:0001, version: 0x0100
Repeat delay = 500 ms, repeat period = 125 ms

But I get no results from:

$ ir-keytable -t -s rc0
Testing events. Please, press CTRL-C to abort.

I've also tested with multiple remote controls, other diodes, different
sets of wires, different GPIO pins...

Not really sure how to go about debugging further.

Daniele

Re: Struggling to read signals from IR diode

<1p8v3th.5xw1t7169awm2N%real-not-anti-spam-address@apple-juice.co.uk>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=2051&group=comp.sys.raspberry-pi#2051

  copy link   Newsgroups: comp.sys.raspberry-pi
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: real-not...@apple-juice.co.uk (D.M. Procida)
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Struggling to read signals from IR diode
Date: Sat, 8 May 2021 13:23:43 +0100
Organization: Apple Juice, Cardiff
Lines: 36
Message-ID: <1p8v3th.5xw1t7169awm2N%real-not-anti-spam-address@apple-juice.co.uk>
References: <1p8v0im.1s4105nizs0h1N%real-not-anti-spam-address@apple-juice.co.uk>
X-Trace: individual.net A8v6/gTLe/FY2j9vSRKTcgpiWE1qYvImIR3wVqsHtZhX3xs1H0
X-Orig-Path: real-not-anti-spam-address
Cancel-Lock: sha1:k80CQRAgE89JRcIBau2IYGIzGQc=
X-Face: -F:Ew;er}*l!V&Ip'P)wDs\Dve[S\LJE3Q6Hq{*Vm;Ik[:9_M]?pyl`DB((L"lafQVGXrBv
}Y+Q[$8Tf&IW6]*dh]9<$FQ;^)s?{jiVUhIB~K_I'g*6d@@8qh+%&A7VUX!)9cI2L.V%R~~`_y^&"-
>|=LYLHAS*s.-b4pJi:2CN$U$1s^3qGx5Ls_eBYJS'g*SooJU~x7Q7E42xL+nUdQREF*4H,hgXt9{8
}X5"3#"'zZK>Q{!jx]b3s"io"xM&wk7%hI<t0%,y$-qpyki`C,?"V>ZWy<d}W+-}S^GNY0Gc6zp2R8
:
User-Agent: MacSOUP/2.8.5 (ea919cf118) (Mac OS 10.14.6)
 by: D.M. Procida - Sat, 8 May 2021 12:23 UTC

D.M. Procida <real-not-anti-spam-address@apple-juice.co.uk> wrote:

> I'm using Pi3, Rasberry Pi OS Buster.
>
> Diode: TSOP38238
>
> The diode is connected to GND, 3.3V and GPIO14 (= header pin 8)
>
> In /boot/config.txt:
>
> dtoverlay=gpio-ir,gpio_pin=14
>
> The IR configuration seems to be OK and assigned to /sys/class/rc/rc0.
>
> $ ir-keytable
> Found /sys/class/rc/rc0/ (/dev/input/event0) with:
> Name: gpio_ir_recv
> Driver: gpio_ir_recv, table: rc-rc6-mce
> LIRC device: /dev/lirc0
> Attached BPF protocols: Operation not permitted
> Supported kernel protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo
> mce_kbd rc-6 sharp xmp imon
> Enabled kernel protocols: lirc rc-6
> bus: 25, vendor/product: 0001:0001, version: 0x0100
> Repeat delay = 500 ms, repeat period = 125 ms
>
>
> But I get no results from:
>
> $ ir-keytable -t -s rc0
> Testing events. Please, press CTRL-C to abort.

It turns out that ir-keytable -t without specifying the -s (sysdev)
flag did the trick. I don't understand *why* though!

Daniele

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor