Connecting Dragino LG01 Gateway

Hi Shulti,

We need to start some service to start the gateway?
I have internet connection from gateway.

Some idea??
Many thanks !!
Paulo

Hi allā€¦.It is already connected :slight_smile:

The process was not running.

What I checked before:
teste3teste1teste2teste4

All configuration was ok.

So I follow this link :

https://www.thethingsnetwork.org/docs/gateways/troubleshooting/semtech-udp.html#gateway-not-detecte

1 - I check that program is not running see ā€œEnsure the packet forwarder is runningā€

2 - Then I tried to find what i must to do to run the process.

I found this file: /etc/iot/scripts/lg01_pkt_fwd
And run like this:
/etc/iot/scripts/lg01_pkt_fwd&

After 2, 3 minutes it was connected to TTN.

I hope that this help someone.

Now that is connected, another stepā€¦I will try to see some packets traffic :slight_smile:
Paulo

7 Likes

In the latest firmware update LG01P has mqtt support, has anyone used their native mqtt offline yet?

/etc/iot/scripts/lg01_pkt_fwd&

Helps me to active my gateway! Thnx!

Hi,
Just received my Dragino LG01 and Iā€™m having troubles.

I followed the tutorial (and I already built a gateway with a rpi+ic880 so I am ok with LoRawan basics) + applied suggested patch in this topic (I had to start lg01_pkt_fwd script and I created root/data folder) and I finally got a ā€œconnectedā€ status on TTN channel. All firmware (MCU + Atheros) are up to date. But I donā€™t like the syslog :

Tue Jul 24 07:56:21 2018 kern.notice syslog: [IoT]: DNS Resolve Check: FAIL
Tue Jul 24 07:58:17 2018 kern.notice syslog: [IoT]: Internet Connection Check: FAIL
Tue Jul 24 07:58:19 2018 kern.notice syslog: [IoT]: DNS Resolve Check: FAIL
Tue Jul 24 07:58:29 2018 daemon.err uhttpd[1891]: ls: /dev/ttyUSB*: No such file or directory
Tue Jul 24 07:58:29 2018 daemon.err uhttpd[1891]: ls: /dev/ttyUSB*: No such file or directory
Tue Jul 24 07:59:32 2018 daemon.err uhttpd[1891]: ls: /dev/ttyUSB*: No such file or directory
Tue Jul 24 07:59:32 2018 daemon.err uhttpd[1891]: ls: /dev/ttyUSB*: No such file or directory
Tue Jul 24 08:00:00 2018 cron.info crond[1838]: USER root pid 4350 cmd checkdog
Sun Jan 1 00:00:05 2012 cron.err crond[1838]: time disparity of -3450719 minutes detected
Sun Jan 1 00:01:57 2012 kern.notice syslog: [IoT]: Internet Connection Check: FAIL
Sun Jan 1 00:01:59 2012 kern.notice syslog: [IoT]: DNS Resolve Check: FAIL

And obviously, GLOBAL led stays off.

Three things : no internet connection detected (but ping command are ok) and the ntp simply seems to crash and I cannot get my node connected (which works well with my rpi+ic880 gtw). I also canā€™t see the uart dialog between mcu and atheros (running ā€œtelnet localhost 6571ā€ command from SSH terminal).

For the NTP issue I forced to reach fr.pool.ntp.org and it seems to work better.

Any idea ?

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.