This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tinypilot beta image
#31
Hi Sean

Playing around with the beta image yesterday, I really like "darkmode". Very nice
Only thing I noticed which didn't seem right was the Heading and control were very tiny font.
Great work, looking forward to more testing now that I replaced the mpu
Reply
#32
the web control has a bug I found sailing today, but otherwise it works well with the new image and the remote control works from anywhere on the boat.
Reply
#33
Hi,
Not sure if it is the right place to post but since I use the latest beta image It may be relevant.
I am using tinypilot image from
https://pypilot.org/images/tinypilot_2020_09_30.img.xz
On a raspberry pi zero.
I am trying to use an IR remote control, have a photo transistor module Hx1838 cabled to gp4.
Following the instruction on
https://pypilot.org/wiki/doku.php?id=pro...ng_remotes

tc@box:~$ sudo sv down lircd
tc@box:~$ $ sudo killall lircd
-sh: $: not found
tc@box:~$ sudo mode2 -d /dev/lirc0
Using driver devinput on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Running as regular user tc
Partial read 8 bytes on /dev/lirc0tc@box:~$

Then following advice from
https://stackoverflow.com/questions/4845...ad-8-bytes
When I type

tc@box:~$ sudo mode2 --driver default --device /dev/lirc0
Using driver default on device /dev/lirc0
Trying device: /dev/lirc0
Using device: /dev/lirc0
Running as regular user tc
space 2625976
pulse 9370
space 4436
pulse 660
space 539
pulse 636
space 539
pulse 642
space 531
pulse 637
space 1597
pulse 661
space 1622
pulse 639
space 1622
pulse 640
space 1634
pulse 631
space 1620
pulse 643
It's much longer but you get the point
^C
tc@box:~$2



Then I follow the instructions but the remote is not working. LCD is fine and keypad OK bot no remote action even after reboot.

Here is the result of remote configuration terminal

tinypilot is a Sailboat Autopilot Distribution for raspberry pi
tc@box:~$ sudo irrecord -d /dev/lirc0 test.conf
Running as regular user tc
Using driver devinput on device /dev/lirc0
irrecord: could not open logfile "/home/tc/.cache/irrecord.log"
irrecord: Permission denied

irrecord -  application for recording IR-codes for usage with lirc
Copyright © 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

This program will record the signals from your remote control
and create a config file for lircd.

A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION at https://sf.net/p/lirc-remotes/wiki

If there already is a remote control of the same brand available at
http://sf.net/p/lirc-remotes you might want to try using such a
remote as a template. The config files already contains all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available. Templates can be downloaded using irdb-get(1). You use a
template file by providing the path of the file as a command line
parameter.

Please take the time to finish the file as described in
https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ an send it
to  <lirc@bartelmus.de> so it can be made available to others.

Press RETURN to continue.




Usually you should not create a new config file for devinput
devices. LIRC is installed with a devinput.lircd.conf file which
is built for the current system which works with all remotes
supported by the kernel. There might be a need to update
this file so it matches the current kernel. For this, use the
lirc-make-devinput(1) script.

Press RETURN to continue.

Checking for ambient light  creating too much disturbances.
Please don't press any buttons, just wait a few seconds...

No significant noise (received 0 bytes)

Enter name of remote (only ascii, no spaces) :
Enter name of remote (only ascii, no spaces) :test
You cannot use the same name if not updating

Please use another name

Enter name of remote (only ascii, no spaces) Confusedirius
Using sirius.lircd.conf as output filename

Hold down an arbitrary key
................................................................................
Found gap (592 us)

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_LEFT

Now hold down button "KEY_LEFT".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_RIGHT

Now hold down button "KEY_RIGHT".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_UP

Now hold down button "KEY_UP".
 eps            30
 aeps          100

 one             0     0
 zero            0     0
 pre_data_bits   8
 pre_data       0x11
 eps            30
 aeps          100

 one             0     0
 zero            0     0
 pre_data_bits   8
 pre_data       0x11
 gap          592
 toggle_bit_mask 0x0
 frequency    38000

     begin codes
         KEY_LEFT                 0x69000001000294
         KEY_RIGHT                0x63000001000298
         KEY_UP                   0x7400000100029B
         KEY_DOWN                 0x7B0000010002AB
         KEY_POWER                0x7C00000100029B
         KEY_MUTE                 0x620000010002A0
         KEY_SELECT               0x69000001000299
:
tc@box:~$ cat sirius.lircd.conf /etc/lircd.conf > lircd.conf
tc@box:~$ sudo cp lircd.conf /etc/lircd.conf
tc@box:~$ sudo sv up lircd
tc@box:~$ sv restart pypilot_lcdclient
fail: pypilot_lcdclient: unable to change to service directory: file does not exist
tc@box:~$ filetool.sh -b
Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz/
Done.
tc@box:~$
[
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)