Netduino plus 2 against netduino plus
#1
Posted 07 December 2012 - 12:13 PM
#2
Posted 07 December 2012 - 04:22 PM
Welcome to the Netduino community.
Error 1 Device not found or cannot be opened - USB:NetduinoPlus
This means that Visual Studio is looking for a USB device called "NetduinoPlus". The new Netduino Plus 2 is simply called "Netduino".
You need to do two quick things to run existing Netduino Plus 1 projects on Netduino Plus 2:
1. Remove the SecretLabs.NETMF.Hardware.NetduinoPlus.dll assembly reference from your project, and replace it with SecretLabs.NETMF.Hardware.Netduino.dll (no "Plus") instead. We will remove this requirement in an SDK update later this month.
2. Open up project properties, .NET Micro Framework tab. Change your transport from USB to Serial and back again to USB. You should see "NetduinoPlus2_Netduino" as the target device.
Now save and run your project. You should be off and running!
Chris
- a4tje likes this
#3
Posted 07 December 2012 - 04:35 PM
#4
Posted 08 December 2012 - 12:21 PM
#5
Posted 08 December 2012 - 04:25 PM
Thanks for your quick response, Chris.
I understand the hardware is different from the Netduno plus, so the dll also is.
I am wondering what more differences are there between the two.
For example I just replace the dll's for the right ones for Netduino plus 2.
Now I get stuck on the follwoing command:
AnalogInput A0 = new AnalogInput(Pins.GPIO_PIN_A0); i get an error message saying:
Error 1 The best overloaded method match for Microsoft.SPOT.Hardware.AnalogInput.AnalogInput(Microsoft.SPOT.Hardware.Cpu.AnalogChannel)' has some invalid arguments
Error 2 Argument 1: cannot convert from 'Microsoft.SPOT.Hardware.Cpu.Pin' to Microsoft.SPOT.Hardware.Cpu.AnalogChannel'
So i am looking for a manual especially of the netduino plus 2 so i can find out what i have to change in the software.
To make thingsclear: i am trying to get it working as a webserver for Thingspeak
That is the new (prefered) AnalogInput class, you can find more information on it's MSDN page. The correct way to instantiate the object for a pin on A0 is like so
AnalogInput a0 = new AnalogInput(AnalogChannels.ANALOG_PIN_A0);
- a4tje likes this
When you talk EE use small words, I'm just a Software Developer
My Blog/Site and Everything Else
If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.
Oh my. So many things, so little money!!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users