Recent Posts

Pages: 1 ... 8 9 [10]
91
The problem is the SetMidPowerMode(1). 1 milisecond is to fast and something must overflow. The minimum value is 20 milliseconds but that takes a big load. Make it 250 or just remove the statement. Beaconing every 2 seconds is fast but should work.

92
mc-Module / Re: Unable to connect to module
« Last post by rudydevolder on October 30, 2017, 12:47:06 am »
I have the same problem every time I upload a certain script which seems to hang. When I connect through the McOtaUpdater tool and I erase the script, I can connect again and upload a script that works until I upload a script that hangs I need to erase the script again.
PS. Don't forget to unpower before and after the update.
Hope this helps.  ;)
93
mc-Module / Re: Unable to connect to module
« Last post by mcf on October 29, 2017, 05:46:16 pm »
I can see the beacons, just can't connect.
Have tried two of them now.
94
mc-Module / Re: Unable to connect to module
« Last post by mcf on October 29, 2017, 05:39:25 pm »
I have this problem also. Even waiting 10 minutes.
I can connect to110's
95
After just adding a file to my project, and only calling the constructor my MC-120 module hangs, I can't connect any more and I must first connect via MC-OTA-updater to erase the script.

So the only instructions executed in my Class are:

   
Class WaterTank
    Shared Address As Byte
    Shared Sensor As I2c

    Public Sub New(_address As Byte)
        Address = _address
        Sensor = I2c.Create(400000, Pin.SCL, Pin.SDA, Address)
    End Sub
    .......
End Class


And in my main program:

    Shared UartTerm As UART_Debug
    Shared WaterTank1 As WaterTank
   
    Shared Event Boot()
        Lplan.SetMidPowerMode(1)
        Lplan.SetBeaconTime(2)
        UartTerm = New UART_Debug()
        WaterTank1 = New WaterTank(0x10)
    End Event


I'm thinking maybe a memory leak in I2C  ???
96
mc-Gateway / Re: Gateway connected but the mc205 isn't
« Last post by mc-T2 on October 25, 2017, 04:04:49 pm »
Ok yes, you are working with an older version of mcOS (firmware) that could be causing this issue.

Please update the device to the newest version using your mcDongle and mcOTA. You can check out this video that gives you an idea of the process.

The video is a little older and we use the mcMod120 as the example but the process is the same. You need to download the newest firmware file from our website (https://www.mcthings.com/products/mcdemo205/) and then download mcOTA (https://www.mcthings.com/products/mcota/) . You will then connect to the device using the mcDongle and mcOTA which then allows you to update the firmware using the newest version you just downloaded.

https://youtu.be/WO3Nf3Un1gI

*Keep in mind, when you press 'search' in mcOTA, you then need to power the device to make it 'discoverable' to the mcDongle. You can either plug the 205 into USB or put the jumper on the battery pins to power the device

After you update the device, try to connect to the device through the gateway and let us know how it goes
Thanks
97
mc-Gateway / Re: Gateway connected but the mc205 isn't
« Last post by geeklv on October 25, 2017, 01:41:41 pm »

I think you are right. The device isn't updated?
Seems like the version on my device is 0.7-366
Please refer t the attached screenshot

Let me know.
Thanks.
98
mc-Gateway / Re: Gateway connected but the mc205 isn't
« Last post by mc-T2 on October 25, 2017, 09:44:16 am »
Can you tell us what version of firmware is on the mcDemo205?

You can tell when you go to the device menu and have the option to connect to the mcDemo205 device. Take a screenshot of the device menu with the mcDemo205 device - We'd like to see the version of firmware that is on the device.

If it is not at the latest version (mcOS v0.9.615), you will need to update the device using your mcDongle and the mcOTA application.
99
mc-Gateway / Re: Gateway connected but the mc205 isn't
« Last post by geeklv on October 25, 2017, 09:15:44 am »
Hello,
I was able to see and connect to the gateway to the mc studio.
The problem was when I try to connect the mc Demo 205. I can only press the " connect device" and it goes on without connecting. I've read that 60 seconds is a safe wait time but I did wait a lot longer but the gateway doesn't connect
100
MQTT / Re: Sending Beacon Data Over MQTT
« Last post by bdevlin on October 23, 2017, 08:31:34 pm »
Here's a snippet of code that works. I use it for versioning the MC-110/120 modules. This way I can see in the ide which ones have the latest code.

Class mqtt_json
    Shared version As Float
    Shared Event Boot()
        '############ This is your mcMod software version. You can see the version in the first byte of beacon data in Device maintenence and Connections under the ->Tools->Devices menu.
        version = 2
        '############ Add the version to the first byte of beacon data.
        Dim beacondata As ListOfByte = New ListOfByte()
        beacondata.Add(version.ToByte)
        Lplan.SetBeaconData(beacondata)
       
       
        '### Write out boot acknowledgement for debugging. Not required for the beacon, but picked up in an MQTT subscription
        Dim id As String = Device.mcUID().ToString("x8")
        Lplan.Publish("mqtt/boot", ("{Boot:" + id + ",Version:" + version.ToString+ "}").ToListOfByte, QoS.AtLeastOnce)       
    End Event

Pages: 1 ... 8 9 [10]