OZ8ET's Content - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

OZ8ET's Content

There have been 46 items by OZ8ET (Search limited from 30-March 23)


By content type

See this member's


Sort by                Order  

#51452 Web server problems

Posted by OZ8ET on 15 July 2013 - 01:17 PM in General Discussion

I found his article: http://blogs.msdn.co...work-netmf.aspx

It works quite good.

Erik




#51439 Web server problems

Posted by OZ8ET on 15 July 2013 - 05:04 AM in General Discussion

I have tried this, but I still have problems. It gives me however et better control of what happens.

The Socket.Accept falls over when it has more than 3 outstanding messages. It then fires a socket excepton but it is not caught by the try-catch.

Because of this, the thread never dies and the clean-up wil not remove the thread from the array.

I cannot see how I can stop the socket from accepting messages.

This is odd!




#51434 Web server problems

Posted by OZ8ET on 15 July 2013 - 03:37 AM in General Discussion

Thanks again Anthony.I will study the code and do some experiments.

best regards

Erik




#51417 Web server problems

Posted by OZ8ET on 14 July 2013 - 11:34 AM in General Discussion

Thanks Anthony.

It sounds like a good solution. Could you share some code please?

Erik




#51412 Web server problems

Posted by OZ8ET on 14 July 2013 - 08:29 AM in General Discussion

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Hi[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I am running a web server on NP2 (previously on NP1) and it seems to run ok.[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]The problem is, when I start pushing it - a little too much processing for each received message combined with hysterical pushing the refresh button on the browser (more than 4 times in Debug mode - a little more en Release mode) - it falls over!.[/color][/font]

 

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have tried most of the servers shown in this forum, and they usually works when testing, but when pushing them as above, the same thing happens. [/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have not been successful trying to multitask.[/color][/font]

 

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I have nailed Down the problem to the "socket.Accept" statement.[/color][/font]

 

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]I get this exception: “[/color][color=rgb(30,30,30);]A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll[/color][color=rgb(34,34,34);]”, the first message is received and then everything stops. Other tasks (Onewire and display) are still running.[/color][/font]

 

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Questions:[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a limit to how many outstanding messages the socket Accept wil have? And if så – how many?[/color][/font]

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Is there a way to overcome the problem?[/color][/font]

 

[font="arial, helvetica, sans-serif;"][color=rgb(34,34,34);]Any help is appreciated.[/color][/font]




#50757 how to "Factory reset" Netduino Plus (ver 1 & 2) ?

Posted by OZ8ET on 24 June 2013 - 11:02 AM in Netduino Plus 2 (and Netduino Plus 1)

Additional Info:

Using MFDeploy->Plug-in->Debug->Show Device Info, I get different infor for the two boards:

The good board says:

AuAutoNegotiate completeDeviceInfo:  HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  OEM Product codes (vendor, model, SKU): 34, 177, 4097  Serial Numbers (module, system):    00000000000000000000000000000000    0000000000000000  Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  AppDomains:    default, id=1  Assemblies:    mscorlib,4.2.0.0    Microsoft.SPOT.Native,4.2.0.0    Microsoft.SPOT.Hardware,4.2.0.0    Microsoft.SPOT.Net,4.2.0.0    System,4.2.0.0    Microsoft.SPOT.Hardware.SerialPort,4.2.0.0    Microsoft.SPOT.IO,4.2.0.0    System.IO,4.2.0.0    Microsoft.SPOT.Hardware.PWM,4.2.0.1    Microsoft.SPOT.Hardware.OneWire,4.2.0.0    SecretLabs.NETMF.Diagnostics,4.2.0.0    Microsoft.SPOT.Graphics,4.2.0.0    Easyweb7,1.2013.624.1057    SecretLabs.NETMF.Hardware.Netduino,4.2.1.0    SecretLabs.NETMF.Hardware.NetduinoPlus,4.2.2.0

The bad board says:

AuAutoNegotiate completeDeviceInfo:  HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  OEM Product codes (vendor, model, SKU): 34, 177, 4097  Serial Numbers (module, system):    00000000000000000000000000000000    0000000000000000  Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]  AppDomains:    default, id=1  Assemblies:    mscorlib,4.2.0.0    Microsoft.SPOT.Native,4.2.0.0    Microsoft.SPOT.Hardware,4.2.0.0    Microsoft.SPOT.Net,4.2.0.0    System,4.2.0.0    Microsoft.SPOT.Hardware.SerialPort,4.2.0.0    Microsoft.SPOT.IO,4.2.0.0    System.IO,4.2.0.0    Microsoft.SPOT.Hardware.PWM,4.2.0.1    Microsoft.SPOT.Hardware.OneWire,4.2.0.0    SecretLabs.NETMF.Diagnostics,4.2.0.0    Microsoft.SPOT.Graphics,4.2.0.0

The Secretlab assemblies does has not been loaded??

 

Another diff.:

When pressing hte Erase button in MFDeploy, the good board shows both "Deployment" and "File System". The bad board only shows "Deployment".

 

Erik




#50753 how to "Factory reset" Netduino Plus (ver 1 & 2) ?

Posted by OZ8ET on 24 June 2013 - 07:37 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks Chris

 

This is on NetduinoPlus (version 1).

As mentioned - I test with 2 identical units. One Works as expected - one fails.

The dll is available (Works with the other board).

After following your instructions (Erase, clean, build) the error changed.

There are no error en build - the error comes when running Debug in VS2012 (and VS2010).

The new Error indications is:

Cannot find any entrypoint!Done

Here comes first the full result of "ERASE" operation in MFDebug:

DM9161_DSCSR = 0xF3F0Link Update:          IP: 192.168.1.30         GW: 192.168.1.1Configuration version != versionDM9161_AutoNegotiateValid PHY Found: 31PHY: Vendor Number Model = 0xAPHY: Model Revision Number = 0x0AutoNegotiate completeDM9161_GetLinkSpeed passedLink detected 0x0Link Update:          IP: 192.168.1.30         GW: 192.168.1.1ip address from interface info: 192.168.1.30Created EE.Started Hardware.Create TS. Loading start at 154668, end 16cc40   Assembly: mscorlib (4.2.0.0)   Assembly: Microsoft.SPOT.Native (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware (4.2.0.0)   Assembly: Microsoft.SPOT.Net (4.2.0.0)   Assembly: System (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)   Assembly: Microsoft.SPOT.IO (4.2.0.0)   Assembly: System.IO (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)   Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)   Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Loading Deployment Assemblies.Resolving.Ready.Cannot find any entrypoint!Done.Waiting for debug commands...

Following the result of Build operation in VS2012:

Looking for a device on transport 'USB'Starting device deployment...Iteration 0Opening port ?usb#vid_22b1&pid_1001#7&374e48c&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}Attaching debugger engine...... debugger engine attached!Querying device assemblies...Found Assembly mscorlib 4.2.0.0Found Assembly Microsoft.SPOT.Native 4.2.0.0Found Assembly Microsoft.SPOT.Hardware 4.2.0.0Found Assembly Microsoft.SPOT.Net 4.2.0.0Found Assembly System 4.2.0.0Found Assembly Microsoft.SPOT.Hardware.SerialPort 4.2.0.0Found Assembly Microsoft.SPOT.IO 4.2.0.0Found Assembly System.IO 4.2.0.0Found Assembly Microsoft.SPOT.Hardware.PWM 4.2.0.1Found Assembly Microsoft.SPOT.Hardware.OneWire 4.2.0.0Found Assembly SecretLabs.NETMF.Diagnostics 4.2.0.0Adding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.netduinoplus.pe to deployment bundleAdding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.netduino.pe to deployment bundleAdding pe file C:UsersErikDropboxSoucesEasyweb7Easyweb7binReleaseleEasyweb7.pe to deployment bundleAdding pe file C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Graphics.pe to deployment bundleAdding pe file C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2lesecretlabs.netmf.hardware.pe to deployment bundleAttempting deployment...Incrementally deploying assemblies to deviceDeploying assemblies for a total size of 63496 bytesAssemblies successfully deployed to device.

.Finally the result of running Debug in VS2012:

Found debugger!Create TS. Loading start at 154668, end 16cc40   Assembly: mscorlib (4.2.0.0)   Assembly: Microsoft.SPOT.Native (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware (4.2.0.0)   Assembly: Microsoft.SPOT.Net (4.2.0.0)   Assembly: System (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)   Assembly: Microsoft.SPOT.IO (4.2.0.0)   Assembly: System.IO (4.2.0.0)   Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)   Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)   Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Loading Deployment Assemblies.Attaching deployed file.   Assembly: SecretLabs.NETMF.Hardware.NetduinoPlus (4.2.2.0)Attaching deployed file.   Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)Resolving.The debugging target runtime is loading the application assemblies and starting execution.Ready.Cannot find any entrypoint!Done.Waiting for debug commands...'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2Assemblieslemscorlib.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Native.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Net.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.PWM.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.OneWire.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Diagnostics.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.Netduino.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.NetduinoPlus.dll', Symbols loaded.The program '[1] Micro Framework application: Managed' has exited with code 0 (0x0).

