Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:set-fixed-frame [2026/09/30 11:56] – [2. Make additional settings in the container] grayapp-notes:set-fixed-frame [2026/09/30 15:05] (current) – [3. Additional information] gray
Line 142: Line 142:
 ~ $ vi /etc/lxc/guest0/config ~ $ vi /etc/lxc/guest0/config
                                                                                                                        
-# Setting up a USB flash drive in the LXC container +# Setting up a USB drive in the LXC container 
 lxc.cgroup.devices.allow = c 188:1 rwm lxc.cgroup.devices.allow = c 188:1 rwm
 lxc.mount.entry = /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file 0 0    lxc.mount.entry = /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file 0 0   
Line 156: Line 156:
 <konsole> <konsole>
 ~ $ lxc-attach guest0 ~ $ lxc-attach guest0
-root@LXCNAME:~# apt install gpsd python3-gpsapt gpsd-clients python3-paramiko nano+root@LXCNAME:~# apt install gpsd python3-gps gpsd-clients python3-paramiko nano
 root@LXCNAME:~# root@LXCNAME:~#
 </konsole> </konsole>
Line 369: Line 369:
 </konsole> </konsole>
  
 +Then test the whole thing with a get script.
  
 <konsole> <konsole>
-root@LXCNAME:~/ubxlib/neom8l# python3 get_cfg_rate_neom8l.py +root@LXCNAME:~/ubx_neo_m8l# python3 get_cfg_rate_neom8l.py 
 2026-09-30 11:53:44,917 INFO     instantiating GnssUBlox on tty 2026-09-30 11:53:44,917 INFO     instantiating GnssUBlox on tty
 2026-09-30 11:53:44,917 INFO     using device /dev/ttyUSB1 2026-09-30 11:53:44,917 INFO     using device /dev/ttyUSB1
Line 378: Line 379:
   navRate: 1   navRate: 1
   timeRef: 0   timeRef: 0
-root@LXCNAME:~/ubxlib/neom8l# +root@LXCNAME:~/ubx_neo_m8l# 
 </konsole> </konsole>
  
Line 410: Line 411:
     rate_hz = int(sys.argv[1])     rate_hz = int(sys.argv[1])
     if not (1 <= rate_hz <= 10):     if not (1 <= rate_hz <= 10):
-        raise ValueErro# Name ggf. anpassen, s.u. +        raise ValueErro
-r+
 except ValueError: except ValueError:
     print("Error: frame interval must be an integer between 1 and 10")     print("Error: frame interval must be an integer between 1 and 10")
Line 465: Line 465:
  
  
-def run_remote2command(client, cmd):+def run_remote_command(client, cmd):
     stdin, stdout, stderr = client.exec_command(cmd)     stdin, stdout, stderr = client.exec_command(cmd)
     out = stdout.read().decode().strip()     out = stdout.read().decode().strip()