@ munderhill - Hi Mike, I’ve worked a bit with new SDK and seems quite reliable. Some bugs are fixed! Nice job!
At what speed is serial sending data to the Bluegiga module ?
The serial connection is 115k, but I did not see any improvement in throughput with increased baud rate. Error rate goes up (not significantly) with hight baud rates.
@ munderhill - Hi Mike,
I still face a Bluegiga module shutdown after 1h (more or less) of response. All the blue leds go off and I need a FEZ board reset to restart the module.
Have you looked if this is some powersaving behaviour ? I checked on two different Wifi AP and the problem shows on both.
@ munderhill - Thanks Mike.
Ok I will send you the code tomorrow, but every simple code is enough for exploiting this problem, just connect() to wifi and start WebServer. I’ve now a page refreshing every 10sec and the problem still shows.
This happen to me on a Cerberus board. I will check tomorrow on a Spider. I’ve two bluegiga modules so I will check the other one too.
@ Mike: Some good news, got the gadgeteer wifi module running in plain NetMf using a CerbuinoBee and all in VS2015 8)
The code:
using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using IotLabs.Hardware.Bluegiga;
using IotLabs.Net;
namespace conWifi
{
public class Program
{
public enum TimeZones : int { CentralEuropeanTime = 1 };
public const Cpu.Pin resetPin = Cpu.Pin.GPIO_NONE;
private static NativeWifi plainWifi;
public static void Main()
{
plainWifi = new NativeWifi("COM2", (Cpu.Pin)6);
plainWifi.Connected += new EventHandler(OnConnected);
plainWifi.Connect("SSID", "THE KEY");
Debug.Print(Resources.GetString(Resources.StringResources.String1));
// wait forever
while (true) { Thread.Sleep(1000); }
}
private static void OnConnected(object sender, EventArgs e)
{
Debug.Print("IP: " + plainWifi.IpAddress.ToString());
DoYourThing();
}
private static void DoYourThing()
{
// For a start, get the time
GetTimeFromSntpServer();
}
private static void GetTimeFromSntpServer()
{
var sntpClient = new SntpClient(plainWifi, "time-a.nist.gov", 123);
sntpClient.ResponseReady += new EventHandler(OnSntpResponseReady);
sntpClient.Get();
}
private static void OnSntpResponseReady(object sender, EventArgs e)
{
var client = sender as SntpClient;
// Adjust to local time zone
DateTime dt = client.UtcDateTime;
dt = dt.AddHours((double)TimeZones.CentralEuropeanTime);
Debug.Print("It should be about: " + dt.ToString());
}
}
}
And outcome (not related to some secret training program):
Ha, it worked on Cerberus as well, basic wifi stuff and using the Sntp as used before with the CerbuinoBee.
So far so good …
So let’s do some usefull stuff and get in the uCloudy source and go do some azure …
Compile it does, deploy, probably, but before (basic wifi and ntp) I had a blinking LED on the Cerberus now I have the LED permanently off, it should light up as a heartbeat, everytime it goes to the cloud it lights up and goes off when complete with or without an error.
Hitting F5 in VS2015 in gives me the following outcome (now there is some secrecy coming in for me)
@ PiWi - I’ve seen that error before (not in VS2015), can’t remember exactly but it may be a missing assembly. Also if I remember correctly, Azure uses a https connection which is not currently supported by the Bluegiga firmware. They say it will be released by the end of November and it will take me a few weeks after that to update the SDK. I will keep you updated.