If you need any other information please ask.

Erik  




#50735 how to "Factory reset" Netduino Plus (ver 1 & 2) ?

Posted by OZ8ET on 23 June 2013 - 11:35 AM in Netduino Plus 2 (and Netduino Plus 1)

I realy needs help on this!

I have two NetduinoPlus (version 1) with excatly the same firmware. Both with static IP (same settings)

Same program. Assembly and Deploy is ok on both devices.

One runs ok - the other does not.

In debug mode everything is normal on one board - the other stops with an Error: a3000000

Resolving.Link failure: some assembly references cannot be resolved!!Assembly: NewWeb (1.0.0.0) needs assembly 'SecretLabs.NETMF.Hardware.NetduinoPlus' (4.2.2.0)Error: a3000000Waiting for debug commands...The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).

What is worng?

 

[font="calibri;"]The problem seems to arise when the program reaches a certain size.[/font]




#50474 Expert tip: switching between WinUSB and MFUSB drivers

Posted by OZ8ET on 14 June 2013 - 03:58 AM in General Discussion

So far users seem to be having a really great experience with the new WinUSB drivers.

A handful of users running under VMs have reported a preference for the legacy MFUSB drivers. Here's a quick set of instructions on how to force your 4.2 Netduino or Netduino Plus to use the MFUSB drivers.

