Author Topic: McModule not connecting to McStudio  (Read 307 times)

gaston

  • Newbie
  • *
  • Posts: 26
    • View Profile
McModule not connecting to McStudio
« on: June 26, 2016, 08:32:20 am »
I updated my Gateway to latest version: 6-357.
Remove the battery from my McModule (no other McModule being powered). Then I started McStudio and open up both screen Beacon and Maintenance.
I put the battery in me McModule then after a couple of second the device showed up on both screen. The device started beaconing ( the beacon TimeStamp being updated on both screen.
I try to connect to this device; it has been connecting for over 400 seconds without succes.
I aborted the connecting and try to connect to the same device.
After more that 5 minutes, I am giving up.

What am I doing wrong? What is the magic formula to get consistency and the same result everytime if use McStudio?
Is there somebody else having similar problem to connect to one ot their device?

The Red LED on my device is on. This is a bit strange because the last program that I loaded was only dealing with the Green LED.

Share on Facebook Share on Twitter


plains203

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: McModule not connecting to McStudio
« Reply #1 on: June 26, 2016, 08:50:37 am »
What firmware is on your mcModule and how come not the latest on the gateway? Occasionally I get beacons but no connect and it generally requires me to exit mcStudio and then reconnect to the gateway and then the mcThing. Once you have programmed an mcModule I have food I need to disconnect the gateway in the devices area and reconnect to it then connect the new module or the previous one etc. I couldn't get the old firmware modules to connect to the gateway ever.
McGateway 0.6-360, 0.7-405
McModules 0.7-358
McStudio 0.7-894

gaston

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: McModule not connecting to McStudio
« Reply #2 on: June 26, 2016, 09:55:05 am »
Thank you plains203 for your quick reply and your help this is appreciate.
Version: all the same than you except for  6-357. I do not understand, because I removed the existing file form my download directory then download the latest version, then put it in a USB card (Lexor) then updated the McGateway as per the documentation. Result same version!!!!!! I will try again later.

I can see, from the description of the steps you do to generaly disconnect, sometime restart McStudio etc... that there no magic receipe to get consistent result. Could anyone from McThing team explainand document exactly each steps to get always consistent result. Why does some time the device connect almost instally and sometime after a long wait (up to 2 minutest) and some time never get a connection.

plains203

  • Newbie
  • *
  • Posts: 48
    • View Profile
Re: McModule not connecting to McStudio
« Reply #3 on: June 26, 2016, 10:49:02 am »
You have to wait for their wake up sequence or something which by default happens every 60 seconds. I am my sure if the power settings change that but I think you were experimenting with those from memory so that could have something to do with it?
McGateway 0.6-360, 0.7-405
McModules 0.7-358
McStudio 0.7-894

mc-T2

  • Administrator
  • Sr. Member
  • *****
  • Posts: 252
  • mc-Things! The opportunities are endless!
  • Location: Canada
    • View Profile
Re: McModule not connecting to McStudio
« Reply #4 on: June 27, 2016, 03:19:45 pm »
@gaston - I think one of the issues may live in the old gateway version. Please download the new version 06.-358 from the website and update your gateway via USB.
Note - you do need to ensure that the USB does not still have an old version still on the drive or the gateway may update itself with that file. Also, you must make sure the file is named ' mcGw110.bin '. If the file name is in anyway different, the mc-Gateway will not recognize and it will not update.

@plains203 - you are correct, the mc-Modules will send out a connection interval every 60 seconds. However, if the module is disconnected improperly, the module may not respond for 3-11 minutes (Depending on the scenario) as it still believes that it is connected to a gateway.
To properly disconnect your mc-Module (I will post this in the module topic as well) either:
1) Load the program that you are working on into the module and mc-Studio will disconnect from the module properly
2) Connect to a virtual gateway and virtual module and the connection to the physical should be disconnected properly

Another trick is to power cycle the module just before connecting to it in mc-Studio. The module will send out a connection interval within 10 seconds of being power cycled.
Need more mc-Modules, mc-Gateways or other mc-Things? Check out our product page: www.mcthings.com/products. mc-Development kits are available too!
Check out a live Dashboard using mcThings and Losant! Click here: https://goo.gl/ST43hB
Like Like x 1 View List

gaston

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: McModule not connecting to McStudio
« Reply #5 on: June 27, 2016, 04:29:39 pm »
I was experiencing this problem with software version 06-357. Since I updated to 06-358 and I am having the same problem. note that Not all USB stick work with McGateway. Initially, I loaded the downloaded file into a first stick that McGateway did not read. I could not know because the gateway does not give confirmation or error for reading and loading the file. I repeated the same process with another USB stick; works perfectly. I confirmed the process by checking on the Maintenance and Connection screen.
I appreciate your explanations about the module being disconnected improperly.
A few time, McStudio was unable to load the program into the device, it give me an error unable to load the program, would this qualify as a disconnect improperly?

Also could you fix a bug. When a program is loaded into a device, the main screen says that the device has been disconnected, however the device is still listed as connected in the Maintenance an c
connection screen.


kristofferis

  • Sr. Member
  • ****
  • Posts: 287
  • Location: Sweden
    • View Profile
Re: McModule not connecting to McStudio
« Reply #6 on: June 28, 2016, 12:08:23 am »
The green LED on mcGateway is indicating if the mcGateway is updating from USB or not.
After the 3 blinks that indicates that you have held the button pressed then the green LED will stay on during flash (3-5 seconds) if the mcGateway can not read the USB the LED will direct start to blink like after normal boot.

So you could use the LED to verify the update.