Skip to main content
Divesh Dutt
Associate III
April 22, 2021
Solved

Printing Garbage Value

  • April 22, 2021
  • 14 replies
  • 3650 views

Hi there,

I am working with tfmini lidar and i am using USART3.However i am getting the garbage in the virtual port any idea how can i resolve this but i am getting the right header i.e YY in decimal.

Any suggestion would be appreciated.

Thanks

0693W00000AMIO5QAP.png

This topic has been closed for replies.
Best answer by John E KVAM

After much conversation, this is not an ST part. It's from Sparkfun, but based on an LED emitter and photo diode.

14 replies

raptorhal2
Lead
April 29, 2021

TeslaDelorean is correct. Read the data sheet for this device.

Each 8 byte data frame starts with a 0x5959 which happens to be ascii YY, but the remaining bytes are binary. Either convert the binary to ascii before sending to Tera Term, or use a terminal emulator that provides for a hex display that is easier to interpret than garbage.

The literature says the comm is USART/I2C. USART seems to be the default.

Cheers, Hal

Divesh Dutt
Associate III
April 29, 2021

Oh ok what you saying is tera term doesn't support the binary number.I didn't know that.i'll try another emulator or will convert it to hex.

John E KVAM
ST Employee
April 29, 2021

What is the part number of the sensor you are using?

John E KVAM
John E KVAMBest answer
ST Employee
April 29, 2021

After much conversation, this is not an ST part. It's from Sparkfun, but based on an LED emitter and photo diode.