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

Serial Port


  • Please log in to reply
9 replies to this topic

#1 seascan

seascan

    Advanced Member

  • Members
  • PipPipPip
  • 88 posts

Posted 22 December 2011 - 12:52 AM

Hi. Can anyone see a problem with this code??

Imports System
Imports Microsoft.SPOT
Imports System.IO.Ports
Imports SecretLabs.NETMF.Hardware.NetduinoPlus
Imports System.Threading
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware


Public Class OneWireTemperature

    Public Sub New()
        Dim _COM1 As serialport

    End Sub

End Class

I'm trying to port some C# code and am stuck.

serialport does not exist... I can't find it anywhere. There is a serialportS... but I can't see how to initialize.

#2 Joe Griffith

Joe Griffith

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 22 December 2011 - 01:10 AM

See if this thread helps: Serial Port

#3 seascan

seascan

    Advanced Member

  • Members
  • PipPipPip
  • 88 posts

Posted 22 December 2011 - 01:34 AM

Thanks Joe. Stefan posted the solution there: The reference is "Microsoft.SPOT.Hardware.SerialPort" But the imports line is "Imports System.IO.Ports"

#4 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 December 2011 - 08:57 AM

And did that help? :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#5 seascan

seascan

    Advanced Member

  • Members
  • PipPipPip
  • 88 posts

Posted 22 December 2011 - 03:09 PM

And did that help? :)

It did... I wasn't expecting different names for the reference and the import statements.

#6 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 22 December 2011 - 03:38 PM

It did... I wasn't expecting different names for the reference and the import statements.

It's confusing, I know :(
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#7 Bryan T

Bryan T

    Member

  • Members
  • PipPip
  • 25 posts

Posted 24 April 2012 - 07:35 PM

It's confusing, I know :(


Sorry to resurrect an old thread, but I can't find Serialport even with this info. I'm using RC4. I know I must be missing some small detail, but I can't find it. Any help would be appreciated.

#8 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 April 2012 - 07:39 PM

Hi Bryan and welcome to the forums :) Did you successfully added the reference to Microsoft.SPOT.Hardware.SerialPort? If so, on what part do you get stuck?
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#9 Bryan T

Bryan T

    Member

  • Members
  • PipPip
  • 25 posts

Posted 24 April 2012 - 07:58 PM

Well, yes, about one minute after I posted, I re-read the other thread and found that missing small detail. <insert embarrassed emoticon here> Of course, it's working now. Thanks for the quick reply. I'm wading deep into this Visual-Basic-on-Netduino pool. Thought I was in over my head for a minute there. Lovin' it so far.

#10 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 24 April 2012 - 08:01 PM

Glad to read everything is working OK! :)
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs




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.