Shop OBEX P1 Docs P2 Docs Learn Events
Uart Communications — Parallax Forums

Uart Communications

trytryagaintrytryagain Posts: 26
edited 2009-09-30 20:28 in General Discussion
jumpin.gif·Peter,

I would appreciate your help!

I am now trying to communicate with some
tx,rx, and ground pins on a product from
Lantronix Xport Ar.

This is an ethernet device that sends
data to a pre-determined host.

I have a socket listnener program
thats listening on a port for this transmission.

I am using a test board from Lantronix that has
a serial DB9 which I have hyperterminal connected
to so I can send a test string. This all works fine
so I know the export is communicating with my socket.

Step 2:

Now I want to wire Javelin to the rx,tx, and ground PINS
of the xport directly (without going through the DB9)
so I have send and receive

I only have experience with the uart type below:

static Uart txUart = new Uart( Uart.dirTransmit, CPU.pin0, Uart.dontInvert,
································ Uart.speed19200, Uart.stop1);

This is not used in this case because there is no baud rate etc.

How do I assign a pin to just send/receive data?

I·am confused with the shiftout /in methods beacause I don't
think I need clockportpins and all the complexities associated
with this command. Excuse my ignorance I am new to this.

Thanks for any help Peter.

Jeff (trytryagain)













Post Edited (trytryagain) : 9/30/2009 8:29:17 PM GMT

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2009-09-30 18:08
    Somebody said...
    I am using a test board from Lantronix that has
    a serial DB9 which I have hyperterminal connected
    to so I can send a test string. This all works fine
    so I know the export is communicating with my socket.
    What baudrate is hyperterminal set to?
    That baudrate must be used on javelin also.


    regards peter
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-30 19:02
    Jeff,

    Please use the pencil icon in the top right of the message to edit and add a descriptive subject line.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • trytryagaintrytryagain Posts: 26
    edited 2009-09-30 20:28
    Peter,

    Thank you, that was the problem.

    Have a great day!

    Jeff(trytryagain)
Sign In or Register to comment.