Netduino home hardware projects downloads community

Jump to content


Photo

RS232 Communication


  • Please log in to reply
2 replies to this topic

#1 beerygaz

beerygaz

    New Member

  • Members
  • Pip
  • 3 posts

Posted 16 October 2014 - 03:16 PM

I'm new to the Netdunio and am struggling to communicate with it.  I've hacked a serial cable and have wired pins 2-5 to pins 1-4 on the Netdunio.  When I open putty and power up the mini I get the following:

 

NetduinoMini Build Date: Feb 14 2011 00:59:02
ARM Compiler version 400902
MSdbgV1Rr
.NetMF v4.1.2821.0XIP Program found at 0x0010a000
NetduinoMini, Build Date:
   Feb 14 2011 00:59:53
ARM Compiler version 400902


TinyCLR (Build 4.1.2821.0)


Starting...
Created EE.
Started Hardware.     t?MSdbgV1qt?MSdbgV1wKft?MSdbgV1et?MSdbgV1cPt?MSdbgV1i$Kt?MSdbgV1oǽt?MSdbgV1Mv8t?MSdbgV1K<?t?MSdbgV1A'7t?
                                                                      MSdbgV1GS0t?
     MSdbgV1U't?
MSdbgV1Y<(t?MSdbgV1_
                         /t?MSdbgV1^xt?MSdbgV1t?MSdbgV1wt?MSdbgV1pt?No debugger!
Create TS.
 Loading start at 134134, end 1462d4
Attaching file.
Assembly: mscorlib (4.1.2821.0) (3880 RAM - 33236 ROM - 19134 METADATA)


Attaching file.
Assembly: Microsoft.SPOT.Native (4.1.2821.0) (1144 RAM - 6516 ROM - 4479 METADATA)


Attaching file.
Assembly: Microsoft.SPOT.Hardware (4.1.2821.0) (1752 RAM - 11440 ROM - 7371 METADATA)


Attaching file.
Assembly: Microsoft.SPOT.Hardware.SerialPort (4.1.2821.0) (512 RAM - 3488 ROM - 1543 METADATA)


Attaching file.
Assembly: Microsoft.SPOT.IO (4.1.2821.0) (740 RAM - 4620 ROM - 2522 METADATA)


Attaching file.
Assembly: System.IO (4.1.2821.0) (1548 RAM - 13292 ROM - 5862 METADATA)


Attaching file.
Assembly: SecretLabs.NETMF.Hardware (4.1.0.0) (256 RAM - 1108 ROM - 491 METADATA)


Attaching file.
Assembly: SecretLabs.NETMF.Diagnostics (4.1.0.0) (180 RAM - 440 ROM - 166 METADATA)


Loading Deployment Assemblies.
Attaching deployed file.
Assembly: NetduinoMiniTransportSelector (1.0.0.0) (244 RAM - 1168 ROM - 310 METADATA)


Resolving.


Total: (8788 RAM - 75308 ROM - 41878 METADATA)




Total: (8788 RAM - 75308 ROM - 41878 METADATA)


Ready.

But I can't seem to send anything, it just sits there.  Is that correct?  I thought I could interact with the device from putty?  I've even added a RS232 diagnostic device and can see activity on pin 2 (When the device boots) but nothing when I try and send anything from the PC.

 

Am I missing something?



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 02 November 2014 - 04:19 PM

Hi beerygaz,

 

Based on the serial dump, it looks like the Netduino Mini is booting properly.  Since you are using RS232 for transport...is there any chance that your serial adapter is USB-TTL instead of USB-RS232?  Or is using a non-compliant voltage swing?  Or that the PC's TX pin isn't connected securely?

 

Chris



#3 beerygaz

beerygaz

    New Member

  • Members
  • Pip
  • 3 posts

Posted 05 November 2014 - 11:47 AM

Definitely not TTL, using a standard USB to RS232 adapter, added a D-Sub connector and broke out RX TX and GND. Tested continuity on all pins. The voltage swing may be an issue, can you give me a pointer as to what it should be and can I spot it with a DMM and no scope?




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.