{"id":642,"date":"2019-01-15T14:17:13","date_gmt":"2019-01-15T14:17:13","guid":{"rendered":"http:\/\/lora.vsb.cz\/?page_id=642"},"modified":"2022-04-11T05:37:04","modified_gmt":"2022-04-11T05:37:04","slug":"gw-with-gps-module","status":"publish","type":"page","link":"https:\/\/lora.vsb.cz\/index.php\/gw-with-gps-module\/","title":{"rendered":"Gateway with GPS module (legacy)"},"content":{"rendered":"<h3><span style=\"color: #0095cf;\">LoRaWAN Gateway with GPS module NEO-6M GYNEO6MV2 (legacy, TTN v2)<br \/>\n<\/span><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-748 alignnone\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2019\/02\/1510.jpg\" alt=\"\" width=\"300\" height=\"232\" \/><\/p>\n<h4><strong>Wiring:<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-749 alignleft\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2019\/02\/raspberry-pi-gy-neo6mv2.png\" alt=\"\" width=\"244\" height=\"223\" srcset=\"https:\/\/lora.vsb.cz\/wp-content\/uploads\/2019\/02\/raspberry-pi-gy-neo6mv2.png 718w, https:\/\/lora.vsb.cz\/wp-content\/uploads\/2019\/02\/raspberry-pi-gy-neo6mv2-300x275.png 300w\" sizes=\"auto, (max-width: 244px) 100vw, 244px\" \/><br \/>\nRXT on the GPS goes to TXD on the PI<br \/>\nTXD on the GPS goes to RXT on the PI<\/p>\n<p><span style=\"text-decoration: underline;\">GPS &#8212; RPI<\/span><\/p>\n<p>TX &#8212; GPIO15-RX (pin10)<br \/>\nRX &#8212; GPIO14-TX (pin8)<br \/>\nUcc &#8212; 3.3V (pin 1)<br \/>\nGND &#8212; GND<br \/>\nPPS &#8212; pin 19 iC880<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Tested antennas:<\/strong><\/h4>\n<table class=\"tg\">\n<tbody>\n<tr>\n<th class=\"tg-0lax\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-895 aligncenter\" src=\"http:\/\/lora.vsb.cz\/wp-content\/uploads\/2019\/11\/ap-agnss-a003s.png\" alt=\"\" width=\"100\" height=\"81\" \/><\/th>\n<th class=\"tg-0lax\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/eshop.sectron.cz\/photo-cache\/1522844278ap-agps-20-1000-1000.png\" width=\"143\" height=\"95\" \/><\/th>\n<\/tr>\n<tr>\n<td class=\"tg-0lax\" style=\"text-align: center;\">GPS\/GLONASS antenna, with thread, SMA(m), RG174\/3m<br \/>\n<a href=\"https:\/\/eshop.sectron.cz\/cs\/antena-gps-glonass-montazni-003-sma-m-rg174-3m\/p-12395\/\" target=\"_blank\" rel=\"noopener noreferrer\">e-shop<\/a><\/td>\n<td class=\"tg-0lax\" style=\"text-align: center;\">GPS antenna EA200, SMA(m), RG174\/5m<br \/>\n<a href=\"https:\/\/eshop.sectron.cz\/cs\/antena-gps-ea-200-montazni-sma-m-rg174-5m\/p-12623\/\" target=\"_blank\" rel=\"noopener noreferrer\">e-shop<\/a><\/p>\n<div class=\"slide current\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"slide current\"><\/div>\n<h4><strong>Configuration:<\/strong><\/h4>\n<pre><span style=\"color: #999999;\">#in raspi-config a deny serial<\/span>\r\n<span style=\"color: #999999;\"># in \/boot\/cmdline.txt set speed serial0 to 9600<\/span>\r\nreboot\r\napt-get install gpsd gpsd-clients\r\nsystemctl stop gpsd.socket\r\nsystemctl disable gpsd.socket\r\nstty -F \/dev\/serial0 9600 (rucni nastavewni rychlosti)\r\ngpsd \/dev\/serial0 -F \/var\/run\/gpsd.sock\r\nchmod a+rw \/dev\/serial0\r\ncgps -s\r\n\r\n<span style=\"color: #008000;\">debug:<\/span>\r\n<span style=\"color: #999999;\">cat \/dev\/serial0\r\n<\/span>\r\n<span style=\"color: #999999;\">gpsmon \/dev\/serial0\r\n\r\nhttps:\/\/raspberrypi.stackexchange.com\/questions\/30183\/gpsd-data-receiving-issues\r\n\r\nin RPI3: https:\/\/circuitdigest.com\/microcontroller-projects\/raspberry-pi-3-gps-module-interfacing\r\n\r\nvi \/boot\/config.txt<\/span>\r\n\r\ndtparam=spi=on\r\ndtoverlay=pi3-disable-bt\r\ncore_freq=250\r\nenable_uart=1\r\nforce_turbo=1\r\n\r\nsudo cp boot\/cmdline.txt boot\/cmdline_backup.txt\r\nsudo nano \/boot.cmdline.txt\r\n\r\ndwc_otg.lpm_enable=0 console=tty1 root=\/dev\/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles\r\n\r\nsudo systemctl stop serial-getty@ttyS0.service\r\nsudo systemctl disable serial-getty@ttyS0.service\r\nsudo systemctl enable serial-getty@ttyAMA0.service\r\n\r\n<strong>possible enable:<\/strong>\r\nsudo systemctl enable serial-getty@ttyS0.service\r\nsudo systemctl start serial-getty@ttyS0.service\r\n\r\n* if you have problem to access to AMA0 socket, try following:\r\n<em>sudo systemctl stop <a href=\"mailto:serial-getty@ttyAMA0.service\">serial-getty@ttyAMA0.service<\/a><\/em>\r\n<em>sudo systemctl disable <a href=\"mailto:serial-getty@ttyAMA0.service\">serial-getty@ttyAMA0.service<\/a><\/em>\r\n<em>sudo chmod a+rw \/dev\/ttyAMA0\r\n<\/em><\/pre>\n<p><span style=\"color: #ff0000;\"><span style=\"color: #000000;\"><strong>RaspberryPi 3 + GPS<\/strong>:<\/span> We couldn&#8217;t start this set, <span style=\"color: #339966;\">otherwise RPI 2B + GPS\u00a0 is working<\/span><\/span><\/p>\n<p>TTN script modification:<\/p>\n<ol>\n<li>last row in <code>\/opt\/ttn-gateway\/start.sh<\/code>\u00a0don&#8217;t run\u00a0<span style=\"color: #666699;\"><code>poly_pkt_fwd<\/code><\/span>\u00a0but\u00a0<code>gps_pkt_fwd<\/code>.<\/li>\n<li>copy to <code>global_conf.json<\/code> local settings in <code>local_conf.json<\/code><\/li>\n<li>modify:<\/li>\n<\/ol>\n<pre>\"gateway_conf\": {\r\n\"gateway_ID\": \"xxxxxxxxxx\",\r\n\"gps\": <strong>true<\/strong>,\r\n\"beacon\": false,\r\n\"monitor\": false,\r\n\"upstream\": true,\r\n\"downstream\": true,\r\n\"ghoststream\": false,\r\n\"radiostream\": true,\r\n\"statusstream\": true,\r\n\"server_address\": \"router.eu.thethings.network\",\r\n\"serv_port_up\": 1700,\r\n\"serv_port_down\": 1700,\r\n\"servers\":\r\n[ { \"server_address\": \"router.eu.thethings.network\",\r\n\"serv_port_up\": 1700,\r\n\"serv_port_down\": 1700,\r\n\"serv_enabled\": true } ],\r\n\/* adjust the following parameters for your network *\/\r\n\"keepalive_interval\": 10,\r\n\"stat_interval\": 30,\r\n\"push_timeout_ms\": 100,\r\n\/* forward only valid packets *\/\r\n\"forward_crc_valid\": true,\r\n\"forward_crc_error\": false,\r\n\"forward_crc_disabled\": false,\r\n\/* GPS configuration *\/\r\n<strong>\"gps_tty_path\": \"\/dev\/ttyAMA0<\/strong>\",\r\n\"ngrok_path\": \"\/usr\/bin\/ngrok\",\r\n\"system_calls\": [\"df -m\",\"free -h\",\"uptime\",\"who -a\",\"uname -a\"],\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>LoRaWAN Gateway with GPS module NEO-6M GYNEO6MV2 (legacy, TTN v2) Wiring: RXT on the GPS goes to TXD on the PI TXD on the GPS goes to RXT on the PI GPS &#8212; RPI TX &#8212; GPIO15-RX (pin10) RX &#8212; GPIO14-TX (pin8) Ucc &#8212; 3.3V (pin 1) GND &#8212; GND PPS &#8212; pin 19 iC880 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-642","page","type-page","status-publish","hentry","post"],"_links":{"self":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":28,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/642\/revisions"}],"predecessor-version":[{"id":1426,"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/pages\/642\/revisions\/1426"}],"wp:attachment":[{"href":"https:\/\/lora.vsb.cz\/index.php\/wp-json\/wp\/v2\/media?parent=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}