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 - mc-John

Pages: [1] 2 3 ... 15
mc-Studio / Re: Unable to Configure MQTT on McStudio
« on: January 15, 2018, 10:33:44 am »
Can you go back to the previous version and see if that helps?

mc-Studio / Re: Unable to Configure MQTT on McStudio
« on: January 12, 2018, 02:37:15 pm »
But it looks like you changed some variables in the gateway. You have to use port 1883 because the gateway does not support SSL

Our new cloud product does not have this problem. It let you connect seamlessly to IoT-Hub.

When you set a breakpoint at the line "Terminal.UartReceive()" does it get there?

You have define is as an event and not as an Sub

Shared Event Uart0Receive

End Event

mc-Studio / Re: Where are the McStudio Logs
« on: November 30, 2017, 01:03:21 pm »
Try to kill mcStudio in task manager and delete the file "Documents\mcThings\mcStudio\Settings.xml" in the Documents directory

MQTT / Re: Cayenne My Devices
« on: November 30, 2017, 10:05:19 am »
Can you show your gateway set?

mc-Gateway / Re: beacondata API
« on: November 07, 2017, 10:24:48 am »
The beacon format is in part of the mcStudio download.
Yes beacons are extremely low power. Sending a temprature every minute get you 6 year battery life on a coin-cell.
The download contains the file BeaconWhitePaper.pdf. Beacons are send over UDP or can be sent also to MQTT. There is a .Net example in the doc, which is simple to convert to python.

We will change the web-site to make it easier to find.


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.

MQTT / Re: Sending Beacon Data Over MQTT
« on: October 18, 2017, 09:49:03 am »
Did you create an MQTT class yourself?

MQTT / Re: Sending Beacon Data Over MQTT
« on: October 17, 2017, 02:56:22 pm »
I don't know what you mean with MQTT.BeaconPublish.

In the class LpLan there is SendBeacon(), SetBeacon(time, data), SetBeaconTime(time), SetBeaconData(data)

There is no MQTT class!!!

MQTT / Re: Sending Beacon Data Over MQTT
« on: October 16, 2017, 04:36:37 pm »
Yes and every 10 seconds

MQTT / Re: Sending Beacon Data Over MQTT
« on: October 16, 2017, 10:07:19 am »
sending a regular beacon and sending a beacon over MQTT

Beacons are always send, with or without data in it. You can set the frequency yourself, see user manual. I think that the default is 10-sec.
If a gateway receives a beacon and has valid MQTT broker and the box "Send Beacons" is on it will send the beacons to the MQTT broker.

MQTT / Re: Sending Beacon Data Over MQTT
« on: October 16, 2017, 09:59:58 am »
There is a large difference in power consumption between sending a beacon or sending to the MQTT server. It is probably 20-times lower power. To lower the power you should limit the connection time to 5 minutes. There are beacon commands to fill the 8 bytes beacon message. See the user manual for the commands, just search beacon in the pdf. Also read the white paper about beaconing which describes the format.

We have it solved it but I don't know when it will be released.

I have to look into this. mcStudio uses command line command to set this. I let you know what the result is.

Pages: [1] 2 3 ... 15