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

SerialPort Class not in System.IO.Ports


  • Please log in to reply
9 replies to this topic

#1 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 01 January 2011 - 05:17 AM

I am trying to use the code provided by bill.french with my OneWire Controller, however on line 15 of the PHAOneWire.cs file SerialPort is used, I don't see SerialPort being where I believe it should be (System.IO.Ports)? Am I missing a reference?

Attached Files


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!!

 


#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 January 2011 - 05:24 AM

Hi UnkwnTech, You'll want to add the Microsoft.SPOT.Hardware.SerialPort.dll assembly. Does that work? Chris

#3 Charles

Charles

    Advanced Member

  • Members
  • PipPipPip
  • 192 posts

Posted 01 January 2011 - 06:33 AM

I am trying to use the code provided by bill.french with my OneWire Controller, however on line 15 of the PHAOneWire.cs file SerialPort is used, I don't see SerialPort being where I believe it should be (System.IO.Ports)? Am I missing a reference?



Had the same problem - The assembly Chris referenced should cover it.

#4 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 01 January 2011 - 04:26 PM

Let me know if it works for you. I'm very nervous!!

#5 Frank

Frank

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts
  • LocationNorth Waterboro Maine

Posted 01 January 2011 - 04:41 PM

Had the same issue, and that reference did the trick. Working fine!
Retired -stone sculptor -macro photographer- novice but avid Go player - Geek

#6 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 01 January 2011 - 09:14 PM

You'll want to add the Microsoft.SPOT.Hardware.SerialPort.dll assembly.


I did thanks.

Let me know if it works for you. I'm very nervous!!


It didn't. This was my output:
3812000 - 1940000
1188500 - 482500
72190625 - 39928125
32612000 - 17940000
30902000 - 16990000
57584750 - 31813750
59072000 - 32640000
1836500 - 842500
72385250 - 40036250
3812000 - 1940000
62071250 - 34306250
42383750 - 23368750
65739875 - 36344375
17042000 - 9290000
56338250 - 31121250
65739875 - 36344375
17042000 - 9290000
20914250 - 11441250
59072000 - 32640000
2017625 - 943125
9601250 - 5156250
1485500 - 647500
40931375 - 22561875

I tried with 2 sensors and both the OneWire operation and 'normal' operation.

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!!

 


#7 Frank

Frank

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts
  • LocationNorth Waterboro Maine

Posted 01 January 2011 - 09:27 PM

I'm going to guess you're powering everything off the Netduino. I had the same problem, until I used a separate 5 vdc supply for the Anderson IC and it worked fine then. Before that I was getting nothing that made sense, rambling. My explanation ? Nope, I have none yet!! I'll bet you are seeing the red LED flicker as it send data too? Mine did UNTIL I added the separate supply. Now it stays bright red, no flickering, but it works fine?
Retired -stone sculptor -macro photographer- novice but avid Go player - Geek

#8 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 02 January 2011 - 02:02 AM

I'm going to guess you're powering everything off the Netduino. I had the same problem, until I used a separate 5 vdc supply for the Anderson IC and it worked fine then. Before that I was getting nothing that made sense, rambling. My explanation ? Nope, I have none yet!! I'll bet you are seeing the red LED flicker as it send data too? Mine did UNTIL I added the separate supply. Now it stays bright red, no flickering, but it works fine?


Did you power just the IC off of external power, or the Netduino as well?

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!!

 


#9 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 02 January 2011 - 04:15 AM

Hmm... I've been powering everything off the netduino, it works for me with either an external power supply or just usb.

#10 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 02 January 2011 - 05:55 AM

i posted my circuit layouts in another thread, might help out here: http://forums.netdui...rst-shield-pcb/




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.