Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
NavQ is a companion computer reference design for HoverGames and commercial development of drones and rovers.
These components are designed to interface and work with the NavQ.
Guide to get the 8MMNavQ up and running quickly
How to order your own NavQ
This is a Murata Type1SC LTE CAT M1 Cellular Modem and is a low bandwidth solution for IOT.
~$ sudo apt install nanodemo image. If it isn't there, or if you lost it and need it, it is linked below.~$ sudo nano /var/lib/connman/ethernet.config[global]
Name = Ethernet_config
Description = Ethernet fixed IP setting
[service_onboard_ethernet]
Type = ethernet
IPv4 = 10.0.0.3/255.255.255.0/10.0.0.3set +e
mavlink start -x -u 14551 -o 14551 -r 200000 -t 10.0.0.3 -m onboard
set -e$ sudo ./resizeDisk.sh eMMC$ sudo ./resizeDisk.sh sd$ chmod a+x ./resizeDisk.sh$ sudo fdisk /dev/mmcblk1
Command (m for help): p
Device Boot Start End Blocks Size Id System
/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)
/dev/mmcblk1p2 196608 <end> <blocks> <size> 83 Linux
Command (m for help): d
Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): p
Device Boot Start End Blocks Size Id System
/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)
Command (m for help): n
Partition type
e extended
p primary partition (1-4)
Select (default p): p
Partition number (1-4, default 1): 2
First sector (2048-30621695, default 2048): 196608
Last sector, +sectors or +size{K,M,G} (2048-30621695, default 30621695): <press enter for default>
Created a new partition 2 of type 'Linux' and of size 14.5 GiB.
Partition #2 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: n
Command (m for help): p
Device Boot Start End Blocks Size Id System
/dev/mmcblk1p1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)
/dev/mmcblk1p2 196608 30621695 39425088 14.5G 83 Linux
Command (m for help): w
The partition table has been altered!$ sudo resize2fs /dev/mmcblk1p2d <enter>
2 <enter>
n <enter>
p <enter>
2 <enter>
196608 <enter>
<enter>
n <enter>
w <enter>
<fdisk should exit>
$ sudo resize2fs /dev/mmcblk2p2 <enter> (FOR eMMC)
$ sudo resize2fs /dev/mmcblk1p2 <enter> (FOR SD CARD)mavlink-router routes MavLink data dynamically between several end nodes
How to mount the NavQ using the plate and standoffs provided
Linux imx8mmnavq 5.4.24-2.1.0+gbabac008e5cf #1 SMP PREEMPT Fri Jul 24 23:17:18 UTC 2020 aarch64 aarch64 aarch$ sudo gst-launch-1.0 v4l2src ! vpuenc_h264 ! avimux ! filesink location='video.avi'$ connmanctl
connmanctl> enable wifi
connmanctl> scan wifi
connmanctl> services
WIFI_SSID wifi_e8de27077de3_41483034303434393134_managed_psk
connmanctl> agent on
connmanctl> connect wifi_e8de27077de3_41483034303434393134_managed_psk
<enter passphrase>
<wait for connection success message>
connmanctl> exit
$ ping www.nxp.com






~$ sudo nano /etc/hostnamenavq-10~$ sudo echo navq-10 > /etc/hostname$ rm -f /etc/localtime
$ ln -sf /usr/share/zoneinfo/<country>/<city> /etc/localtime$ rm -f /etc/localtime
$ ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime# Credit to: https://www.vandorp.biz/2012/01/installing-a-lightweight-lxdevnc-desktop-environment-on-your-ubuntudebian-vps/#.YCQEGS1h3O4
# Install X, LXDE, VPN programs
apt-get install xorg lxde-core tightvncserver
# Start VNC to create config file
tightvncserver :1
# Then stop VNC
tightvncserver -kill :1
# Edit config file to start session with LXDE:
nano ~/.vnc/xstartup
# Add this at the bottom of the file:
lxterminal &
/usr/bin/lxsession -s LXDE &
# Restart VNC
tightvncserver :1$ rm -f /etc/localtime
$ ln -sf /usr/share/zoneinfo/<country>/<city> /etc/localtime$ rm -f /etc/localtime
$ ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtimeA comprehensive guide on using the NavQ as an I2C master (work in progress)
Python framework for eIQ on i.MX
Linux
-----
$ ./uuu -lsusb
Windows
-------
$ .\uuu.exe -lsusb
Output
------
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.191-0-g4fe24b9
Connected Known USB Devices
Path Chip Pro Vid Pid BcdVersion
==================================================
2:7 MX8MM SDP: 0x1FC9 0x0134 0x0101Linux
-----
$ ./uuu -b [emmc_all|sd_all] <.bin-flash_navq> <.wic.bz2 OR .img>
Windows
-------
$ .\uuu.exe -b [emmc_all|sd_all] <.bin-flash_navq> <.wic.bz2 OR .img>$ sudo dd if=<path to .wic file> of=/dev/sdX bs=1M status=progress$ sudo diskutil unmountDisk /dev/rdiskX
$ sudo dd if=<path to .wic file> of=/dev/rdiskX bs=1m~$ mkdir src
~$ cd src
~/src$ git clone https://github.com/intel/mavlink-router.git
~/src$ cd mavlink-router
~/src/mavlink-router$ git submodule update --init --recursive
~/src/mavlink-router$ ./autogen.sh && ./configure CFLAGS='-g -O2' --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --prefix=/usr
~/src/mavlink-router$ make
~/src/mavlink-router$ sudo make install~$ sudo nano /etc/mavlink-router/main.conf#Mavlink router configuration navq
#
[General]
TcpServerPort=5760
ReportStats=false
MavlinkDialect=auto
[UartEndpoint FMUuart]
Device=/dev/ttymxc2
Baud=921600
[UdpEndpoint FMUeth]
Mode = Eavesdropping
Address = 0.0.0.0
Port = 14551
[UdpEndpoint QGConMobile]
Mode = Normal
Address = 192.168.43.1
Port = 14550~$ sudo systemctl enable mavlink-router
~$ sudo systemctl start mavlink-router~$ sudo systemctl status mavlink-router
gpio_number = ((gpio_bank - 1) * 32) + gpio_pingpio_number = ((1 - 1) * 32) + 12
gpio_number = (0) + 12
gpio_number = 12$ sudo echo 12 > /sys/class/gpio/export$ sudo echo in > /sys/class/gpio/gpio12/direction
$ sudo echo out > /sys/class/gpio/gpio12/direction$ sudo echo 0 > /sys/class/gpio/gpio12/value
$ sudo echo 1 > /sys/class/gpio/gpio12/value$ sudo cat /sys/class/gpio/gpio12/value
// a 0 or a 1 should be printed to your console$ sudo groupadd gpio
$ sudo usermod -aG gpio navqSUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'"
SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'"sudo rm -rf /usr/lib/libcurl*
sudo apt install curl
