Connecting Dragino LG01 Gateway

I was seeing similar errors on mine before however, I was not getting a connected status on TTN at the time so if you are seeing yours as connected perhaps the issues are different. I haven’t checked my syslog since I’ve gotten mine running and connected but I’ll have to do so when I get home later today. I can at least confirm that the Global LED on mine was at the very least on the last time I had looked at the gateway last evening.

I’ll have to report back to you when I have access to gateway.

Ok I think I found the issue. So first, I only tested ABP to eliminate potential downlink problem. So apparently, in EU868 frequencies are rolling to minimize radio band use and so minimize duty cycle (correct me if I’m wrong). So for a mono-canal gateway it’s a big problem … So forcing my node to use only one frequency (868.1MHz in my case) solved the problem. Almost all packets are received (some times one is missing, I guess the gateway is busy by another node in the building).

Here my discussion about the node part : https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/26

EDIT : I found the solution for lg01_pkg_fwd script that do not start automatically. In the iot-deamon file (which is start on boot) we found this :

#Check What Service we use
	service=`uci get iot-services.general.server_type`
	if [ "$service" != "disabled" ];then
		script_name=`uci get $service.general.routine_script`
		script=$IOT_DIR$script_name
		
		# Kill possible running daemon;
		servpid=`ps w| grep $script | grep -v grep | awk '{print $1}'`
		if [[ ! -z "$servpid" ]]; then 
			killall $script_name
		fi
		
		#start services 
		#check script type
		if [ "${script%.lua}" != "$script" ]; then
			lua $script &
		else
            $script 2>&1 > /dev/null &
		fi 
	fi

The problem is that there is no lorawan.general.routine_script configured. The fix is simple : edit /etc/config/lorawan and add option “routine_script ‘lg01_pkt_fwd’” to config “settings ‘general’” and reboot :wink:

EDIT #2 : I found another bug … SF11 and SF12 are not supported and the SF settings sent to TTN server are wrong. I know that because I compared with my “real” gateway. It shows that my node is correctly configured but LG01 seems to receive nothing when Dragino is configured SF11 or SF12, I don’t know why … And when it’s received (with SF7 to SF10) it’s not well reported : real SF7 is reported as SF12BW125. Real SF10 is reported as SF7BW125 …

EDIT #3 : … suddently SF are well reported to TTN server … without doing anything … strange … but SF11 and SF12 still not working

1 Like

Hi,

I’m issuing the same problem as labsud. Every frame with SF11 or SF12 never appear into gateway traffic. And as you can see, the same frame as seen in the gateway trafic, and in the application data don’t show the same SF

Into gateway traffic:

{
  "gw_id": "eui-xxxxxxxxxxxxxxxx",
  "payload": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "lora": {
"spreading_factor": 9,
"bandwidth": 125,
"air_time": 185344000
  },
  "coding_rate": "4/5",
  "timestamp": "2018-07-31T15:56:06.240Z",
  "rssi": -46,
  "snr": 7.8,
  "dev_addr": "xxxxxxxx",
  "frequency": 868100000000000
}

Into application data:

{
  "time": "2018-07-31T15:56:05.923526878Z",
  "frequency": 868.1,
  "modulation": "LORA",
  "data_rate": "SF10BW125",
  "coding_rate": "4/5",
  "gateways": [
    {
      "gtw_id": "eui-xxxxxxxxxxxxxxxx",
      "timestamp": 859898932,
      "time": "2018-07-31T15:56:04.782568Z",
      "channel": 5,
      "rssi": -128,
      "snr": -15,
      "latitude": 45.xxxxx,
      "longitude": 5.xxxxx,
      "altitude": 2xx
    },
 ... other gateway but not dragino-lg01...
  ]
}

Because of the error in SF on gateway traffic, the gateway doesn’t appear into the application data.
This problem emerge only with some SF, I still haven’t test them all, and I may update a list of the buggy ones.

Joris

Is there a fix for this problem? So, I have the same problem.

