Main Site Documentation

Fez Cobra UART


#1

Hi. I need to use one of my Fez Cobra’s UART. As I have the plastic enclosure, can I use USB connected to my computer as a COM port?

Note: USB I’m talking about is the same that I use in order to upload firmware to my Fez Cobra.

Thanks!!


#2

Yes but then you need to debug using one of the real serial ports. You need to add this http://www.ghielectronics.com/catalog/product/266


#3

Assuming that, and doesn’t make debug by now. I can’t see any new port in my computer… If, for example, I want to send some bites from my PC to my Fez Cobra using any terminal, which port have I to use?

PD: I’ve a FTDI cable, so a solution can be sold weld some pins in the board, but I would like to test code before solder anything.


#4

Look into CDC - Virtual Serial: http://wiki.tinyclr.com/index.php?title=USB_Client (halfway down)


#5

Hi all! I’ve followed this part of the tutorial tutorial: USB Debugging with Virtual COM Channel

I’m able to debug at the same time I send data using Virtual COM, but I’m not able to read using this port.

Any other idea??


#6

i reckon its a code issue. Show us your code.


#7

Code was working well in Netduino+ as it, so we can assume code is working well :wink:

EDIT:
Problem comes here:
My usings:

using System.IO;
using System.IO.Ports;
using Microsoft.SPOT.Hardware;
using GHIElectronics.NETMF.FEZ;
using System;
_serialPort = new SerialPort(_port, _baudRate);

Where _port is COM7 and _BaudRate 38400. COM7 is de Virtual Port dirvers have installed… but I need to simulate one of the internals.
System shows an exception.


#8

Is COM7 the port on your PC?

You need to look at the CDC documentation. in the CDC example you say you used, it uses:

And the documentation says you need to use .Read() to read data.

http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/dc83ba6f-9d26-1023-309c-c644e5025278.htm

I think you need to show us your code where you’re using cdc.Read().


#9

Finally I’ve sold some wires and everything is working O.K. ;D