12 063
правки
(Новая страница: «To send a button press, you should publish the message in the format '''<button name>:<button name>''' in the topic "/devices/wb-lirc/controls/Key/on"») |
|||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 19: | Строка 19: | ||
=== Technical details === | === Technical details === | ||
Mini-jack 3.5 mm Pinout on [[Wiren Board 5]] : | Mini-jack 3.5 mm Pinout on [[Wiren Board 5/en|Wiren Board 5]] : | ||
* Tip (left audio channel) - 5V power/IR transmission. | * Tip (left audio channel) - 5V power/IR transmission. | ||
* Ring (right audio channel) - IR reception | * Ring (right audio channel) - IR reception | ||
Строка 75: | Строка 75: | ||
To send a button press, you should publish the message in the format '''<button name>:<button name>''' in the topic "/devices/wb-lirc/controls/Key/on" | To send a button press, you should publish the message in the format '''<button name>:<button name>''' in the topic "/devices/wb-lirc/controls/Key/on" | ||
== | == Troubleshooting == | ||
=== | = = = = Not working reception === | ||
* | * Make sure the driver "sees" pulses from the receiver. | ||
** | ** Stop service '''lirc''' (command "service lirc stop") | ||
** <pre>root@wirenboard:~# mode2 -d /dev/lirc1</pre> | ** <pre>root@wirenboard:~# mode2 -d /dev/lirc1</pre> | ||
**: | **: The numbers should run when you press the buttons on the remote, if not - the problem is in the "hardware" or in the mismatch of the carrier of the remote and the receiver. You should try using a different receiver. | ||
* | * Make sure that '''lirc''' can decode pulse sequences according to the configuration of the remote control: | ||
** | ** Run back '''lirc''' ('service lirc start') | ||
** <pre>root@wirenboard:~# irw</pre> | ** <pre>root@wirenboard:~# irw</pre> | ||
**: | **: Due to run lines when you press the buttons on the remote. If '''mode2''' works and '''irw''' doesn't, there is a problem with the remote config. It is worth trying to use another config, or create a new one. | ||
=== | === Transmission is not working === | ||
* | * Try to transmit referring to LIRC directly: | ||
<pre> | <pre> | ||
root@wirenboard:~# irsend SEND_START Sony_RM-687C KEY_3 | root@wirenboard:~# irsend SEND_START Sony_RM-687C KEY_3 | ||
Строка 93: | Строка 93: | ||
root@wirenboard:~# irsend SEND_STOP Sony_RM-687C KEY_3 | root@wirenboard:~# irsend SEND_STOP Sony_RM-687C KEY_3 | ||
</pre> | </pre> | ||
( | (the name of the remote and buttons should correspond to the configuration used). | ||
* | * Make sure that the hardware is working - for example, you can look at the IR led through the smartphone camera (the led should blink when transmitting) |
правки