Giter Club home page Giter Club logo

Comments (8)

happytm avatar happytm commented on August 19, 2024 1

I assume you are going to use Lirc for this. I am using Lirc with Flask server for this.Some reference links below:

https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b#file-lirc-pi3-txt-L39

https://lb.raspberrypi.org/forums/viewtopic.php?t=173863
https://github.com/scotty3785/pi_tv_remote ( I use this setup right now )

http://lirc.sourceforge.net/remotes/ (remote control database)
https://github.com/bbtinkerer/LircNodeJsWeb

Thanks

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Sadly i am unable to make it work any Python LIRC examples showed at http://www.lirc.org/api-docs/html/irw_8py-example.html Only things i got is some error messages even if i reinstalled python3-lirc package:

NameError: name 'RawConnection' is not defined

So it will be harder than i thought...

from rpieasy.

happytm avatar happytm commented on August 19, 2024

I followed instructions at following link to install LIRC on raspberry pi 3 with stretch OS. I know some other links are not correct but link below worked for me.

https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b#file-lirc-pi3-txt-L39

Then I used link below to use IR transmitter and it works well. I can control all devices in the range via web.Only problem is it uses Flask server.

https://github.com/scotty3785/pi_tv_remote

Thanks

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

I see, but sadly the LIRC python bindings is not really useful, based on its documentation i've failed to do any simple rawread. :( The pi_tv_remote is working using the command line interface which can be OK for sending, but not usable for receiving... And the most example i've found playing around the lirc conf and a set of predefined buttons, which is not really what i need. I need rawsend and rawread function to implement something similar, that ESPEasy using.

from rpieasy.

happytm avatar happytm commented on August 19, 2024

Is this implementation suitable for you ?

http://shallowsky.com/blog/hardware/raspberry-pi-ir-remote.html
https://github.com/akkana/scripts/tree/master/rpi

or

https://blog.gordonturner.com/2017/10/29/linux-infrared-control-part-1-receive-ir/

Thanks.

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

Sorry, this LIRC examples is not suitable for me. Raw PyLIRC examples is simply not working, and generic LIRC examples works with predefined devices and KEY codes (and requires several conf files) which is not really what we need.. we need something that reads any raw IR code from any IR device... Sadly i cannot found any IR raw read example that works with Python. :(

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

At commit eb03a93 IR functions introduced in RPIEasy, based on these informations:
https://forum.libreelec.tv/thread/12111-kernel-module-gpio-ir-sending-ir-codes/

About the current status of IR plugins:

P016:
gpio-ir kernel module works fine, so IR Receiver plugin is mostly functional.
Decoders implemented by the Linux kernel, the RC5 significantly diverse from the values that ESPEasy show, others like NEC32,RC6,JVC looks better, but needs more testing. Please do not complain about decoder differences, as they are located in the linux kernel.

P035:
gpio-ir-tx for IR transmitting is not stable, decoded values on the other side are almost unusable, less then 10% of the output value matches for the same input, which is very sad... i am afraid 38khz signal creation by simple bitbang methods are out of the limits for a Raspberry Pi Zero.

pwm-ir-tx may be much stable for sending, but i am unable to use it at GPIO18. It needs further testing and a little help from anyone who used it before.

##Testing: (setup pins at Hardware/Pinout&Ports)
gpio-ir-tx module enabled on GPIO18:
Command: sudo ir-ctl -d /dev/lirc-tx nec32:0x8078
Result: the LED on the connected IR Transceiver is blinking, the code arrives to the other side.

pwm-ir-tx module enabled on GPIO18:
Command: sudo ir-ctl -d /dev/lirc-tx nec32:0x8078
Result: the LED on the connected IR Transceiver is not blinking!

Linux raspberrypi 4.19.75+ #1270 armv6l GNU/Linux

from rpieasy.

enesbcs avatar enesbcs commented on August 19, 2024

As no feedbacks arrived it is solved now.

from rpieasy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.