To manually switch to MFUSB (SpotUSB) drivers -- for special cases


    [*]Open Device Manager. Under USB controllers, find "Netduino"
    [*]Right-click on the Netduino and click "Update driver software".
    [*]Click the "Browse my computer for driver software" option.
    [*]Click the "Let me pick from a list of device drivers on my computer" option
    [*]If presented with device types, choose "All devices"
    [*]Press the "Have Disk..." button.
    [*]Select the ini file in folder "C:Program Files (x86)Secret LabsNetduino SDKDriversMFUSB"
    [*]Complete the wizard. It may warn you about a mismatch, but accept the mismatch anyway. This is for VID/PID override.
    [*]Your Netduino will now be using the legacy MFUSB (SpotUSB) drivers instead.
    [/list]If you want to switch back to the WinUSB drivers, you can repeat this process...selecting the WINUSB driver folder in step 7 instead.

    NOTE: if you plug your Netduino into a different USB port, you may need to repeat the above steps once for that port.

    Chris

     

This driver is not available in the lib for 4.3 ???




#50322 how to "Factory reset" Netduino Plus (ver 1 & 2) ?

Posted by OZ8ET on 06 June 2013 - 06:22 AM in Netduino Plus 2 (and Netduino Plus 1)

Tnx Bi Qin but this is what I did. 

For NP1 I am using TonyA's firmware here as I need OneWire. It worked for som units but not all.

I always use static IP - I set it in the program together with DNS and MAC.

Again - it works on some units - not all.




#50319 how to "Factory reset" Netduino Plus (ver 1 & 2) ?

Posted by OZ8ET on 06 June 2013 - 04:14 AM in Netduino Plus 2 (and Netduino Plus 1)

