Enterprise Gateway not streaming data to Blynk over LTE

We just purchased an enterprise gateway and 2 bidirectional pressure/temp sensors.

I have node-red programmed and connected to Blynk. If my gateway is connected to the internet via ethernet (ETH0), everything works fine and my data shows up on my Blynk dashboard. I am sending the temp and pressure once every 10 seconds. If I disconnect the ethernet and allow the gateway to connect to the internet via my hologram sim card, the gateway connects to the internet and the device shows as online in Blynk, but my data no longer streams.

Please advise.

Can someone from NCD reply to my issue here? I need to get this resolved.

Some additional info.

When I switch from LTE to ethernet by simply plugging in the ethernet cable, the gateway prioritizes the ethernet connection, connects to the internet and to Blynk, but doesn’t start streaming data, I have to then reboot the gateway in order for it to stream data.

If I then disconnect the ethernet and allow the LTE to connect, it connects to the internet and to Blynk, but doesn’t stream, so I then reboot, but it still does not stream.

One thing I noticed monitoring the web management page in the gateway, the modem initially connects GPRS but then changes to LTE. Not sure if that makes any difference.

-David

It looks like there are undeployed changes on your flow.

Is this screen capture of Node-Red from when the gateway is connected over Cellular? If you restart the gateway while its not connected to internet over ETH0 do the MQTT nodes still show connected?

On the MQTT nodes what is the QoS set to?

Can the gateway send an http request to google.com and get a response while the issue is occuring?

Ignore the undeployed changes. That was simply when I took the screen shot.

Yes, the MQTT nodes show connected on both ethernet and LTE

Can the gateway send an http request to google.com and get a response while the issue is occuring?

I can access google from my browser, while connected through the gateway, while it is on LTE, while it is occurring.

I added more info to my post above…

I ran a series of tests with Blynk support, switching from ethernet to LTE. Blynk looked at the connection logs and concluded:

“It seems the connection fails to establish after switching to LTE. It appears to be a device-level issue. The connection appears to stall, causing no data to be transmitted to the server.”

Hi,

Does it appear to be the network switching itself that causes this issue? Does a restart after network switch regain comms?

On the MQTT nodes what is the QoS set to?

Yes, switching from ethernet to LTE stops the data from streaming, even though it is connected to Blynk. A restart does not help.

MQTT QoS dropdown is blank.

Try setting that to 1 and see if that resolves your issue.

I’m not sure what blank will default to, but a value of 1 will expect a response when data is sent and should trigger a reconnect. I’m guessing that the network switch causes a dropped connection, but with a value of blank the MQTT doesn’t do any integrity checks.

I set QoS to 1, and am now getting a new error in the debug window. This error does not appear when I switch back over to ethernet (leaving QoS at 1):

Hard to say, the error message is pretty clear about the error, but what’s causing it I’m not entirely sure. If I had to guess its the handling of retained messages sent after reconnect.

According to this page: Authentication | Blynk Documentation

Blockquote
“For the initial MQTT API release, only clean sessions are supported. In particular, the client will not receive any undelivered QoS 1 messages that were queued for it while it was disconnected. The Blynk team is working on Persistent Session support.”

You could try setting QoS to 0 and see if the base issue is just that it wasn’t set.

Set to 0, no error in debug, no data streaming.

Odd because ethernet works either way it is set…

So with QoS of 0, no ethernet connected, and a reboot of the gateway can you confirm that no data is going to Blynk over MQTT through the cellular connection? Wanting to test that its not a network change that’s causing the issue. Does Node-Red have the ability to access the internet? The easiest way to check is to have node-red send an http request to google.com

Can you send a screenshot of your cellular configuration? You can find it through the Network Management UI > Interface > Cellular as well as its status (tab along the top of that page)?

These pages should look similar to this (minus the sim not connected message):


So with QoS of 0, no ethernet connected, and a reboot of the gateway can you confirm that no data is going to Blynk over MQTT through the cellular connection?

Correct. It shows connected on the MQTT node, and shows as ONLINE in Blynk, but no data streaming.

TEST: Gateway connected through LTE. Sent request to google.

.

Blynk support figured it out… Was a geo dns issue

Hardcoding the host to ny3.blynk.cloud fixed it.

Thanks for your assistance Jacob. I appreciate you.

-David

1 Like