- Netduino Forums
- → alanb's Content
alanb's Content
There have been 28 items by alanb (Search limited from 27-September 23)
#9263 Any experience using keypad in your project?
Posted by alanb on 10 February 2011 - 04:11 PM in General Discussion
#9229 Any experience using keypad in your project?
Posted by alanb on 09 February 2011 - 04:09 PM in General Discussion
#9292 Any experience using keypad in your project?
Posted by alanb on 11 February 2011 - 12:37 AM in General Discussion
#9318 Any experience using keypad in your project?
Posted by alanb on 11 February 2011 - 11:01 AM in General Discussion
#9638 Fixing wires into a netduino
Posted by alanb on 16 February 2011 - 06:48 PM in General Discussion
#9228 Help required with Update firmware to 4.1.1
Posted by alanb on 09 February 2011 - 03:51 PM in Netduino Plus 2 (and Netduino Plus 1)
I have just uploaded vs express onto another pc (atom)
Ran the code on atom pc and got the same results as my normal pc see attachment earlier.
Alan
#8755 Help required with Update firmware to 4.1.1
Posted by alanb on 31 January 2011 - 04:48 PM in Netduino Plus 2 (and Netduino Plus 1)
#9542 Help required with Update firmware to 4.1.1
Posted by alanb on 14 February 2011 - 06:20 PM in Netduino Plus 2 (and Netduino Plus 1)
#9215 Help required with Update firmware to 4.1.1
Posted by alanb on 09 February 2011 - 11:01 AM in Netduino Plus 2 (and Netduino Plus 1)
alanb,
It's really weird that you're getting "\ROOT" and "\WINFS" at all. Which firmware build are you using? The special "build #3" that I sent you?
Also, is the card formatted as FAT16 or FAT32?
Chris
Yes I am using the special build you sent. I will reflash the old 4.1.0.5 today and try that. The SD card was formatted on my PC as FAT so I take that to be FAT16. I do know that when mounted on a USB carrier my pc reports the SD disk as healthy.
At present I do not know if it is the firmware or my N+ hardware that is at fault (if it is the hardware I will want to return my N+ to the supplier to be swapped under warranty for a fully working board).
I am under the opinion that perhaps secret labs should think about makeing some short test programs available (not necessarily in c#) that will enable users to establish definitively, if at all possible, whether a problem is hardware or software related. I think this could apply to the SD card, the Network interface etc.
For example is my short bit of code that doesnt report \SD a definitive test for the SD reader/firmware? If not what code would be?
Alan
#9357 Help required with Update firmware to 4.1.1
Posted by alanb on 12 February 2011 - 01:27 PM in Netduino Plus 2 (and Netduino Plus 1)
Directory.SetCurrentDirectory("\\SD");
To
Directory.SetCurrentDirectory(@"\SD");When I did this it all worked fine.
Which is the embarrassed emoticon, imagine it here
#9323 Help required with Update firmware to 4.1.1
Posted by alanb on 11 February 2011 - 05:06 PM in Netduino Plus 2 (and Netduino Plus 1)
#9223 Help required with Update firmware to 4.1.1
Posted by alanb on 09 February 2011 - 02:01 PM in Netduino Plus 2 (and Netduino Plus 1)
#8814 Help required with Update firmware to 4.1.1
Posted by alanb on 01 February 2011 - 05:16 PM in Netduino Plus 2 (and Netduino Plus 1)
Hi Alan,
Are you running inside a virtual machine? If not, what version of Windows are you using (and is it 32-bit or 64-bit)?
Chris
Chris,
I am running a 32bit version of XP with service pack 3 on an Esprimo with Intel core2 CPU 6300 @ 1.86 GHz showing 2.99 GB of ram although there is 5GB on board. I usually run Ubuntu but installed the only version of XP I own which is the 32 bit version from a previous machine. Not running on a virtual machine.
Alan
#8769 Help required with Update firmware to 4.1.1
Posted by alanb on 31 January 2011 - 08:33 PM in Netduino Plus 2 (and Netduino Plus 1)
#8768 Help required with Update firmware to 4.1.1
Posted by alanb on 31 January 2011 - 08:02 PM in Netduino Plus 2 (and Netduino Plus 1)
#9159 Help required with Update firmware to 4.1.1
Posted by alanb on 08 February 2011 - 12:33 PM in Netduino Plus 2 (and Netduino Plus 1)
while (true) { Debug.Print("Loop " + i.ToString() + "\n"); string[] dirs = Directory.GetDirectories(@"\"); foreach (string s in dirs) Debug.Print(s); i++; try { Directory.SetCurrentDirectory("\\SD"); } catch (Exception) { Debug.Print("Exception occurred while calling SetCurrentDirectory"); } Debug.Print("Current directory (after): " + Directory.GetCurrentDirectory()); Thread.Sleep(8000); }See attached file for output. I removed/re-inserted the SD card between iterations of the loop but it seems to make no difference. So can you tell if my SD card reader working or not or is it a software issue?
Attached Files
- SDresults.txt 5.53KB 8 downloads
#8828 Help required with Update firmware to 4.1.1
Posted by alanb on 01 February 2011 - 07:34 PM in Netduino Plus 2 (and Netduino Plus 1)
#8917 Help required with Update firmware to 4.1.1
Posted by alanb on 02 February 2011 - 11:02 PM in Netduino Plus 2 (and Netduino Plus 1)
Attached Files
- vs_build3_on_4.1.1a6.txt 3.91KB 10 downloads
- build3_MFDeploy_clear_4.1.1a6.txt 1.6KB 6 downloads
#8902 Help required with Update firmware to 4.1.1
Posted by alanb on 02 February 2011 - 08:14 PM in Netduino Plus 2 (and Netduino Plus 1)
#8834 Help required with Update firmware to 4.1.1
Posted by alanb on 01 February 2011 - 08:10 PM in Netduino Plus 2 (and Netduino Plus 1)
#9694 How do you create software events
Posted by alanb on 17 February 2011 - 06:42 PM in General Discussion
So far I have created a display manager class, that internally creates a thread listening on a socket for commands. That all works fine, the main thread generates numbers on a display and sending a message from a client on my pc will display that message on the display.
Now when my displaymanager recieves a command code on the socket I want to pass that command back to the main program. On the pc I would usually use an event. When I looked for EventHandler<> I could only find something called NativeEventHandler. Is that the N+ equivalent of EventHandler?
What is the equivalent of my pc code
public event EventHandler<StringEventArgs> ReceivedCommand; ... In Some function if (ReceivedCommand != null) ReceivedCommand(this, new StringEventArgs(command));
Or, as is highly probable, am I going about this in the wrong way.
By the way, a lot of this code is by others from the forum so if you recognise your own code, profound thanks. I will reference everyone in the finished article.
Alan
Attached Files
- DisplayManager.cs 4.94KB 18 downloads
- Program.cs 806bytes 8 downloads
#9715 How do you create software events
Posted by alanb on 17 February 2011 - 09:02 PM in General Discussion
Have a look the changes I did to the RDIF code here: http://forums.netdui..._7220#entry7220 (look after //(** new **))
There I use delegate and event in NETMF.
Thanks for the information, now all working correctly. Thanks also to Dan for the same solution.
Alan
#9538 Netduino Plus Firmware v4.1.1 ALPHA 7
Posted by alanb on 14 February 2011 - 05:22 PM in Netduino Plus 2 (and Netduino Plus 1)
#8819 Project to run my machine
Posted by alanb on 01 February 2011 - 06:30 PM in General Discussion
#8933 SD Card Issues.
Posted by alanb on 03 February 2011 - 06:43 PM in Netduino 2 (and Netduino 1)
I put a SanDisk 4GB SD card (in hope) into my N+ and then ran
VolumeInfo[] vols = VolumeInfo.GetVolumes(); foreach (VolumeInfo vi in vols) { Debug.Print(vi.RootDirectory.ToString()); Debug.Print(vi.TotalFreeSpace.ToString()); Debug.Print(vi.IsFormatted.ToString()); Debug.Print(vi.VolumeID.ToString()); } OutputPort SdPower = new OutputPort((Cpu.Pin)25, false); // ensure that the SD card is powered InputPort sdDetected = new InputPort((Cpu.Pin)57, false, Port.ResistorMode.PullUp); Debug.Print("sd detected: " + (!sdDetected.Read()).ToString()); sdDetected.Dispose();
And got
\ROOT
0
False
0
\WINFS
20000000
True
1
sd detected: True
But my point here is that I got sd detected: True in both instances i.e. when the card was in and again when ejected!! I expected the result to be False with no card inserted. To check I unplugged the N+ before running the code again but got the same result. Is this to be expected? Is \ROOT the card ?
I bought the card yesterday at the local supermarket, I assumed it was pre formatted!!
- Netduino Forums
- → alanb's Content
- Privacy Policy