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 - kristofferis

Pages: 1 ... 17 18 [19] 20
271
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 02:02:33 pm »
Ahh okey. Then we could continue this if the error still exists when right firmware is in the right place  :)

272
mc-Gateway / [SOLVED] Connection lost to MQTT
« on: June 07, 2016, 01:44:23 pm »
Hello.
This seems to be a bug in the mcGateways firmware, I could not test this on the latest firmware 355 because i can't get MQTT working so this user case I based on 354, maybe someone could verify if problem still exists on 355.

Configure a MQTT broker and port in the configuration for the mcGateway.
Restart mcGateway.
When the gateway is up and running shutdown your MQTT broker (to simulate a network issue) now the mcGateway is stuck and has to be rebooted to start working again.
When it is stucked then you can't see it in mcStudio.

Just a thought, what happens if you enters a incorrect MQTT server and reboot? Will it stuck and you can't connect and change the setting. I will not test that  :)

273
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:28:47 pm »
But how would the world look like if everything and everyone was sane  ;)

I would just try to reflash and when it is done flashing then I would pull the plug and wait a couple of seconds before I would fire it up again.


274
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:19:19 pm »
Ahh good, you answered before my question :)

Do you have a "simple" LAN if you know what I mean?

275
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:16:54 pm »
The file name you mentioned is for the Host Processor on the mcGateway and is flashed  with mcDongle. Have you also downloaded the file for the Application Processor V0.6-355? That has to be flashed with a USB memory stick.

276
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 01:09:04 pm »
Could you please provide som information about your gateway. Have you updated it to the latest firmware? How is the LEDs on the mcGateway? Power and Conn is Red and Status in blinking green?
Just to verify so that you don't have a connection issue there.

277
New Version Releases / Re: NEW mc-Studio version available! V0.7-891
« on: June 07, 2016, 12:57:12 pm »
Great, now you know that you have the latest and greatest :)

278
mc-Gateway / Re: Re-Post "Connecting the Gateway doesn't work"
« on: June 07, 2016, 12:53:13 pm »
Answer from mcJohn about the connection:

The gateway broadcast a UDP packet to indicate that there is a gateway. This contains its IP address and version information.
mc-Studio receives this UDP message and makes it available in the gateway/device form.
If the user want to connect to the gateway mcStudio will UPD its own IP address to the gateway and the gateway makes a tcp/ip connection to mc-Studio.

279
New Version Releases / Re: NEW mc-Studio version available! V0.7-891
« on: June 07, 2016, 12:41:12 pm »
Please look in the "add / remove program" I think the version is right there but the about window in mcStudio is showing the wrong version.

280
MQTT / Re: Re-Post "mcGateway – 0.6-355 broke MQTT"
« on: June 07, 2016, 12:35:42 pm »
Okey, I have now made some tests. Upgraded the mcGateway to 355 and tested against online mosquitto broker (test.mosquitto.org) did not work. I installed latest mosquitto on a Windows server and same issue here. I installed latest emqtt server and it did not work.
Rolled back to 354 and everything started to work again.

So something does not feel ok with version 355.
It seems that the connection not is established to the broker.

281
MQTT / Re: Re-Post "mcGateway – 0.6-355 broke MQTT"
« on: June 07, 2016, 10:08:10 am »
Thanks for information, I will make some more tests and I am also planning to change to a new MQTT broker, now is a good time to test :)

282
mc-Product General / Re: Re-post: Enclosures
« on: June 07, 2016, 04:05:25 am »
I have now made the Source and the STL files available.
You will find it on Google Drive
mcModule enclosure

Please let us work together on this, any ideas or comment just post and we will see what we could do about it.

This is Mark I of the enclosure, a very simple layout just to protect it from damage.

283
Hello.
If you download mcStudio V0.7-891+ then it is possible to use the temperatur sensor.
I cant get MQTT running with version V0.6-355 of the mcRouter so right now i recommend using V0.6-354.

1: Start mcStudio and click Tools / Devices, Connect to your gateway and then click Gateway Config. Enter your MQTT broker IP address and port and save the config.
2: Connect to one of your mcModules.
3: create a new project and a simple code like this will do a reading from the temperatur sensor and then publish the result to your MQTT broker with topic mcThings/Temperature/BasementA and the temperatur as the payload.

Code: [Select]
Class MQTTTest
    Shared Event sendMQTT() RaiseEvent Every 1 Minutes
        LedRed = True
       
        Dim payload As ListOfByte = New ListOfByte()
        Dim TempC As Float = TempSensor.GetTemp
        Dim TempString As String = TempC.ToString()
       
        payload.Add(TempString)
       
        Lplan.Publish("mcThings/Temperature/BasementA", payload)
       
        LedRed = False
    End Event
End Class

4: click File / Add Library Code and select Temp Sensor.
5: Save / Build / Run the application and your mcModule will start sending MQTT messages with the temperatur to the broker.
6: when you are happy with the function click Save / build/ Load the program in the device, to save the code so that it will continue to run when you stop the debugging

mcThings have published information videos on some of the parts mentioned above, please take a look at it and i think things fill fall into place for you.
https://www.youtube.com/channel/UC3vwTRcjtJ9Y8_h5M3-oRtw/videos

And if you have any questions, just let us know.


284
mc-Module / Re: Re-Post "TempSensor mcModule"
« on: June 07, 2016, 01:59:48 am »
From old forum:

I have now tried the code for Temperatur with the updated software:
mcStudio – 0.7-890
mcGateway – 0.6-355
mcModule – 0.7-356
But mcStudio gives me Running failed every time I try to debug the code

robvdv
I am having the same issue. McStudio gives “running failed” in debug mode for the example Temperature program. With setting several breakpoints I discovered that the program fails when the tempsensor function ends at the return line. McStudio than completely hangs. Debugging can't be stopped or aborted. The only way to stop is to close McStudio. Software used is the same as above.

kristofferis
Thanks for reporting in, always good to know that more have the same issue so that's a general issue and not user based.

mc-abe
We have tracked this issue to a bug in mcStudio code generation. It has been resolved and there is a new mcStudio version available. V0.7-891 has resolved this issue.

kristofferis
Perfect, thanks.

285
MQTT / Re: Re-Post "mcGateway – 0.6-355 broke MQTT"
« on: June 07, 2016, 01:53:37 am »
From old forum:

mc-abeAdmin
We enabled use of the DNS server in the configuration of the gateway in version 0.6-355. Do you have a DNS server in there that cannot resolve your MQTT broker name? I explicitly tested the MQTT functionality before releasing version 0.6-355. I will do a test again and see if I have different results.Like

kristofferis
Iam using IP address so there is no issue with DNS, I noticed in the release notes that in 0.6-355 you enabled support for ip address, but that was working in 0.6-354.

Pages: 1 ... 17 18 [19] 20