- Netduino Forums
- → Viewing Profile: Topics: micfiz
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.
Community Stats
- Group Members
- Active Posts 12
- Profile Views 5215
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
0
Neutral
User Tools
Friends
micfiz hasn't added any friends yet.
Topics I've Started
Root cause of half bricked ND+ ?
22 November 2011 - 11:59 AM
This post changed from initially being -help- half bricked my ND+.
Could not ping or connect (MFDeploy) or deploy (Vis.Stu 2010) UNLESS I PLUGGEDIN THE NETWORK CABLE! This did not help with Deployment though!
So reading the forums for 'Bricked' led to the procedure below and now my ND+ will dance with all partners.
If your Netduino app locks up your Netduino, you don't need to erase and reflash.
Simply use the bootloader (TinyBooter) mode to erase your current Netduino app.
[Hold down the pushbutton on your Netduino and then power it up by plugging it into your PC's USB port...
then press ERASE in MFDeploy within 5 seconds.]
What happened? Well I was doing the XBee thing. Used the Sparkfun tutorial http://www.sparkfun.com/tutorials/192 with Arduino first. All is good. XBee's work at 9600 baud at good around the corner distances.
Used this article http://basbrun.com/category/netduino/ for the confirmation that ND+ will work with the XBee Shield. Thats when things got ugly. Code at bottom.
From another post 'Chris's', I learned where the SerialPort was really! Had to add the reference -> Microsoft.SPOT.Hardware.SerialPort
Right now I can deploy and debug this to an error.
The thread '<No Name>' (0x2) has exited with code 0 (0x0).
#### Exception System.Exception - CLR_E_TIMEOUT (1) ####
#### Message:
#### System.IO.Ports.SerialPort::Read [IP: 0000] ####
#### XBeeTestProgram2.Program::Main [IP: 002a] ####
A first chance exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.SerialPort.dll
An unhandled exception of type 'System.Exception' occurred in Microsoft.SPOT.Hardware.SerialPort.dll
???? Does anyone know where I need to go to fix this? Is the porting from the Arduino code faulty? That com1 parameter gives me suspicion.
code]
using System;
using System.Text;
using System.IO.Ports;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
namespace NetduinoPlusXbeeEcho
{
public class Program
{
private static bool pin13Value;
private static OutputPort pin13 = new OutputPort(Pins.GPIO_PIN_D13, false);
public static void Main()
{
byte[] buffer = new byte[32];
SerialPort port = new SerialPort("COM1", 9600);
port.ReadTimeout = 0;
port.Open();
while(true)
{
int count = port.Read(buffer, 0, buffer.Length);
if(count > 0)
{
char[] chars = Encoding.UTF8.GetChars(buffer);
if (chars[0] == 'h')
pin13Value = true;
if (chars[0] == 'l')
pin13Value = false;
pin13.Write(pin13Value);
port.Write(buffer, 0, count);
}
}
}
}
}
[/code]
simple put to localhost confusing
15 November 2011 - 06:31 PM
I have been very successful in working the examples from book ...internet of things ... but when i deviate or do the extra credit things get confusing.
so if I modify a client program such as simplePutRequst with a different URI like http://localhost:8080 i get these socket errors like 00054 and 0006. If put the ip address of my laptop plus the :8080/testHello it works too.
My test web server on the development laptop I run and debug Netduino code is Apache and it works. What woks means is if the browser points to http://localhost/ I get the It Works! from there default htm file. I can ping the local host or 127.0.0.1.
HOWEVER, if I use http://localhost:8080/ it don't respond or rather I get can not display page.
My NetDuino is sending voltage values up to Pachube, a real web server. I want to stay in my own back yard to develop in a test environment.
What does one have to check/configure on a local web server to get the NetDuino to communicate like on the real web servers?
More than happy to share data of this problem for assistance. thanks for your time. This Netduino stuff is really cool.
micfiz
Familiar with Arduino and serial monitor
09 November 2011 - 01:51 PM
Ok, These forums are always tough to describe issue without the back ground, here goes.
Love my Netduino Plus. have blinked, and also done the Pachube thing successfully. I am confused about how to watch output from the VoltageReader program outside of using Visual Studio debugger or the MFDeploy 'Connect'.
I tried to fire up putty and have it look at Com4 which is where the ND+ is connected via the usb.
Restated- I have the voltageReader running with power from USB. How to setup to see output using console or terminal or ?
This is a leading question into my next dance. I want to create some C# gui that has a field for these voltages to populate in.
Any comments welcome. Like I said I have worked with Arduino and the serial monitor or a putty window to see debug statements but that board had to have Etho shield or whatnot to do what the ND+ did right out of the box using the "internet of things book" !!!
- Netduino Forums
- → Viewing Profile: Topics: micfiz
- Privacy Policy