Which one are you issuing? both?

I haven’t find any fix, sorry. Here or there ( [LG01] Same packet, twice in application console ) I get no solution…

It is neccessary to remove also ‘www.google.com’ from the host list. Google refuse the usage of ICMP against the site. Just pick another website - check with fping before - which allows the ICMP

Can anyone help me to connect Dragino getway and Dragino shield to TTN? and transfer data through them.

what did you try yourself ? what problems did you encounter ? which dragino gateway ? what firmware version ?

Dragino gateway LG01-P

Firmware version 4.3.4

I have connected my LG01 to TTN but as I am not able to connect to dragino shield I can not able to transfer data. I want to know how can I connect dragino shield with the gateway and able to transfer data. I am new to lora network so I do not have sufficient knowledge.

Hello RobinLoRa

Just the last day I installed allso a LG01-P and is right now connected to the TTN network as active gateway.
I have followed the Wiki off Dragio http://wiki.dragino.com/index.php?title=Connect_to_TTN#Create_Single_Channel_Gateway_By_LG01

I don’s use the LG01-p as router:
So disable under network internet acces:

image

And then under network - Lan & DHCP give a static Ip and cancel DHCP-server
image

then you must use the latest Arduino sketch : but read for that the topic in the wiki " Upload Arduino Sketch to LG01 Linux System"
And then it will be online

Johan

Hi there!
how do we create that directory?
I have a similar problem, but in my case in the gateway TTN part it shows the data traffic, coming from the device, but on the device part it says that it is connected and says the number of frames up but doesnt show any data…

Ad first you should read all info above, with the serveral links to documentation. I have followed it and it works after the latest reboot.

But you reply on message from Schulti and just a few rows/post’s below you could find the right answere.

but if you still run in trouble you could better “start over and go to start again” and follow the information in this thread. Read from top >> down.

regards

i tried this and didnt work… Can you explain why you did this and why would this work?

Often if you do a lot off small thing’s you don’t remeber what you did.
Thats why I Said. Game over and start again with a clean setting.
so try to rest the device to factory, and start over to make the setting’s mentiond above.
I have done it with all info above, with out error 's so the setting’s or good.
But I you walk to a error please remember that you search first and then come with your question form what is not working. add some details and not alone “it is not working”
Good luck with starting from a fresh install.
One thing I would say, it’s a ONE channel gateway and not a fully 8 channel gateway like the gateways from TTN , so with standard out off the box LoRa device’s will connect once in de 8 request’s.

Hie everyone,
It since a week, that Im fighting to get traffic from my gateway lg01-p, to TTN.
It is connected to Internet, and to TTN, but no traffic from the node.
I followed this tutorial:
http://wiki.dragino.com/index.php?title=Connect_to_TTN#Create_Single_Channel_Gateway_By_LG01
I’ve created the directory /root/data, and I’ve executed the lg01_pkt_fwd. everything works fine.
I followed all the steps, and I’ve tried also, the one of the dragino manual, nothing works.
Trying with the lmic, library or rf95, it doesn;t work, and I don’t know what to do.

Assuming you are trying to activate a device and that is not working then it may be the activation method. I believe that the default OTAA option requires at least a 2 channel gateway (your unit being a single channel gateway). Try using the ABP activation method.

1 Like

Hi,
I followed steps in this tutorial ( http://wiki.dragino.com/index.php?title=Connect_to_TTN ) and try to connect the LG01 Gateway to TTN. But in TTN console it showing not connected status. What I need to check please let me know.

Hello, I created a gateway in TTN but it still does not connect, I did the steps in the tutorial http://wiki.dragino.com/index.php?title=Connect_to_TTN#Create_Single_Channel_Gateway_By_LG01 but it has not given connection.
I am in Colombia, I use the frequency 915MHZ and the router.us.thethings server; I’m missing so there is connection.
Thanks.

The Dragino LG01 is not a LoRaWAN gateway.

See: Single Channel Packet Forwarder - Not gateway [guidelines]