hyucksoon
(Hyucksoon)
January 14, 2020, 12:58pm
1
Hello,
I’m trying to generate the ic880a with RPi3.
! Beware this allows a connected console with the ttn user to issue any commands on your system.
without any password control, This step is completely optional and remains your decision.
==============================================================================
Is it necessary?
On console, it shows not connected.
Could you help me to solve this problem? Thank you.
You should post the logs of your RPi to get the best help.
cslorabox
(Cslorabox)
January 14, 2020, 4:00pm
3
Is the packet forwarder actually running, or did it fail on or shortly after startup?
Do you have any nodes sending packets which the gateway is receiving and trying to report to TTN?
hyucksoon
(Hyucksoon)
January 15, 2020, 6:18am
5
kersing
(Jac Kersing)
January 15, 2020, 7:53am
6
When I look at you message I see a lot of far too small text In a picture where you could just have copied-and-pasted the text in stead of posting screen captures.
I am not going to attempt to read this…
Please post text content as text, not screen captures.
hyucksoon
(Hyucksoon)
January 15, 2020, 12:48pm
7
Oh, sorry. i expected you could see the log.
pi@ttn-gateway:~ $ sudo systemctl status ttn-gateway service
Unit service.service could not be found.
● ttn-gateway.service - The Things Network Gateway
Loaded: loaded (/lib/systemd/system/ttn-gateway.service; enabled; vendor pres
Active: active (running) since Wed 2020-01-15 08:57:03 EAT; 6h ago
Main PID: 337 (start.sh)
Tasks: 5 (limit: 2200)
Memory: 11.8M
CGroup: /system.slice/ttn-gateway.service
├─337 /bin/bash /opt/ttn-gateway/bin/start.sh
└─900 ./poly_pkt_fwd
Jan 15 08:57:03 ttn-gateway systemd[1]: Started The Things Network Gateway.
Jan 15 08:57:03 ttn-gateway ttn-gateway[337]: [TTN Gateway]: Waiting for interne
Jan 15 15:46:31 ttn-gateway ttn-gateway[337]: /opt/ttn-gateway/gateway-remote-co
Jan 15 15:46:40 ttn-gateway ttn-gateway[337]: Already up to date.
Jan 15 15:46:40 ttn-gateway ttn-gateway[337]: HEAD is now at 90bdbcb Merge pull
Jan 15 15:46:40 ttn-gateway ttn-gateway[337]: /opt/ttn-gateway/bin
Jan 15 15:46:40 ttn-gateway ttn-gateway[337]: [TTN Gateway]: Use Gateway EUI B82
Jan 15 15:46:40 ttn-gateway ttn-gateway[337]: ln: failed to create symbolic link
lines 1-19/19 (END)
pi@ttn-gateway:~ $ sudo tcpdump -AUp port 1700
sudo: tcpdump: command not found
pi@ttn-gateway:~ $ sudo tail -f/var/log/syslog
tail: invalid option – ‘/’
Try ‘tail --help’ for more information.
kersing
(Jac Kersing)
January 15, 2020, 6:39pm
8
Try 3 again with a space between f and /.
hyucksoon
(Hyucksoon)
January 16, 2020, 1:12pm
9
Thank you sir, i got this message.
pi@ttn-gateway:~ $ sudo tail -f /var/log/syslog
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: ### [UPSTREAM] ###
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # RF packets received by concentrator: 0
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # RF packets forwarded: 0 (0 bytes)
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # PUSH_DATA datagrams sent: 0 (0 bytes)
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # PUSH_DATA acknowledged: 0.00%
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: ### [DOWNSTREAM] ###
Jan 16 16:11:02 ttn-gateway ttn-gateway[314]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 16 16:11:58 ttn-gateway kernel: [ 131.272705] Under-voltage detected! (0x00050005)
Jan 16 16:12:02 ttn-gateway kernel: [ 135.432711] Voltage normalised (0x00000000)
cslorabox
(Cslorabox)
January 16, 2020, 7:48pm
10
That power warning is worrisome, you may need a better power supply.
Mostly I’d suggest you continue to watch the syslog tail for five minutes or even longer.
In particular, you need to see valid messages being received from node(s). At the gateway level they will still be encrypted, but the base packet level CRC should be valid so that they are eligible for forwarding to the network.
And you need to see that the push / pull messages are being acknowledged by the network.
Your limited paste there doesn’t show any packets, and it seems to suggest that the network is not acknowledging the gateway’s attempts to contact it.
hyucksoon
(Hyucksoon)
January 17, 2020, 5:48am
12
Thank you.
1.I’m seeing the syslog to check belows:
voltage
push / pull message
Seeing valid messages from nodes: How can i check? I am planning to use the Dragino with Arduino UNO.
Unfortunately, I’m not a specialist for communication technology but a student. Nevertheless I appreciate you helping me with these problems.
Thank you.
hyucksoon
(Hyucksoon)
January 17, 2020, 7:02am
13
I’ve checked the voltage of the RPi.
and the voltage is above 4V. but the syslog says me ‘Under-voltage detected!’
and the output of my charger is 5V, 20A.
kersing
(Jac Kersing)
January 17, 2020, 7:30am
14
The voltage needs to be 5V +/- 0.2V. If the output of your power supply meets those specifications (check, don’t trust the label) your cabling probably causes the drop.
The RPi with a LoRaWAN concentrator board really needs the specified 5V and isn’t getting it.
hyucksoon
(Hyucksoon)
January 17, 2020, 7:50am
15
Here is my syslog.
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:43:52 GMT #####
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:43:52 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247032 sec)
Jan 17 10:44:11 ttn-gateway kernel: [ 3012.196002] Under-voltage detected! (0x00050005)
Jan 17 10:44:15 ttn-gateway kernel: [ 3016.355919] Voltage normalised (0x00000000)
Jan 17 10:46:09 ttn-gateway kernel: [ 3130.747770] Under-voltage detected! (0x00050005)
Jan 17 10:46:15 ttn-gateway kernel: [ 3136.987357] Voltage normalised (0x00000000)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:44:22 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247062 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:44:52 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 1
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 100.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247092 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:45:22 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247122 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:45:52 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247152 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:46:22 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247182 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:46:52 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247212 sec)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Manual GPS coordinates: latitude 10.00000, longitude 20.00000, altitude -1 m
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### END #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ##### 2020-01-17 07:47:22 GMT #####
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [UPSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets received by concentrator: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets forwarded: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA datagrams sent: 2 (444 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PUSH_DATA acknowledged: 0.00%
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [DOWNSTREAM] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_DATA sent: 6 (0.00% acknowledged)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # PULL_RESP(onse) datagrams received: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # RF packets sent to concentrator: 0 (0 bytes)
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # TX errors: 0
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: ### [GPS] ###
Jan 17 10:47:22 ttn-gateway ttn-gateway[315]: # Invalid gps time reference (age: 1579247242 sec)
Jan 17 10:48:10 ttn-gateway kernel: [ 3251.379968] Under-voltage detected! (0x00050005)
Jan 17 10:48:14 ttn-gateway kernel: [ 3255.539717] Voltage normalised (0x00000000)
hyucksoon
(Hyucksoon)
January 17, 2020, 7:52am
16
When I check the voltage with multimeter, it shows 4.8V. Is it still weak?
cslorabox
(Cslorabox)
January 17, 2020, 3:35pm
17
You can’t measure what matters with a volt meter, as the load varies over time. You’d need a digital oscilloscope capable of triggering on power dips. The firmware messages indicate you still have a power problem, however I suspect you also have additional problems, for example you may not be using the correct address for a TTN server (or might be behind a firewall unusually blocking traffic), since you seem to never get an ack from it.
Additionally it seems you have not yet received an LoRa packets over the air. Are your nodes sending?
dbrgn
(Danilo)
January 20, 2020, 5:37pm
18
I would recommend getting a better power supply if possible. Which one are you currently using, an official one, or a random USB charger?
The Raspberry Pi is quite sensitive to undervoltage, it can cause SD card file system corruption for example.
hyucksoon
(Hyucksoon)
January 21, 2020, 5:21am
19
I have nodes made of arduino and dragino.
and How can i send the packets to the gateway?
Could you recommend me the instructions?
hyucksoon
(Hyucksoon)
January 21, 2020, 5:22am
20
I was using a official Samsung smartphone charger.
hyucksoon
(Hyucksoon)
January 21, 2020, 5:35am
21
Let me try this instructions from the beginning:
kersing
(Jac Kersing)
January 21, 2020, 7:47am
22
RPi with LoRaWAN concentrator will require more juice than a smartphone charger can deliver. Specifically peak current draws will not be handled.