Différences entre versions de « GW Kerlink »
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 7 : | Ligne 7 : | ||
*/mnt/fsuser-1/ttn | */mnt/fsuser-1/ttn | ||
contient les fichiers de config | contient les fichiers de config | ||
+ | suivre les instructions de : | ||
+ | https://github.com/TheThingsNetwork/packet_forwarder/blob/master/docs/INSTALL_INSTRUCTIONS/KERLINK.md | ||
+ | |||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="width:40em;"> | ||
+ | Commandes passées | ||
+ | <div class="mw-collapsible-content"> | ||
+ | scp * root@192.168.0.17:/mnt/fsuser-1/ttn-packet-forwarder | ||
+ | puis sur la GW elle même : | ||
+ | ./create-package.sh packet-forwarder | ||
+ | GW id : eui-0000000000024b08 | ||
+ | GW Key : A récupérer sur TTN ... | ||
+ | Mais c'est KO | ||
+ | |||
+ | Build utilisé | ||
+ | |||
+ | INFO Got build information BuildDate=2017-06-07T07:5631Z Commit=b64203b985c02a82ab4f3cb41d907be85fcb04e6 Version= | ||
+ | |||
+ | [root@Wirnet_290000bb ttn-packet-forwarder]# ./packet-forwarder start | ||
+ | INFO Packet Forwarder for LoRa Gateway HALVersionInfo=Version: 4.0.0; Options: native; | ||
+ | ERROR Failed to find gateway specified as gateway ID AuthServer=https://account.thethingsnetwork.org GatewayID=eui-0000000000024b08 error=Get https://account.thethingsnetwork.org/api/v2/gateways/eui-0000000000024b08: dial tcp 104.40.216.89:443: getsockopt: connection timed out | ||
+ | FATAL Couldn't read configuration error=Get https://account.thethingsnetwork.org/api/v2/gateways/eui-0000000000024b08: dial tcp 104.40.216.89:443: getsockopt: connection timed out | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | donc tentative avec | ||
+ | scp dota_thethingsnetwork_v1.3_EU.tar.gz root@192.168.0.17:/mnt/fsuser-1/dota | ||
+ | puis reboot | ||
+ | tcpdump -AUq port 1700 donne enfin un résultat ! | ||
+ | |||
+ | [root@Wirnet_290000bb thethingsnetwork]# ./poly_pkt_fwd | ||
+ | |||
+ | semble OK et la GW est sur la carte ! | ||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="width:40em;"> | ||
+ | Commande passée et log de démarrage | ||
+ | <div class="mw-collapsible-content"> | ||
+ | [root@Wirnet_290000bb thethingsnetwork]# ./poly_pkt_fwd | ||
+ | *** Poly Packet Forwarder for Lora Gateway *** | ||
+ | Version: 2.1.0 | ||
+ | *** Lora concentrator HAL library version info *** | ||
+ | Version: 3.1.0; Options: native; | ||
+ | *** | ||
+ | INFO: Little endian host | ||
+ | INFO: found global configuration file global_conf.json, parsing it | ||
+ | INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters | ||
+ | INFO: lorawan_public 1, clksrc 1 | ||
+ | INFO: Configuring TX LUT with 16 indexes | ||
+ | INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 | ||
+ | INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 | ||
+ | INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 | ||
+ | INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 | ||
+ | INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate | ||
+ | INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters | ||
+ | INFO: gateway MAC address is configured to AA555A0000000000 | ||
+ | INFO: server hostname or IP address is configured to "iot.semtech.com" | ||
+ | INFO: upstream port is configured to "1680" | ||
+ | INFO: downstream port is configured to "1680" | ||
+ | INFO: downstream keep-alive interval is configured to 10 seconds | ||
+ | INFO: statistics display interval is configured to 30 seconds | ||
+ | INFO: upstream PUSH_DATA time-out is configured to 100 ms | ||
+ | INFO: packets received with a valid CRC will be forwarded | ||
+ | INFO: packets received with a CRC error will NOT be forwarded | ||
+ | INFO: packets received with no CRC will NOT be forwarded | ||
+ | INFO: GPS serial port path is configured to "/dev/nmea" | ||
+ | INFO: GPS is disabled | ||
+ | INFO: Upstream data is enabled | ||
+ | INFO: Downstream data is enabled | ||
+ | INFO: Ghoststream data is disabled | ||
+ | INFO: Radiostream data is enabled | ||
+ | INFO: Statusstream data is enabled | ||
+ | INFO: Beacon is enabled | ||
+ | INFO: Monitor is enabled | ||
+ | INFO: found local configuration file local_conf.json, parsing it | ||
+ | INFO: redefined parameters will overwrite global parameters | ||
+ | INFO: local_conf.json does not contain a JSON object named SX1301_conf | ||
+ | INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters | ||
+ | INFO: gateway MAC address is configured to 0000024B080000BB | ||
+ | INFO: server hostname or IP address is configured to "router.eu.thethings.network" | ||
+ | INFO: upstream port is configured to "1700" | ||
+ | INFO: downstream port is configured to "1700" | ||
+ | INFO: packets received with a valid CRC will be forwarded | ||
+ | INFO: packets received with a CRC error will NOT be forwarded | ||
+ | INFO: packets received with no CRC will be forwarded | ||
+ | INFO: GPS is enabled | ||
+ | INFO: Upstream data is enabled | ||
+ | INFO: Downstream data is enabled | ||
+ | INFO: Ghoststream data is disabled | ||
+ | INFO: Radiostream data is enabled | ||
+ | INFO: Statusstream data is enabled | ||
+ | INFO: Beacon is enabled | ||
+ | INFO: Monitor is enabled | ||
+ | INFO: [main] TTY port /dev/nmea open for GPS synchronization | ||
+ | INFO: [main] Starting the concentrator | ||
+ | INFO: [main] concentrator started, radio packets can now be received. | ||
+ | WARNING: [gps] GPS out of sync, keeping previous time reference | ||
+ | WARNING: [gps] GPS out of sync, keeping previous time reference | ||
+ | |||
+ | ##### 2018-01-07 21:41:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 0 (0 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 2 sec) | ||
+ | # GPS coordinates: latitude 48.65884, longitude -3.44518, altitude 100 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:42:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65884, longitude -3.44521, altitude 103 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:42:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65884, longitude -3.44522, altitude 103 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:43:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65886, longitude -3.44524, altitude 101 m | ||
+ | ##### END ##### | ||
+ | NOTE: [down] beacon ready to send (frequency 0 Hz) | ||
+ | --- Beacon payload --- | ||
+ | 0xEE - 0xFF - 0xC0 - 0x00 - 0x00 - 0x00 - 0x00 - 0x84 | ||
+ | 0x00 - 0x80 - 0x94 - 0x52 - 0x5A - 0x00 - 0x00 - 0xCE | ||
+ | 0xF1 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 | ||
+ | --- end of payload --- | ||
+ | NOTE: [down] beacon sent successfully | ||
+ | |||
+ | ##### 2018-01-07 21:43:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65886, longitude -3.44524, altitude 101 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:44:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65886, longitude -3.44523, altitude 101 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:44:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65886, longitude -3.44522, altitude 101 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:45:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65885, longitude -3.44522, altitude 101 m | ||
+ | ##### END ##### | ||
+ | NOTE: [down] beacon ready to send (frequency 0 Hz) | ||
+ | --- Beacon payload --- | ||
+ | 0xEE - 0xFF - 0xC0 - 0x00 - 0x00 - 0x00 - 0x00 - 0x84 | ||
+ | 0x00 - 0x00 - 0x95 - 0x52 - 0x5A - 0x00 - 0x00 - 0xCE | ||
+ | 0xF1 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 | ||
+ | --- end of payload --- | ||
+ | NOTE: [down] beacon sent successfully | ||
+ | |||
+ | ##### 2018-01-07 21:45:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 1 sec) | ||
+ | # GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 102 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:46:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65886, longitude -3.44522, altitude 101 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:46:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 101 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:47:08 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 102 m | ||
+ | ##### END ##### | ||
+ | |||
+ | ##### 2018-01-07 21:47:38 GMT ##### | ||
+ | ### [UPSTREAM] ### | ||
+ | # RF packets received by concentrator: 0 | ||
+ | # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% | ||
+ | # RF packets forwarded: 0 (0 bytes) | ||
+ | # PUSH_DATA datagrams sent: 1 (154 bytes) | ||
+ | # PUSH_DATA acknowledged: 0.00% | ||
+ | ### [DOWNSTREAM] ### | ||
+ | # PULL_DATA sent: 3 (0.00% acknowledged) | ||
+ | # PULL_RESP(onse) datagrams received: 0 (0 bytes) | ||
+ | # RF packets sent to concentrator: 0 (0 bytes) | ||
+ | # TX errors: 0 | ||
+ | ### [GPS] ### | ||
+ | # Valid gps time reference (age: 0 sec) | ||
+ | # GPS coordinates: latitude 48.65884, longitude -3.44519, altitude 105 m | ||
+ | ##### END ##### | ||
+ | WARNING: [gps] GPS out of sync, keeping previous time reference | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | [[File:Tregor4.png|400px]] | ||
+ | |||
+ | |||
+ | <div class="toccolours mw-collapsible mw-collapsed" style="width:40em;"> | ||
cat global_conf.json : | cat global_conf.json : | ||
+ | <div class="mw-collapsible-content"> | ||
+ | |||
<syntaxhighlight lang="jquery"> | <syntaxhighlight lang="jquery"> | ||
{ | { | ||
Ligne 225 : | Ligne 574 : | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | </div> | ||
+ | </div> | ||
[root@Wirgrid_290000bb ttn]# cat local_conf.json | [root@Wirgrid_290000bb ttn]# cat local_conf.json |
Version actuelle datée du 9 janvier 2018 à 20:51
- Prendre un PC fablab, se connecter en filaire
- nmap -p 33 192.168.128.*
- ssh root@192.168.128.56
- pwd root ou pdmk-290000bb
- /mnt/fsuser-1/ttn
contient les fichiers de config suivre les instructions de :
Commandes passées
scp * root@192.168.0.17:/mnt/fsuser-1/ttn-packet-forwarder puis sur la GW elle même : ./create-package.sh packet-forwarder GW id : eui-0000000000024b08 GW Key : A récupérer sur TTN ... Mais c'est KO
Build utilisé
INFO Got build information BuildDate=2017-06-07T07:5631Z Commit=b64203b985c02a82ab4f3cb41d907be85fcb04e6 Version=
[root@Wirnet_290000bb ttn-packet-forwarder]# ./packet-forwarder start
INFO Packet Forwarder for LoRa Gateway HALVersionInfo=Version: 4.0.0; Options: native; ERROR Failed to find gateway specified as gateway ID AuthServer=https://account.thethingsnetwork.org GatewayID=eui-0000000000024b08 error=Get https://account.thethingsnetwork.org/api/v2/gateways/eui-0000000000024b08: dial tcp 104.40.216.89:443: getsockopt: connection timed out FATAL Couldn't read configuration error=Get https://account.thethingsnetwork.org/api/v2/gateways/eui-0000000000024b08: dial tcp 104.40.216.89:443: getsockopt: connection timed out
donc tentative avec scp dota_thethingsnetwork_v1.3_EU.tar.gz root@192.168.0.17:/mnt/fsuser-1/dota puis reboot tcpdump -AUq port 1700 donne enfin un résultat !
[root@Wirnet_290000bb thethingsnetwork]# ./poly_pkt_fwd
semble OK et la GW est sur la carte !
Commande passée et log de démarrage
[root@Wirnet_290000bb thethingsnetwork]# ./poly_pkt_fwd
- Poly Packet Forwarder for Lora Gateway ***
Version: 2.1.0
- Lora concentrator HAL library version info ***
Version: 3.1.0; Options: native;
INFO: Little endian host INFO: found global configuration file global_conf.json, parsing it INFO: global_conf.json does contain a JSON object named SX1301_conf, parsing SX1301 parameters INFO: lorawan_public 1, clksrc 1 INFO: Configuring TX LUT with 16 indexes INFO: radio 0 enabled (type SX1257), center frequency 867500000, RSSI offset -166.000000, tx enabled 1 INFO: radio 1 enabled (type SX1257), center frequency 868500000, RSSI offset -166.000000, tx enabled 0 INFO: Lora multi-SF channel 0> radio 1, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 1> radio 1, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 2> radio 1, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 3> radio 0, IF -400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 4> radio 0, IF -200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 5> radio 0, IF 0 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 6> radio 0, IF 200000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora multi-SF channel 7> radio 0, IF 400000 Hz, 125 kHz bw, SF 7 to 12 INFO: Lora std channel> radio 1, IF -200000 Hz, 250000 Hz bw, SF 7 INFO: FSK channel> radio 1, IF 300000 Hz, 125000 Hz bw, 50000 bps datarate INFO: global_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters INFO: gateway MAC address is configured to AA555A0000000000 INFO: server hostname or IP address is configured to "iot.semtech.com" INFO: upstream port is configured to "1680" INFO: downstream port is configured to "1680" INFO: downstream keep-alive interval is configured to 10 seconds INFO: statistics display interval is configured to 30 seconds INFO: upstream PUSH_DATA time-out is configured to 100 ms INFO: packets received with a valid CRC will be forwarded INFO: packets received with a CRC error will NOT be forwarded INFO: packets received with no CRC will NOT be forwarded INFO: GPS serial port path is configured to "/dev/nmea" INFO: GPS is disabled INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is enabled INFO: Monitor is enabled INFO: found local configuration file local_conf.json, parsing it INFO: redefined parameters will overwrite global parameters INFO: local_conf.json does not contain a JSON object named SX1301_conf INFO: local_conf.json does contain a JSON object named gateway_conf, parsing gateway parameters INFO: gateway MAC address is configured to 0000024B080000BB INFO: server hostname or IP address is configured to "router.eu.thethings.network" INFO: upstream port is configured to "1700" INFO: downstream port is configured to "1700" INFO: packets received with a valid CRC will be forwarded INFO: packets received with a CRC error will NOT be forwarded INFO: packets received with no CRC will be forwarded INFO: GPS is enabled INFO: Upstream data is enabled INFO: Downstream data is enabled INFO: Ghoststream data is disabled INFO: Radiostream data is enabled INFO: Statusstream data is enabled INFO: Beacon is enabled INFO: Monitor is enabled INFO: [main] TTY port /dev/nmea open for GPS synchronization INFO: [main] Starting the concentrator INFO: [main] concentrator started, radio packets can now be received. WARNING: [gps] GPS out of sync, keeping previous time reference WARNING: [gps] GPS out of sync, keeping previous time reference
- 2018-01-07 21:41:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 0 (0 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 2 sec)
- GPS coordinates: latitude 48.65884, longitude -3.44518, altitude 100 m
- END #####
- 2018-01-07 21:42:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65884, longitude -3.44521, altitude 103 m
- END #####
- 2018-01-07 21:42:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65884, longitude -3.44522, altitude 103 m
- END #####
- 2018-01-07 21:43:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65886, longitude -3.44524, altitude 101 m
- END #####
NOTE: [down] beacon ready to send (frequency 0 Hz) --- Beacon payload --- 0xEE - 0xFF - 0xC0 - 0x00 - 0x00 - 0x00 - 0x00 - 0x84 0x00 - 0x80 - 0x94 - 0x52 - 0x5A - 0x00 - 0x00 - 0xCE 0xF1 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 --- end of payload --- NOTE: [down] beacon sent successfully
- 2018-01-07 21:43:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65886, longitude -3.44524, altitude 101 m
- END #####
- 2018-01-07 21:44:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65886, longitude -3.44523, altitude 101 m
- END #####
- 2018-01-07 21:44:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65886, longitude -3.44522, altitude 101 m
- END #####
- 2018-01-07 21:45:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65885, longitude -3.44522, altitude 101 m
- END #####
NOTE: [down] beacon ready to send (frequency 0 Hz) --- Beacon payload --- 0xEE - 0xFF - 0xC0 - 0x00 - 0x00 - 0x00 - 0x00 - 0x84 0x00 - 0x00 - 0x95 - 0x52 - 0x5A - 0x00 - 0x00 - 0xCE 0xF1 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 - 0x00 --- end of payload --- NOTE: [down] beacon sent successfully
- 2018-01-07 21:45:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 1 sec)
- GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 102 m
- END #####
- 2018-01-07 21:46:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65886, longitude -3.44522, altitude 101 m
- END #####
- 2018-01-07 21:46:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 101 m
- END #####
- 2018-01-07 21:47:08 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65885, longitude -3.44521, altitude 102 m
- END #####
- 2018-01-07 21:47:38 GMT #####
- [UPSTREAM] ###
- RF packets received by concentrator: 0
- CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
- RF packets forwarded: 0 (0 bytes)
- PUSH_DATA datagrams sent: 1 (154 bytes)
- PUSH_DATA acknowledged: 0.00%
- [DOWNSTREAM] ###
- PULL_DATA sent: 3 (0.00% acknowledged)
- PULL_RESP(onse) datagrams received: 0 (0 bytes)
- RF packets sent to concentrator: 0 (0 bytes)
- TX errors: 0
- [GPS] ###
- Valid gps time reference (age: 0 sec)
- GPS coordinates: latitude 48.65884, longitude -3.44519, altitude 105 m
- END #####
WARNING: [gps] GPS out of sync, keeping previous time reference
cat global_conf.json :
{
"SX1301_conf": {
"lorawan_public": true,
"clksrc": 1, /* radio_1 provides clock to concentrator */
"radio_0": {
"enable": true,
"type": "SX1257",
"freq": 867500000,
"rssi_offset": -166.0,
"tx_enable": true
},
"radio_1": {
"enable": true,
"type": "SX1257",
"freq": 868500000,
"rssi_offset": -166.0,
"tx_enable": false
},
"chan_multiSF_0": {
/* Lora MAC channel, 125kHz, all SF, 868.1 MHz */
"enable": true,
"radio": 1,
"if": -400000
},
"chan_multiSF_1": {
/* Lora MAC channel, 125kHz, all SF, 868.3 MHz */
"enable": true,
"radio": 1,
"if": -200000
},
"chan_multiSF_2": {
/* Lora MAC channel, 125kHz, all SF, 868.5 MHz */
"enable": true,
"radio": 1,
"if": 0
},
"chan_multiSF_3": {
/* Lora MAC channel, 125kHz, all SF, 867.1 MHz */
"enable": true,
"radio": 0,
"if": -400000
},
"chan_multiSF_4": {
/* Lora MAC channel, 125kHz, all SF, 867.3 MHz */
"enable": true,
"radio": 0,
"if": -200000
},
"chan_multiSF_5": {
/* Lora MAC channel, 125kHz, all SF, 867.5 MHz */
"enable": true,
"radio": 0,
"if": 0
},
"chan_multiSF_6": {
/* Lora MAC channel, 125kHz, all SF, 867.7 MHz */
"enable": true,
"radio": 0,
"if": 200000
},
"chan_multiSF_7": {
/* Lora MAC channel, 125kHz, all SF, 867.9 MHz */
"enable": true,
"radio": 0,
"if": 400000
},
"chan_Lora_std": {
/* Lora MAC channel, 250kHz, SF7, 868.3 MHz */
"enable": true,
"radio": 1,
"if": -200000,
"bandwidth": 250000,
"spread_factor": 7
},
"chan_FSK": {
/* FSK 50kbps channel, 868.8 MHz */
"enable": true,
"radio": 1,
"if": 300000,
"bandwidth": 125000,
"datarate": 50000
},
"tx_lut_0": {
/* TX gain table, index 0 */
"pa_gain": 0,
"mix_gain": 8,
"rf_power": -5,
"dig_gain": 0
},
"tx_lut_1": {
/* TX gain table, index 1 */
"pa_gain": 0,
"mix_gain": 11,
"rf_power": -1,
"dig_gain": 0
},
"tx_lut_2": {
/* TX gain table, index 2 */
"pa_gain": 0,
"mix_gain": 12,
"rf_power": 0,
"dig_gain": 0
},
"tx_lut_3": {
/* TX gain table, index 3 */
"pa_gain": 1,
"mix_gain": 9,
"rf_power": 7,
"dig_gain": 0
},
"tx_lut_4": {
/* TX gain table, index 4 */
"pa_gain": 1,
"mix_gain": 10,
"rf_power": 8,
"dig_gain": 0
},
"tx_lut_5": {
/* TX gain table, index 5 */
"pa_gain": 1,
"mix_gain": 12,
"rf_power": 11,
"dig_gain": 0
},
"tx_lut_6": {
/* TX gain table, index 6 */
"pa_gain": 1,
"mix_gain": 13,
"rf_power": 13,
"dig_gain": 0
},
"tx_lut_7": {
/* TX gain table, index 7 */
"pa_gain": 1,
"mix_gain": 14,
"rf_power": 14,
"dig_gain": 0
},
"tx_lut_8": {
/* TX gain table, index 8 */
"pa_gain": 2,
"mix_gain": 9,
"rf_power": 16,
"dig_gain": 0
},
"tx_lut_9": {
/* TX gain table, index 9 */
"pa_gain": 2,
"mix_gain": 11,
"rf_power": 19,
"dig_gain": 0
},
"tx_lut_10": {
/* TX gain table, index 10 */
"pa_gain": 3,
"mix_gain": 8,
"rf_power": 21,
"dig_gain": 0
},
"tx_lut_11": {
/* TX gain table, index 11 */
"pa_gain": 3,
"mix_gain": 8,
"rf_power": 23,
"dig_gain": 0
},
"tx_lut_12": {
/* TX gain table, index 12 */
"pa_gain": 3,
"mix_gain": 9,
"rf_power": 24,
"dig_gain": 0
},
"tx_lut_13": {
/* TX gain table, index 13 */
"pa_gain": 3,
"mix_gain": 10,
"rf_power": 26,
"dig_gain": 0
},
"tx_lut_14": {
/* TX gain table, index 14 */
"pa_gain": 3,
"mix_gain": 11,
"rf_power": 27,
"dig_gain": 0
},
"tx_lut_15": {
/* TX gain table, index 15 */
"pa_gain": 3,
"mix_gain": 12,
"rf_power": 28,
"dig_gain": 0
}
},
"gateway_conf": {
"gateway_ID": "AA555A0000000000",
/* change with default server address/ports, or overwrite in local_conf.json */
"server_address": "iot.semtech.com",
"serv_port_up": 1680,
"serv_port_down": 1680,
/* adjust the following parameters for your network */
"keepalive_interval": 10,
"stat_interval": 30,
"push_timeout_ms": 100,
/* forward only valid packets */
"forward_crc_valid": true,
"forward_crc_error": false,
"forward_crc_disabled": false,
/* GPS configuration */
"gps_tty_path": "/dev/nmea"
}
}
[root@Wirgrid_290000bb ttn]# cat local_conf.json {
"gateway_conf": { "gateway_ID": "0000024b08", "serv_port_up": 1700, "serv_port_down": 1700, "server_address": "router.eu.thethings.network", "forward_crc_valid": true, "forward_crc_error": false, "forward_crc_disabled": true, "gps": true }
}
https://www.thethingsnetwork.org/docs/gateways/kerlink/config.html