- Netduino Forums
- → ErikN's Content
ErikN's Content
There have been 89 items by ErikN (Search limited from 30-March 23)
#26429 Redacted 00101100
Posted by ErikN on 04 April 2012 - 05:14 PM in General Discussion
#26296 Redacted 00101100
Posted by ErikN on 03 April 2012 - 03:54 AM in General Discussion
#25475 Run Code From SD
Posted by ErikN on 13 March 2012 - 08:40 PM in Netduino Plus 2 (and Netduino Plus 1)
The DOD requiurement for the arbitrary maximum is 60K FT Altitude + 1K FtPS Speed. However most manufactures write the firmware code as 60K FT or 1 ftPS instead of 60KFT and 1 ftPS.
My team and I have posted emails to a few of the larger chip makers with what we are trying to do in an effort to get a properly coded GPS Chip that will meet our needs.
Sounds like you've got it covered then!
#25472 Run Code From SD
Posted by ErikN on 13 March 2012 - 08:23 PM in Netduino Plus 2 (and Netduino Plus 1)
- Can you request a health check from the Netduino?
- Can you extend the program memory size by using an SD card?
As for 2, there are a number of discussions on using the SD card as storage space for DLLs but keep in mind, once you load the DLL into memory, you're using the chip memory. You can't execute program space from the SD card directly. The SD card is primarily used to store log or resource files. I wouldn't count on being able to use this when decided on what boards to evaluate for your needs.
Side note: all consumer GPS receivers (sold in the US? made in the US? required by license?) have an arbitrary maximum operating altitude above which they will be unusable. Just something to be aware of when designing your project.
#24830 My Paranormal Investigation Tool(s) Project
Posted by ErikN on 28 February 2012 - 09:32 PM in Project Showcase
Just wanted to report that I had my first successful test of my project in the field on an investigation of an old tavern Saturday Night.
Congrats!
This was also my first test of the new LiPo battery circuit and the charger and it worked fine.
I looked over your project site but I didn't see anything specific about this. I'm curious - what are you using? Custom build? I just picked up a couple of these from Adafruit and I've just started testing them. So far with default configuration I was able to charge a LiPoly battery and blind myself with a 1W LED on the circuit output from a MacBook Pro USB port. The board says it can do 1A but I believe the default is 500mA.
I didn't run the LED for very long, I just wanted to test the transition from USB pass-through while charging the LiPoly to running from the LiPoly pack.
#24449 Ethernet never works if not connected on boot up?
Posted by ErikN on 20 February 2012 - 06:46 AM in Netduino Plus 2 (and Netduino Plus 1)
EDIT:
Oops, I didn't realize the latest 4.2 was up to RC4 and since I didn't see an explicit version mentioned, I assumed you were using 4.1 - looking at the error more closely I see you are using 4.2.0.0. Looking over the 4.2 RC4 features and sure enough that's where the first mention of plugging in the ethernet at any time is mentioned.
This firmware also includes the following previous updates:
...
5. Network cable may now be plugged in at any time
#24350 .NET Micro Framework 4.2 QFE1
Posted by ErikN on 17 February 2012 - 05:37 PM in General Discussion
#24202 My Paranormal Investigation Tool(s) Project
Posted by ErikN on 13 February 2012 - 10:34 PM in Project Showcase
Please give it another shot. I think it was blocking all non USA traffic because of some spam I was getting from China a while back.
Ah yes, the sledgehammer approach.
#23994 Waterproof temperature sensor?
Posted by ErikN on 08 February 2012 - 07:18 PM in General Discussion
#23986 Extend PWM output
Posted by ErikN on 08 February 2012 - 04:59 PM in Netduino 2 (and Netduino 1)
#23983 Waterproof temperature sensor?
Posted by ErikN on 08 February 2012 - 04:18 PM in General Discussion
#23922 event handling issue.
Posted by ErikN on 07 February 2012 - 06:03 PM in Netduino Plus 2 (and Netduino Plus 1)
public static void Main() { //Do your event wireup and any other thread work //Then, last thing: while(true) { //Do any periodic work you need executed on the main thread for some reason Thread.Sleep(10000); // 10 seconds or whatever } }
If you don't ever need the main thread to wake up to do something then you don't need a loop at all and you can put the thread to sleep forever. Your event threads will continue to process; this is just the main thread which you need to keep active so the whole program doesn't terminate.
public static void Main() { //Do your event wireup and any other thread work //Then, last thing: Thread.Sleep(Timeout.Infinite); }
#23741 event handling issue.
Posted by ErikN on 03 February 2012 - 10:39 PM in Netduino Plus 2 (and Netduino Plus 1)
#### Exception System.OutOfMemoryException - CLR_E_OUT_OF_MEMORY (1) ####
#### Message:
#### System.Delegate::Combine [IP: 0000] ####
#### Microsoft.SPOT.Hardware.NativeEventDispatcher::add_OnInterrupt [IP: 0014] ####
#### NetduinoPlusApplication1.Program::Main [IP: 004a] ####
This is saying in your application NetduinoPlusApplication1 has an object Program with a function Main which has some instruction that is, under the hood, calling NativeEventDispatcher object's add_OnInterrupt method. That is in turn calling Delegate object's Combine method. From experience, I know when you do <event> += <handler> this uses Combine to join your new handler into the pool of handlers that want to be called when this event is fired.
That gives us all the information we need to find the problem. Looking at your code, there's only one place you're doing a handler assignment to an event:
while (true) { button.OnInterrupt += new NativeEventHandler(button_OnInterrupt); button.ClearInterrupt(); }
We see this is being done in an infinite loop. Basically you're attaching a copy of your event handler again and again and again until the Netduino runs out of memory space.
You can read up on Event Based Programming but in short to fix your issue, just move your event wire-up above the while loop (which I assume you have just to keep the main thread alive; in which case you should consider adding a sleep call to put the main thread to sleep when it's not needed.)
Hope this helps!
-Erik
#23538 over run?
Posted by ErikN on 30 January 2012 - 10:59 PM in Netduino Plus 2 (and Netduino Plus 1)
night time here in denmark
I'm going to have to start a list of Scandinavian users! Of which I'll only be an honorary member.
-Erik
- Netduino Forums
- → ErikN's Content
- Privacy Policy