2
\$\begingroup\$

The firmware of my module supports UART printf() which I think could be good for debugging, but how could the messages be read? I'm currently using just a USB-to-Serial cable. I've tried using PuTTy, but all I see is gibberish, e.g.,

▒)▒ɜ▒] ▒▒▒▒9~▒!▒▒!▒▒▒▒▒▒J=▒▒H▒] ▒,▒▒H9▒ ▒▒H▒▒Ȇ

Is PuTTy actually right for the job?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Putty should be fine. Check the serial settings, partularly data/baud rate. The USB driver will use these settings to configure the UART inside the USB module. \$\endgroup\$
    – DoxyLover
    May 2, 2015 at 18:15
  • \$\begingroup\$ For low-level debug etc. I find Terminalbpp by "Br@y" a much better tool than Putty, it can show you the raw binary it receives as hex values rather than just mangled ASCII - sites.google.com/site/terminalbpp \$\endgroup\$
    – John U
    Nov 6, 2015 at 17:12

3 Answers 3

4
\$\begingroup\$

Have you checked your baud,start,stop settings? Try with different values (e.g. 9600,n,8,1)

\$\endgroup\$
1
  • 1
    \$\begingroup\$ All good now. It needs 115200. \$\endgroup\$
    – Kar
    May 2, 2015 at 18:45
1
\$\begingroup\$

If you have some money to invest I recommended a logic analyser. I suggest: www.saleae.com.

In this capture software you can set up communication (USART, SPI, I2C ..) and see the decoded data in various ways.

\$\endgroup\$
3
  • \$\begingroup\$ While a logic analyzer could be useful for certain things, you don't need any money to invest to read the data output through a properly working UART interface of known baud rate & parity settings. Any decent free/open-source/bundled-with-your-favourite-OS terminal software will do the jobs for this case. \$\endgroup\$ Nov 7, 2015 at 4:19
  • \$\begingroup\$ I partly agree, but when you need a properly DEBUG, something that debugs the hardware..the fisical signal is important like a osciloscope or logic analyser. \$\endgroup\$ Nov 7, 2015 at 4:27
  • \$\begingroup\$ Salae LAs cost hundreds and hundreds. I don't recommend them unless you're a professional. There are oodles of far cheaper alternatives. Not least the hantek 6022bl which is an analog scope and a 16 channel LA (only 8 using the otherwise superior sigrok SW). \$\endgroup\$
    – RichieHH
    May 15, 2022 at 9:57
1
\$\begingroup\$

The output you posted looks like it contains non-printable characters. In this case, you may try out HTerm. The page is german, but the program is english.

It doesn't only show lots of RS232 settings, it also show data simultaneously in ASCII, hex, decimal and binary. It also allows to send given data every x seconds.

(Of course, this doesn't help if you need to debug the signal transmission itself.)

enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.