Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bdevlin

Pages: 1 [2] 3
16
I am connecting about 1 in 50 times... Not good. The error is actually not thrown as often as a simple inability to connect to the devices. There is a lot of difficulty connecting compared to the prior firmwares. Even when an mc-110mod is right next to the gateway (both ethernet wired and wireless).

Also my scripts no longer work and I have not changed anything. Did you deprecate IFTTT? Messages were relaying through my IFTTT applet fine right up until my firmware upgrades. I have re uploaded the script, but now my applet quit working? I have not had a chance to rebuild for MQTT yet.

mc-Studio still crashes like crazy, even for simple things like copy paste or even typing in a single character of code.
----------------------------------------------------------------
Class Devlin_Temp
    Shared Event CheckTemp() RaiseEvent Every 3 Minutes
     
        Dim temp As Float = TempSensor.GetTemp()
        Dim tempstring As String = temp.ToString()

        Dim ID As String
        ID = Device.mcUID().ToString("x8")
       
        Lplan.IFTTT("{key}", "Devlin_Temperature", tempstring, "", ID)
     
    End Event
   
    Shared Event measureVoltage() RaiseEvent Every 2 Hours
       
        Dim BattVolt As Short = Device.BatteryVoltage
        Dim Volts As String = BattVolt.ToString()
        Dim mcID As Float = Device.mcUID
        Dim ID As String = mcID.ToString("x8")
        If BattVolt < 2200 Then
            Lplan.IFTTT("{key}", "Devlin_Temp_Battery", Volts, "", ID)
        Else
           
        End If
       
    End Event
   
End Class
-------------------------------------------------------------------------

17
mc-Studio is 9.534
gateway firmware and software are 9.615
all mc-mod110 are 9.615 firmware
mc-OTA is 1.2.13

Everything seems up to date, but I get this error.

Connected over and over and the gateway loses connection as soon as the error comes up.

Rebooted as well and re-launched studio.


18
Finally upgraded everything to 9.615.

Trying to connect to my devices (MC-110s in this case) responds with "gateway did not react on connect request". Then disconnects the gateway.

Devices on latest firmware. Gateway on app and firmware 9.615

Basically, I can't even upload new code to my devices now.

Please advise.

19
mc-Things General Discussion / Re: TimeStamps
« on: April 20, 2017, 03:37:21 pm »
That's what I need thanks. There is also a comprehensive parsing example in the MQTT section from another member I may need to borrow script from.

20
mc-Things General Discussion / Re: TimeStamps
« on: April 15, 2017, 05:43:36 pm »
Well, basically, what is the time stamp variable for my  script when it transmits data from the module. I'm not aware I can add code that executes from the gateway to fetch that timestamp, in my mobile script. If I need to get the transmission datetime  from a receiver,  rather that a module, that's fine. I just don't see if it's possible or not.

21
mc-Studio / Re: Device.Uid
« on: April 12, 2017, 02:03:10 pm »
Aha! I was missing the brackets after mcUid... did I mention I am an awful coder?

Thank you!

22
mc-Things General Discussion / Re: Repeater Product
« on: April 12, 2017, 01:38:27 pm »
Thank you for the suggestion. We are currently developing a gateway with a larger range. It has an PA/LNA and multiple antenna's. It still can connect over WiFi and wired Ethernet and has better security features. The price of the device will be similar as the current gateway.

-John-

I can't wait. My property is just under a half acre, and I can't get 100% coverage right now.

23
mc-Things General Discussion / TimeStamps
« on: April 12, 2017, 01:37:07 pm »
Does anyone have a GetTime() functions of sorts. Perhaps we can use the various cloud time servers. I don't know how to do it though. I know I can just stamp the data as it streams into my MQTT server, but I am just toying with a few options.

Thanks,
Brad

24
mc-Studio / Re: Device.Uid
« on: April 11, 2017, 08:05:30 pm »
It finally works. Also I had to use ("x8") not ("X8") when it finally worked.

Also I was initializing as a float, but the docs say it's an INT. Shouldn't make a difference but I changed it anyway. All good now:

        Dim mcID As Integer = Device.mcUID
        Dim ID As String = mcID.ToString("x8")
       
        Lplan.IFTTT("xxxxxxxxxxxxxxxxxxxxx", "Devlin_Temperature", tempstring, "", ID)

25
mc-Things General Discussion / Re: Access old firmwares
« on: April 06, 2017, 05:40:01 pm »
I realized the file path issues are a major hiccup and cause of crashes. I eagerly anticipate the next release.

Reprogramming get's data flowing again. All the other units were on mc110 fw 372 when they were working, but changes to the gateway may explain the problem. I have pulled all the units and re-flashing the updates and working on some new generic code for the modules, rather than manage the same code for each module independently. I bulk device push feature would be cool.

It looks like we're fixed for now.

26
mc-Studio / Re: Device.Uid
« on: April 06, 2017, 04:57:49 pm »
Thanks, but that returns "1199588480"

27
mc-Studio / Re: Device.Uid
« on: April 05, 2017, 07:08:36 pm »
How do I convert the Device.mcUid to a proper string... I am getting 65673, but my device id is 00010089. Don't worry, I'm moving to MQTT soon ... I just need to set up the Mosquitto.

Dim ID As Float = Device.mcUID
                       
        Lplan.IFTTT(------------------------", "Devlin_Temperature", tempstring, ID.ToString)

28
mc-Studio / Re: Device.Uid
« on: April 05, 2017, 06:30:24 pm »
AGHHHH!

Found it... It's "Device.mcUID" for anyone else looking.

29
mc-Studio / Device.Uid
« on: April 05, 2017, 06:26:19 pm »
Device.Uid does not seem to be available in the IDE. I want to create a generic script for a standard task across 5 units and update code in one place. With the Uid , I can simply cross join a lookup table for data visualization. Uid is not available though.

16.34. Device Structure Inherits Object
Shared Function BatteryVoltage() As Short
Shared Function GarbageCollection() As Integer
Shared Function MemoryAvailable() As Integer
Shared Sub OpampEnable(enable As Boolean)
Shared Function TempDie() As Float
Shared Sub TempSensorEnable(enable As Boolean)
Shared Function Uid() As Integer
Shared Function Uptime() As Integer
Shared Function GetTimeSpan() As Integer

30
mc-Things General Discussion / Re: Access old firmwares
« on: April 04, 2017, 11:27:10 pm »
OK, already on 421 host gateway but was on 363 fw, upgraded to 367 from the updated site. The new MC-Studio can now see my (in range) modules when connecting to gateway. My modules are still not relaying my data through the gateway though. I did update two modules to the latest FW as per the update. Do I need to redo the OTA code to the modules? This wouldn't make sense, as my existing old FW modules 'were' working fine, but if that's the case, let me know.

One more thing... MC-Studio constantly crashes on me. Any tips? It is extremely unstable on my Windows 7 laptop. It's corporate issued, so is virus checked and all that. I am also local admin on my computer.

Thank,
Brad

Pages: 1 [2] 3