Comments (8)
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.
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.
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.
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.
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.
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.
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.
As no feedbacks arrived it is solved now.
from rpieasy.
Related Issues (20)
- rules syntax or me failed? HOT 2
- [Feature] Add BME680 Sensor HOT 10
- Systemd integration HOT 4
- LYWSD03MMC Xiaomi temperature sensor stuck in Bluetooth communication HOT 2
- Generic MQTT controller status feedback HOT 1
- Generic MQTT Autodiscovery HOT 2
- Weight - HX711 Load Cell HOT 6
- Ina219 possible to add Gain and ADC settings? HOT 7
- measure a 48V battery up to 60V? HOT 1
- Compatibility with python 3.11 HOT 7
- more 1 wire on second gpio?
- Failed to get unit file state for rpieasy.service HOT 2
- !PN532 init error:'Plugin' object has no attribute 'i2cl' HOT 1
- PZEM016/004 -> fast slow? HOT 2
- Unknown command: PZEMRESET,1 HOT 9
- [Rules] some minor bugs/issues HOT 4
- RPI 4 - Hardware type not shown and unknown GPIO HOT 3
- Thingsboard MQTT and HTTP controllers
- Working with Rpi Pico (no wifi chip) through USB? HOT 1
- RPI5 / Rock Pi 4S support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpieasy.