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 4 ... 15
16
During installation of mcStudio the firewall opens port 25452 both incoming and outgoing UPD/TCP traffic.
The gateways advertise over UDP that they exist and what the IP address is. mcStudio listens and find the gateways that way.

For what ever reason the installation did not open the firewall correctly. Is there anything special in your network?


17
You can switch over to manual compiling. It is in project properties

18
mc-Studio / Re: mcStudio Error after Microsoft forced updates.
« on: July 20, 2017, 12:10:03 pm »
I don't know what this is but I think that it is related to the FTDI driver. Which version of windows are you using and is it a physical machine or a virtual machine.

Could you rename your settings file in ..\Documents\mcThings\mcStudio\Settings.xml to SettingsSave.xml. Start mcStudio again and see if that works. If this does not work you  should try to connect the dongle to your computer and do not remove it for at least a minute. If there is a driver problem the system will update the driver

-John-

19
mc-Studio / Re: Timestamps
« on: July 18, 2017, 09:56:46 am »
That's correct

20
mc-Studio / Re: Timestamps
« on: July 17, 2017, 09:21:06 am »
That will work. To limit power consumption you could sleep for 100mSec in the while loop.

21
mc-Studio / Re: Timestamps
« on: July 10, 2017, 11:17:11 am »
The code to get date/time info looks like this:

Code: [Select]
        Dim dat As DateTime = DateTime.Now
        Dim hr As Integer = dat.Hour
        Dim sec As Integer = dat.Second
        Dim month As Integer = dat.Month

22
mc-Studio / Re: Variables for shared event timing
« on: July 10, 2017, 09:26:17 am »
Values in raise event need to be literals.

So  "Shared Event json_payload_mqtt() RaiseEvent Every 5 Minutes" would work.


23
MQTT / Re: Setting up MQTT on pi and gateway
« on: June 30, 2017, 10:00:01 am »
I don't know anybody that uses a middle man on a pi.

Maybe you should look into moving your data to CloudMQTT (powered by AWS) and move it from there.


24
mc-Demo205 / Re: Unable to Connect to the mc-Demo205
« on: June 09, 2017, 04:54:01 pm »
I work every day with the USB connection and had some problems with it when the PC goes to sleep. You have to reset the device and re-run mcStudio.
If you find that it does not work for a day or so try if rebooting your PC would help. It could be that the USB driver in the PC fails.
You can have multiple raise events in one script. The CPU can hangs for a few minutes but will reset if that occurs.
You can not use a serial peripheral in combination with USB connectivity.


25
mc-Studio / Re: Does mc-Studio Support Trig Functions?
« on: June 01, 2017, 06:18:18 pm »
All trig functions are defined as function on the float datatype. So if you have a value in variable calc you can get the Sin by the following statement:

dim mySin as float = calc.Sin()

When you type calc. followed by keys <ctrl><space> you get all  functions that you can use on a float including the trig functions

26
mc-Gateway / Re: Using WPS to re-connect Mc-GW to new Wi-Fi router
« on: May 01, 2017, 12:51:22 pm »
Yes just follow the same process when you connected it the first time.

27
Sending over mcAir (range 200m) is very low power so don't worry much about making the message as small as possible. Sending 3 messages is more expensive then 1 bigger message so combine messages if possible to one but don't go over 100 bytes.
Sending over Sigfox (range 30miles) is very expensive so pack your info as much as possible.

Packing can be done with the ListOfByte object and understanding your data.
For example a temperature can be packed in a byte. Give it an offset of 100F so 100=0F, 220=120F and 60 = -40F.

See example in attachment, where the one byte temperature and a 2 byte (Short) voltage is packed in a 3 byte message

28
mc-Things General Discussion / Re: TimeStamps
« on: April 18, 2017, 10:22:37 am »
You can get the time from the module "DataTime.Now()", which is updated by the gateway daily, and add that to your message. Would that work?

29
mc-Things General Discussion / Re: TimeStamps
« on: April 15, 2017, 05:27:47 pm »
I don't understand what you are asking but the gateways get their time from the specified SNTP server and the devices get their time from the gateway every 24 hour.

30
mc-Things General Discussion / Re: Repeater Product
« on: April 15, 2017, 05:23:15 pm »
All firmware is finished and tested and we are going to produce them the coming weeks.

Pages: 1 [2] 3 4 ... 15