Uart Communications
trytryagain
Posts: 26
·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
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
That baudrate must be used on javelin also.
regards peter
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
·
Thank you, that was the problem.
Have a great day!
Jeff(trytryagain)