[font="calibri;"]This might be a stupid question, but I have been messing around with different versions of firmware on my devices and want to go back to start ("factory reset").[/font]

 

[font="calibri;"]The result is strange behavior: One NP1 will deploy a program, but ends all threads without doing anything when started.[/font]

[font="calibri;"]Both NP1 and NP2 will throw a socket exception whenever I try a DNS request for ex. “Microsoft.com”.[/font]

[font="calibri;"](This happens even with this as the only one codeline in the software:[/font]

	IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry("microsoft.com").AddressList[0], 80);

[font="calibri;"] [/font]

Other devices - with the same IP-setting - performs well.

 

[font="calibri;"]Now I want to “factory reset” my devices and try all over with new firmware. I touched the blank spot and tried all the obvious ways but nothing helps. [/font]

 

[font="calibri;"]What can I do?[/font]

 

[font="calibri;"]The socket exception occurs with 4.2 as well as with 4.3 beta.[/font]

 

[font="calibri;"]Please advice![/font]

 

Erik

 




#47636 SMTP_Client throws System.ArgumentOutOfRangeException

Posted by OZ8ET on 27 March 2013 - 02:51 PM in Netduino Plus 2 (and Netduino Plus 1)

I have the same problem - is it a v4.2 problem? I cannot get it to accept "IntegratedSocket".

 

I installed toolbox,

included Toolbox.NETMF.NET.SMTP_Client

using Toolbox.NETMF.NET;

 

IntegratedSocket integratedSocket = new IntegratedSocket("<smtp-server>", 587);SMTP_Client client = new SMTP_Client(integratedSocket, SMTP_Client.AuthenticationTypes.Login, "<username>", "<password>");client.Send(message, from, receiver);

?




#47549 DNS request problem in 4.2

Posted by OZ8ET on 25 March 2013 - 07:22 AM in General Discussion

In early 4.2 releases there wherer issues with socket (i found this on other threads back in 2011). Have these been solved??

I stille have big problems with latest release.

(This is on NetduinoPlus 1.gen)

 

This is my code (reduced)

 

namespace NetduinoApplication1{	public class Program	{		public static void Main()		{			foreach (string ip in NetworkInterface.GetAllNetworkInterfaces()[0].DnsAddresses)			{ Debug.Print("DNS:" + ip); }			IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry("microsoft.com").AddressList[0], 80);			Debug.Print("Finish");		}	}}

and this is the result I get:

The thread '<No Name>' (0x2) has exited with code 0 (0x0).DNS:8.8.8.8DNS:8.8.4.4A first chance exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dllAn unhandled exception of type 'System.Net.Sockets.SocketException' occurred in Microsoft.SPOT.Net.dll Uncaught exception The thread '<No Name>' (0x1) has exited with code 0 (0x0).Done.The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).

