I am on the latest beta firmware and was wondering if they ever got networking on the device I flashed the networking firmware and still with the ping code I get this…
An unhandled exception of type ‘System.Net.Sockets.SocketException’ occurred in Microsoft.SPOT.Net.dll
Tried TCP with same error… wondering now if the plug in is correct for the enc28 i have it in socket 1 on the Bee and to my router with a static ip with this code
Yes, unfortunately it was socket 6 on Cerberus that matched Cerbuino’s SPI socket 1 and to an extent be compatable with Cerb40. It will be fixed to conform to the whole family.
so what another week?? Last week I kinda gave up and ordered a spider kit… I’m betting it will be here before I get this board fully working like I want, and all I have left is the networking for this project …
Actually, how would right now sound? Can you accept zip files in your email account? I can send you a copy of the firmware for you to test in your Cerbuino.
What email should I send it to? Your forum email is an account that will not accept zip files. If you want me to email it to this email then I will change the extension so the email server will not reject the file.
pepperlk@ gmail.com or lp@ pitchengine.com if it wont accept zip feel free to change it i can adjust on my side also drop box on the pepperlk@ gmail.com…
here is all of the code… I must be missing something also i have the new firmware… and the network is showing activity…
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Microsoft.SPOT.Net.NetworkInformation;
namespace GadgeteerApp1
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
/*******************************************************************************************
Modules added in the Program.gadgeteer designer view are used by typing
their name followed by a period, e.g. button. or camera.
Many modules generate useful events. Type +=<tab><tab> to add a handler to an event, e.g.:
button.ButtonPressed +=<tab><tab>
If you want to do something periodically, use a GT.Timer and handle its Tick event, e.g.:
GT.Timer timer = new GT.Timer(1000); // every second (1000ms)
timer.Tick +=<tab><tab>
timer.Start();
*******************************************************************************************/
// Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
new Thread(delegate()
{
var iface = NetworkInterface.GetAllNetworkInterfaces()[0];
iface.PhysicalAddress = new byte[] { 0x00, 0x19, 0x5B, 0x04, 0x36, 0x20 };
//iface.EnableDhcp();
//iface.EnableDynamicDns();
//iface.RenewDhcpLease();
iface.EnableStaticIP("192.168.1.115", "255.255.255.0", "192.168.1.99");
iface.EnableStaticDns(new string[] { "206.54.112.1" });
//Thread.Sleep(2000);
Debug.Print(iface.IPAddress);
int i = 0;
}).Start();
Debug.Print("Program Started");
}
}
}