Author Topic: [SOLVED] Re-Post "Connecting the Gateway doesn't work"  (Read 1947 times)

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Does your LAN and WLAN use the same DHCP server? Maybe your network that is blocking the traffic on your LAN?

If you start your broker in -v mode (if you use mosquitto), do you see that the mcGateway connects at all to the broker?

Jos

  • Newbie
  • *
  • Posts: 8
    • View Profile
Both the LAN and Wifi come from the same box and use the same IP range. My network is completely 'flat'.

My raspberry is still running wheezy which only has mosquitto verion 0.15 as the newest version. Far too old, stupid me. With a proper mosquitto set up it finally works!

Thanks for your help. I hope I'll get the ethernet wokring again, some day though



Jos

  • Newbie
  • *
  • Posts: 8
    • View Profile
Ethernet also works again! Something to do with the the broker I had running and a bug in mcGateway not being able to handle that?

I'll try again tomorrow to see if I can get this reproduced in some clear steps. For now I'm happy that I did get it all to work.
Like Like x 1 View List

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
I am glad you got it to work.
I know that there is a verified bug with the mcGateway and when the mcGateway losses the connection to a broker then it could get stuck. But in my case when I had that issue then the green LED did stop to blink.
But my guess is that it could be the same bug that you had with that old MQTT broker.

Let me know if you need any help with the rest of the setup and I will do my best to help.
Like Like x 1 View List

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
I'm having the exact same problem as Jos.

I had the gateway and a module working for 3 days straight and then it just stopped. mcStudio can no longer see it.

I've tried upgrading the firmware to the latest for both the gateway and the modules but that hasn't solved the problem. Lights indicate everything is OK and problem persists on both wifi and ethernet (in each case an ip gets assigned by the router and I can ping the gateway).

Any ideas? I've also updated mcStudio to the latest but this did not help. And yes, I've updated the firmware mcGw110.bin file multiple times and re-downloaded it multiple times. No changes.

Regards,
Michal

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Are you not seeing the gateway in the devices screen? What IP address are you able to ping if you can't see the gateway?

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
No I am not seeing the gateway on the devices screen.

I am pinging 192.168.1.8 which has the client id of ESP_EEE8AC.

Regards,
Michal

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Is the LED labeled CONN on? Is the network switch on the device in WIFI posision?

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
Yes and yes. The green LED is also flashing.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Next question is, what is the IP address of your PC. The Gateway and the PC have to be on the same subnet for the PC to see it.

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
mcStudio is on the same subnet at 192.168.1.32. Nothing has changed on my network between when it worked and when it stopped working.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
This is very odd, the gateway stops advertising its presence if an instance of mcStudio is already connected to it. Do you have a instance of mcStudio running anywhere? Maybe check your process list to make sure there isn't a rouge mcStudio process that has crashed.

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
No other instances of mcStudio. In fact the computer has been rebooted multiple times and I even tried it from a VMWare Fusion instance running on a Mac.

For what it's worth, when it stopped working it was logging temperatures to a MQTT broker on the LAN every minute and then suddenly stopped after 2 days. I haven't been able to connect to it since.

Is there any way to connect to it to get some debugging info manually? via telnet perhaps?

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Unfortunately there is no way. Have you tried rebooting the gateway? Just wondering if somehow it is in a weird state and can't recover.

michal

  • Newbie
  • *
  • Posts: 43
    • View Profile
I've tried rebooting, resetting and reflashing. Is there any way to pull any diagnostic info off it at all? Force it to writre logs to the USB flash? Send data out somehow? Connect to headers on the gateway itself?