Data from hyperterminal is garbage

78 views
Skip to first unread message

ramakrishna pentyala

unread,
Jun 3, 2016, 3:34:22 AM6/3/16
to uavdevboard
Hello,

I am using UDB 5 along with MPLAB IDE 3.10

Loaded matrixPilot-Master program to see serial communication(tried with/without GPS) .

using RoHS USB to serial convertor to connect with laptop, I connected only Tx and Rx pins to RS232 (Board and connector side)

Set baud rate configurations as 19200 parity -none, stop bits - 1, no flow control

When I tried to send alphabet "a" using HyperTerminal observed that as "V" in software

Data sent by UDB5 is not decoded correct on HyperTerminal(Most of time see as garbage)

I am kind of stuck here, Cross verified the baud rate by recalculating against stored in registers-- doesn't help

Any inputs appreciated

thanks
Ram

Tom Pittenger

unread,
Jun 3, 2016, 1:10:41 PM6/3/16
to uavdevboard
- Have you tried other baud rates?
- have you tried the baudrate that you've set in optons.h? (may need to be uncommented)
- have you set SERIAL_OUTPUT_FORMAT to SERIAL_UDB_EXTRA (MAVLink is not human readable text).
- >>"I connected only Tx and Rx pins" - have you also connected ground? 

--
--
---
You received this message because you are subscribed to the Google Groups "uavdevboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ramakrishna pentyala

unread,
Jun 4, 2016, 1:43:28 AM6/4/16
to uavdevboard
Hello,

Thanks for your quick response

I tried all other baud rates by using break point in serial port receive module. Except baud rate 19200 all other gave me garbage

any baud rate below 19200 gives me two bytes of data even though I type only one char on hyperterminal. Above 19200 baud rate results null on receive

At baud rate 19200 type a char "a" on hyper terminal give data on serial receive interrupt as "79" asci which is "O"


Used SERIAL_OUTPUT_FORMAT and enabled baud rate settings in options.h file to use 19200

I tried with gnd option on serial port and it doesn't work

Please see if you can add any ideas

Thanks & Regards
Ram

GliderUAV

unread,
Jun 4, 2016, 3:11:59 AM6/4/16
to uavdevboard
Hi Ram,

You said you use a RoHS adapter, but RoHS is a quality check designation. single_usb_to_rs232_converter. What is the brand of your cable?

You may be using a USB to RS-232 adapter, but you need a TTL level Rs-232 like an FTDI cable. .MatrixPilot wiki SerialConnection

Best regards,
Kees

Op zaterdag 4 juni 2016 07:43:28 UTC+2 schreef ramakrishna pentyala:

Robert Dickenson

unread,
Jun 6, 2016, 8:02:28 AM6/6/16
to uavdevboard
you stated that you connected Rx&Tx, did you also connect GND? otherwise, this is a typical serial comms issue, persevere, and you shall prevail.

--

ramakrishna pentyala

unread,
Jun 21, 2016, 12:49:50 AM6/21/16
to uavdevboard
Hello Appreciate your help, I ordered part reference below link...Now my serial port is working fine.

Thanks & Regards
Ram
Reply all
Reply to author
Forward
0 new messages