even when I establish the EPEndPoint with an IP address, I get problems with socket commands.

	new IPEndPoint(IPAddress.Parse(serverip), 123);	using (Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.Tcp))	{		s.Connect(ep);		byte[] ntpData = new byte[48]; // RFC 2030		Array.Clear(ntpData, 0, 48);		ntpData[0] = 0x1B;		s.SendTo(ntpData,ep);		if (s.Poll(5000000, SelectMode.SelectRead)) { s.Receive(ntpData); }	}

 

 

all help is highly appreciated.

 

Erik




#47465 DNS request problem in 4.2

Posted by OZ8ET on 22 March 2013 - 06:36 AM in General Discussion

Thanks for good answers.. I did check the router DNS and tested as you suggest emg, but everything works from the PC.

I just don’t understand why it works with an in-LAN DNS??.

 

Maybe it is a problem with the internet provider however. This morning things have changed a bit.

Right now I am able to use my old software again – strange! – I am digging into it.




#47447 DNS request problem in 4.2

Posted by OZ8ET on 21 March 2013 - 05:20 PM in General Discussion

Yesterday my internet provider "upgraded the Network" and after this my NetduinoPlus2 NTP client will not Work.

(It has been working for month before - and before on NetduinoPlus 1.gen for years).

I have isolated the problem to the DNS call:

 

IPEndPoint ep = new IPEndPoint(Dns.GetHostEntry(servername).AddressList[0],123)  

After timeout I get an Socket error exception.

Having messed around for 24 hours, I decided to make an experiment. I installed a DNS server on my Synology fileserver and changed the DNS address in the NETMF program to the Synology DNS.  

This works! – as it use to.

It doesn’t solve the problem, but proves that my program is still working. My conclusion is that there must be a problem/weakness in the METMF/Netduino DNS that makes this protocol more sensitive to deviations than most other equipment (all other equipment works). My internet provider claims that they have no other problems reported.

Does anyone have an explanation? – or maybe an advice?

I tried:

Using DHCP – same problem Using the router as DNS (192.168.1.1) – same problem Using the providers DNS-IP – same problem Using an open DNS (8.8.8.8) – same problem  

Why does it work with a local DNS-server?

Does IP4 – IP6 has something to do with it (Synology also uses IP6)

?????????????????????????????????????????

 




#47347 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 18 March 2013 - 07:59 PM in Netduino Plus 2 (and Netduino Plus 1)

Thank you Toni - great job!

Erik




#47290 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 17 March 2013 - 11:03 AM in Netduino Plus 2 (and Netduino Plus 1)

Sorry - has the download a new bootloader? - if so when did you change it? is there any description on how to use?

Thanks again for your great work.

Erik




#47266 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 16 March 2013 - 10:28 AM in Netduino Plus 2 (and Netduino Plus 1)

There is a problem using the MF-Deploy tool to change Network configuration on NP Gen1 with this firmware.

It takes foreveer to get the Configuration window to show. 

If I take power off-on, it shows.




#47265 New: Netduino 4.3 SDK and VS2012 support!

Posted by OZ8ET on 16 March 2013 - 10:06 AM in General Discussion

Onewire support is also available on NETMF 4.2 through ToniA's firmware here

There was a problem deploying large software because the watchdog interupted the deploy. ToniA is looking into it and right now I am using the original boot-loader wihich  disables the watchdog.




#47261 How does NETMF/Netduino handle embedded resources

Posted by OZ8ET on 16 March 2013 - 05:46 AM in General Discussion

I have a file as an embedded resource (resource -id: myfile) which is quite large.

 

I want to send this file from a function like this:

 

sendString(Resources.GetString(Resources.StringResources.myfile));  

My function “sendString” chops up the string and send it in smaller bites.  

The concept is tested with a smaller file and Works.

 

The question is:  

Will the resource string be send to my function as a string (in RAM) or as a reference to the resource string (in FLASH)?.  

If it is first copied to RAM, it will take all my RAM which is not good.  

I tried to use “ref string buf” in the function argument, but it does not seems to Work (with the embedded ressource file).  

Any ideas?

Sorry if this is a plain NETMF question, but it might also have somthing to do with the implementation in Netduino ???  

 

 




#47014 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 11 March 2013 - 08:48 AM in Netduino Plus 2 (and Netduino Plus 1)

Having installed the original Secret Lab TinyBoot-thing for fw 4.2, I could upgrade the Firmware to ToniA's version, and I now have another 3 NetduinoPlus version 1 working with Onewire.

Life is good - thanks to ToniA, 

I look forward to a solution to the Watchdog problem, which will be en enhancement.

Regards

Erik




#47010 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 11 March 2013 - 06:24 AM in Netduino Plus 2 (and Netduino Plus 1)

Thanks ToniA - there is a logic to that. Writing my post, I realised that the difference was the TinyBoot-thing that was not installed in my first attempt and the Watchdog therefore was not enabled. 

I am about to install the original TinyBoot-thing but right now have problem seeing the COM-port in SAM-BA.

This is however another problem that I hopefully will solve soon.

Thanks for quick reply

Erik




#47005 Hardware watchdog on Netduino Plus

Posted by OZ8ET on 11 March 2013 - 05:03 AM in Netduino Plus 2 (and Netduino Plus 1)

Please explain!

 

I installed the firmware (thank you ToniA) and my first attempt on an fault (analog-port) NetduinoPlus 1 worked fine.

Next two other boards were upgraded, and they Work with some small sample programs.

Then I took the program that Works on NetduinoPlus 2 (changed reference and using to NetduinoPlus)but whenever I try to deploy, I get the error: "An error has occured: please check your hardware."

 

Is this a memory problem(Ram or Flash)?

How can I see how much memory is available for my application?

How can I see how much memory my application require to deploy?

 

Thanks in advance

Erik

 

Additional information:

When I upgraded the first (faulty) device, I did not installed the TinyBootLoader (by mistake). I did have som problems with upgrading the firmware, but managed to do it at last.

When I upgraded the other devices, I had the same problems, but realised I had to opgrade the TinyBootLoader. After doing that, the firmware upgrade was ok.

Now the first (faulty) device kan accept the application, but the others makes an error.

 

Device Info from the first (faulty) device:

DeviceInfo:

HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]

