OpenMarine
LIRC not connecting with pypilot_hat - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: LIRC not connecting with pypilot_hat (/showthread.php?tid=3921)

Pages: 1 2 3 4


RE: LIRC not connecting with pypilot_hat - seandepagnier - 2022-03-02

the RF wired directly? Or the RF wired through atmega connected by SPI?

You can test it better stopping the hat service, and running
pypilot/hat/lircd.py

Ensure there are events reported from pressing keys.

Also check the IR it can receive directly from lirc, or via IR over atmega via SPI, so there is a radio option on the 33333 page.


RE: LIRC not connecting with pypilot_hat - esm - 2022-03-31

I tried to update pypilot to the .34 version, and I am missing LIRC. The pypilot hat is not being recognized, the imu is found, but the screen is not working and can't access with the remote.  I have tried to update this to no avail.  I tried the install Sean suggested, and the other option with updating through the peppy fix suggested, but can't get LIRC to load:

pi@openplotter:~ $ pip freeze
arandr==0.1.9
asn1crypto==0.24.0
blinker==1.4
Click==7.0
colorama==0.3.7
colorzero==1.1
configparser==3.5.0b2
cryptography==2.6.1
entrypoints==0.3
enum34==1.1.6
Flask==1.0.2
gpiozero==1.5.1
gps==3.17
ipaddress==1.0.17
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
numpy==1.16.2
picamera==1.13
pigpio==1.44
pycairo==1.16.2
pycrypto==2.6.1
PyGObject==3.30.4
pyinotify==0.9.6
pyOpenSSL==19.0.0
pyserial==3.4
pyxdg==0.25
RPi.GPIO==0.7.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.12.0
spidev==3.4
Werkzeug==0.14.1

pi@openplotter:~ $ pypilot_hat
hat start 4259.637115802
have gpio for raspberry pi
hat import done 4259.699306098
loading config file: /home/pi/.pypilot/hat.conf
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
host localhost
lcd process on 27500
lcd driver default False True
using glut
hat init complete 4260.927060515
27521 (process ID) old priority 0, new priority 19
failed to load lirc No module named 'lirc'
have old lirc for remote control
do_connect: could not connect to socket
connect: No such file or directory
failed to initialize lirc. is .lircrc missing? Unable to initialize lirc!
set language en
create font charater b 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023098
create font charater a 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023097
create font charater s 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023115
create font charater i 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023105
create font charater c 23 0 4
store grey /home/pi/.pypilot/ugfxfonts/023099
got signal 17 cleaning up 27419
child process (27500, 0) [27521, 27500]
Traceback (most recent call last):
  File "/usr/local/bin/pypilot_hat", line 11, in <module>
    load_entry_point('pypilot==0.34', 'console_scripts', 'pypilot_hat')()
  File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 547, in main
    hat.poll()
  File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 539, in poll
    e=self.poller.poll(1000*period)
got signal 17 cleaning up 27419
subprocess returned (27521, 15) []
  File "/usr/local/lib/python3.7/dist-packages/pypilot/hat/hat.py", line 377, in cleanup
    raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt


RE: LIRC not connecting with pypilot_hat - seandepagnier - 2022-03-31

Its the wrong version of lirc or you don't have pylirc installed.

To get the screen working.. which hardware are you using? The hat is not recognized so it lacks an eeprom or did you boot with it installed?

In any case you can edit ~/.pypilot/hat.conf and manually specify the lcd type if it can't take the hint from the hat's eeprom


RE: LIRC not connecting with pypilot_hat - esm - 2022-04-06

(2022-03-31, 07:59 AM)seandepagnier Wrote: Its the wrong version of lirc or you don't have pylirc installed.

To get the screen working..  which hardware are you using?   The hat is not recognized so it lacks an eeprom or did you boot with it installed?

In any case you can edit ~/.pypilot/hat.conf and manually specify the lcd type if it can't take the hint from the hat's eeprom

Hi Sean, I am using a PI 3b+ and the PyPilot Hat.  I have one install where everything works, and another where the screen is not functioning.  For both, however,  "no pypilot hat detected" in openplotter Pypilot 2.2.0.  The Pypilot will drive the hydraulic motor, and display coordinates, but can't utilize the or program the wireless remote.


RE: LIRC not connecting with pypilot_hat - seandepagnier - 2022-04-07

Can you show a picture of your setup so I can verify what you are working with? There are several changing versions of hardware.


RE: LIRC not connecting with pypilot_hat - esm - 2022-04-07

[attachment=1776 Wrote:seandepagnier pid='22412' dateline='1649294301']     Can you show a picture of your setup so I can verify what you are working with?   There are several changing versions of hardware.

Here are the pics.


RE: LIRC not connecting with pypilot_hat - seandepagnier - 2022-04-08

Does the blue light show when a remote control button is pressed?


RE: LIRC not connecting with pypilot_hat - esm - 2022-04-08

(2022-04-08, 01:39 AM)seandepagnier Wrote: Does the blue light show when a remote control button is pressed?

Yes it does.


RE: LIRC not connecting with pypilot_hat - seandepagnier - 2022-04-08

Try to navigate to http://localhost:33333 in a browser and follow instructions there.


RE: LIRC not connecting with pypilot_hat - esm - 2022-04-08

(2022-04-08, 05:28 AM)s eandepagnier Wrote: Try to navigate to http://localhost:33333 in a browser and follow instructions there.

Hi Sean I did go to the localhost:33333 page and tried to program, but it does not accept the command when programming.  The blue light comes on but nothing is registering when the command is selected.