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.
Photo

Netduino plus 2 against netduino plus


  • Please log in to reply
4 replies to this topic

#1 a4tje

a4tje

    New Member

  • Members
  • Pip
  • 2 posts

Posted 07 December 2012 - 12:13 PM

Hi You All, Because of the exitement on this forum about Netduno i also buy a netduino, a Netduino Plus 2 in fact. But it seams the programs of netduino plus don't work on the plus 2? Because everytime i get this errormessages of hardware not found. I tried the blinky led project and that all works, but this doesn't Error 1 Device not found or cannot be opened - USB:NetduinoPlus I wonder what goes wrong...

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 07 December 2012 - 04:22 PM

Hi a4tje,

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

#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 07 December 2012 - 04:35 PM

Chris is right on the money with the issue. Simple to fix. I've moved quite a few ND+ applications to ND+2 during this week and have found very few issues moving them over.

#4 a4tje

a4tje

    New Member

  • Members
  • Pip
  • 2 posts

Posted 08 December 2012 - 12:21 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

#5 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

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);

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

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.