Re: Allwinner H3 or H5 SoC and IR TX

Benoît-Pierre DEMAINE <[email protected]> Sat, 29 Dec 2018 18:24:04 +0100
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
I had a similar issue; check here.

https://sourceforge.net/p/lirc/mailman/message/36222764/

I was on orange pi zero, I had troubles for both sending and receiving IR.
In the end, I did everything manually. I still use the LIRC module, but
decode /dev/lirc0 with scripts, and also use bitbanging for sending.

Since you are using similar CPU (opi0 uses H2+ which is a H3 without
graphics), your distribution probably has the same issue as mine. An
armbian is an armbian.

Also, note that there is a significant difference between kernels 3 and 4.
I never had any trouble upgrading Raspberries,or using any kernel. But
with armbian on Oranges, if a tuto is written for kernel 3, it won't work
on kernel 4, and revese. I have the issue for all SPI devices, and a few
other cases (1 wire and SPI LCD).

So, whatever changed in the SPI between the kernels, it may also affect IR.

LCDs work best with kernels 3, and poorly with 4.

1W works best with kernels 4, but all tutorials written before 2017 for
kernels 3 are deprecated.

Tutorials are easy to distinguish: if they say to edit armbianEnv.txt,
they are for kernel 4; if they don't, 3.

So, since you say you use kernel 4 ... my advice is ... reinstall an old
image with kernel 3, and try again.

My LIRC failures were on 4.14.18-sunxi, and it was before I understood
that kernel version was critical. I have not tried to downgrade my IR
machine to 3. And since my project is now stable, I am not going to spend
any more time in this.

But, you failed on 4.14.52, I failed on 4.14.18-sunxi ... a pattern is
coming out.

NB: I unsubscribed the ML.

On 16/07/18 05:02, Colin Manning wrote:
> Hi All,
>
> I have been trying to get IR TX to work from my FriendlyArm NanoPi NEO
> Air (Allwinner H3) and NanoPi NEO 2 (Allwinner H5) for a month now.
>
> RX works fine.
>
> I have tried a real time kernel, and I have tried LIRC.
>
> irsend generates the following message:
>
> irsend: hardware does not support sending
>
> I have enabled the PWM GPIO in the kernel.
>
> When I try bit banging, even with the real time patch (Linux 4.14.52),
> the timing is not accurate enough. About 25% of the time I can get a
> signal sent that can be read by AnalysIR, and about 1% of the time, the
> signal is the signal I expected to send.
>
> Does anyone have suggestions on how I can make this work?
>
> Thanks,
>
> Colin.
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot


-- 
 >o_/ DEMAINE Benoît-Pierre (aka DoubleHP) http://benoit.demaine.info/
If computing were an exact science, IT engineers would'nt have work \_o<

"So all that's left, Is the proof that love's not only blind but deaf."
(FAKE TALES OF SAN FRANCISCO, Arctic Monkeys)