OEM Product codes (vendor, model, SKU): 34, 177, 4097

Serial Numbers (module, system):

00000000000000000000000000000000

0000000000000000

Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]

AppDomains:

default, id=1

Assemblies:

mscorlib,4.2.0.0

Microsoft.SPOT.Native,4.2.0.0

Microsoft.SPOT.Hardware,4.2.0.0

Microsoft.SPOT.Net,4.2.0.0

System,4.2.0.0

Microsoft.SPOT.Hardware.SerialPort,4.2.0.0

Microsoft.SPOT.IO,4.2.0.0

System.IO,4.2.0.0

Microsoft.SPOT.Hardware.PWM,4.2.0.1

Microsoft.SPOT.Hardware.OneWire,4.2.0.0

SecretLabs.NETMF.Diagnostics,4.2.0.0

SecretLabs.NETMF.Hardware.Netduino,4.2.1.0

Microsoft.SPOT.Graphics,4.2.0.0

SecretLabs.NETMF.IO,4.2.0.0

Easyweb,2.2013.310.1337

SecretLabs.NETMF.Hardware,4.2.0.0

 

Device Info from one of the other (not working) devices:

 

DeviceInfo:

HAL build info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]

OEM Product codes (vendor, model, SKU): 34, 177, 4097

Serial Numbers (module, system):

00000000000000000000000000000000

0000000000000000

Solution Build Info: 4.2.0.0, Netduino Plus (v4.2.0.1) by Secret Labs LLC [CW2 mod]

AppDomains:

default, id=1

Assemblies:

mscorlib,4.2.0.0

Microsoft.SPOT.Native,4.2.0.0

Microsoft.SPOT.Hardware,4.2.0.0

Microsoft.SPOT.Net,4.2.0.0

System,4.2.0.0

Microsoft.SPOT.Hardware.SerialPort,4.2.0.0

Microsoft.SPOT.IO,4.2.0.0

System.IO,4.2.0.0

Microsoft.SPOT.Hardware.PWM,4.2.0.1

Microsoft.SPOT.Hardware.OneWire,4.2.0.0

SecretLabs.NETMF.Diagnostics,4.2.0.0

SecretLabs.NETMF.Hardware.Netduino,4.2.1.0




#45606 VPN Server on Netduino Plus

Posted by OZ8ET on 16 February 2013 - 06:32 AM in General Discussion

My intensions are to build a VPN server on a Netduino Plus (1).

 

Can any body point me in the right direction?

 

I do have the inolved RFC’s but is looking for something more (framework, code sample o.a.).

 

Tnx in advance

Erik  




#45604 New: Netduino 4.3 SDK and VS2012 support!

Posted by OZ8ET on 16 February 2013 - 06:20 AM in General Discussion

Does the 4.3 implementation support OneWire?

 

Will the Gen.1 implementation of 4.3 support OneWire?

 

Netduino has been ignoring OneWire allthough it is an essential part of NETMF and should not be negleted.

 

The argument of saving flash/ram is like removing the wheels from a car beause they take up too much space!

 

I am a litle (very) frustrated waiting for OneWire on 4.2, Gen.1.

 





home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.