Author Topic: Multiple issues  (Read 1104 times)

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Multiple issues
« on: August 21, 2016, 03:24:30 pm »
Hello.
Today I updated my mcModules and mcGateways to latest versions

V0.7-365

V0.6-361
V0.7-407

And now I have many issues, I will list the most critical here and please let me know if anyone have the same issue.

1: I can't connect to any mcModules (almost true) in maybe 40 attempts I have connected with success two times. I have tried with two different mcGateways and with 5 different mcModules and two computers. Restart of mcGateway or mcModule does not help.

2: The mcModules that was running program (send data over MQTT) does not anymore sends any data except for the beacons. The two times i managed to connect to a mcModule then i tried to debug the same program that was running on that mcModule and then it did send over MQTT so i pushed the Load program to the device but still not sending anything except beacons. The second time i was connected to a module a different one i just tried to push the button Restart From Flash but it did not get the module to work again. Pulling the battery and restart the mcModules that way does not work.

3: If i look at the beacons several of my mcmodule now has data in beaconByte 1,2,3 and 4. On the mcModules that i never have programmed to send anything there. The data is 0x01 0x07 0x6D 0x01. Why is this happening?

Share on Facebook Share on Twitter


mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: Multiple issues
« Reply #1 on: August 22, 2016, 09:49:38 am »
1,2: We are doing a lot of work on connections, there are some problems and holes in the process and we are working on fixing them. I will give you an update as soon as we have some more information on this, thanks for being patient.

3: This was missed in the release notes. If there is no data in the beacon, it sends the version/type of module, this was mostly meant to be used by us to provide support but here is an explanation of the format for your reference:
Code: [Select]
byte[0] = 0x01 ------------------> Device Type for mcMod110
byte[1] = 0x07 = 7 ----------+
byte[2..3] = 0x016D = 365----+---> 0.7-365

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #2 on: August 22, 2016, 10:03:49 am »
Thanks Abe for good information and support as usual.  :)

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #3 on: August 23, 2016, 02:41:16 am »
For information.
One out of 5 mcModules have now started to send data over MQTT, I have not done anything.
This module is not running the latest mcModule firmware, it is not that easy to pull the battery on this one.

By the way, I guess that we will see a upcoming release so that we could remote restart the mcModule so that we could upgrade firmware on modules without manually reboot the mcModule?

millennial

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Multiple issues
« Reply #4 on: August 23, 2016, 08:54:14 am »
By the way, I guess that we will see a upcoming release so that we could remote restart the mcModule so that we could upgrade firmware on modules without manually reboot the mcModule?

This is an excellent point. I have created a thread at http://mcthings.createaforum.com/general/remote-mc-product-maintenance/ for further discussion.

millennial

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Multiple issues
« Reply #5 on: August 23, 2016, 11:58:08 am »
I experienced exactly the same behavior to kristofferis's point #1. Connecting to devices in mc-Studio is very difficult and rarely successful. Waiting more than 4 minutes, power cycling, disconnecting the mc-Gateway and reconnecting, and opening/closing mc-Studio all do not work except for 1 lucky case.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: Multiple issues
« Reply #6 on: August 23, 2016, 09:25:54 pm »
I am very sorry that you experiencing a less than ideal connection experience. We have seen these issues and the silence from us about this issue over the last couple of days has been because we are busy plugging the holes. We have identified a few major issues and have fixed them. A few more issues still need to be addressed. You will see new firmware in the next few days to improve these problem. As always, thank you for your patience, we are doing our best to solve this issues as we find them.

And yes, in future you will have easier ways of upgrading device firmware but for now, if you can connect to the device then the undo-like (Curled Arrow) button to the left of the "Debug" vs. "Release" drop down will restart the device at which point the mcOTA can upgrade it.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #7 on: August 24, 2016, 12:12:01 am »
That sounds good  :)

Ahh thats a nice workaround, thanks.

millennial

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Multiple issues
« Reply #8 on: August 24, 2016, 08:40:22 am »
Very interesting. The insider-like knowledge is nice :)

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #9 on: August 24, 2016, 01:28:54 pm »
I have now updated my mcGateways and that update went well, no problem during update.

I started mcStudio and started to connect to mcModules to restart them so that I could upgrade firmware on the mcModules. It worked just perfect connecting to two mcModules and everything worked as it should during the firmware update. But on my third device I could not connect to it, I tried many times and also other mcModules but I was not able to connect. I also tried to go back and connect to a mcModule that I had updated but that was not possible.

I restarted the mcGateway and now i could connect to mcModules again. After two successful connection then I had several attempts that failed I did try a couple of times more and then i could connect again.

I have now managed to update all my mcModules, but still no update over MQTT from my devices in my refrigerator and freezer that we all now have been in there for a while and we know that it should work.

I also noticed that a device that had older firmware, when updated it cant reach the mcGateway anymore from the exact same place, so it seems that some modification was made on the Lplan connection? I think it was the .365 update I noticed a drop on other device in Rssi when updated last time.

I will try to upload new code to the devices because a reboot does not fix the MQTT issue, I will let you know how that goes.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #10 on: August 24, 2016, 04:07:10 pm »
Okey, now I have made some more tests.

I connected and uploaded the same code again on two modules.

Module 1: Everything seems to work fine, the module is sending MQTT every 5 minute as it should
Module 2: After i uploaded the code the module did send update to MQTT once, and never again.

Beacons is still working on both devices.

My plan was to connect again to Module 2 and send the code again but now i cant connect to any device again.
If it does not work tomorrow then i will reboot the mcGateway again and see if that fixes the connection error.

The latest firmware update seems to fix some of the connection issues but there is still much work to do with this issue.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #11 on: August 28, 2016, 10:11:12 am »
I have now managed to get all my mcModules to send MQTT except for one mcModules that no longer could reach the mcGateway.

I had to upload the code again to all mcModules and now it seems to work.

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: Multiple issues
« Reply #12 on: August 29, 2016, 11:02:48 pm »
You are right, we have been working hard at this. Our focus last week or so has been on stability improvements. You should see a whole new set of releases soon here to further improve the stability of the system.

kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: Multiple issues
« Reply #13 on: August 29, 2016, 11:41:13 pm »
That sounds great  :)

For information, the mcModules is still sending MQTT so it seems stable right now and the issues starts when upgrading firmware or connecting to devices. When they work and left alone it's stable, and that is good.
« Last Edit: August 29, 2016, 11:58:45 pm by kristofferis »

mc-Abe

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • mc-Things
Re: Multiple issues
« Reply #14 on: August 30, 2016, 11:44:01 pm »
As we make improvements, sometimes we have to break backwards compatibility. When we hit a stable platform we will support backwards compatibility but for now, every once in a while the loaded scripts become invalid. I will make sure to point this out in release notes and announcements next time it happens. This is probably the reason behind having to reload the script to make your devices work.