bigheadG / mmWave

mmWave SDK examples based on Batman Kit mmWave Sensor module
http://www.joybien.com
123 stars 30 forks source link

About Data valid #5

Closed voidgeary closed 4 years ago

voidgeary commented 4 years ago

i have raspberry pi 4 and VSD kit. J9 : connect 1 and 2 (RAW data mode) J1 : connect 5 and 6 J12 : no connect J4 : no connect

i follow the step on github, but when i run this program

(dck , vd, rangeBuf) = vts.tlvRead(False)

dck output False what's reason will cause this question

bigheadG commented 4 years ago

Raw data output for pi4, the jumper connection is following: J1: connect 1 and 2 J9: connect 1 and 2

User guide for you reference: https://github.com/bigheadG/mmWaveDocs/blob/master/Datasheet(BM101%20EVM%20Kit)B(C).pdf

voidgeary commented 4 years ago

oh, it's my wrong. J1 has been connected 1 and 2, not 5 and 6.

but dck is still False. it's looks like that Serial read is time out.

that is my output: https://imgur.com/a/Cp55msS

and this is /usr/lib/python2.7/dist-packages/serial/serialposix.py https://imgur.com/a/6ggwtwu

bigheadG commented 4 years ago

First of all, you must be sure UART is enable.
if you use pi4 sometime you need remove "console=ttyAMA0,115200" from /boot/cmdline.txt use $sudo raspi-config to [interfacing options] -> [P6 Serial] to enable Serial port reboot and check the text is remove and reboot, Then follow "How to Enable RPi UART port:" the step check again https://github.com/bigheadG/mmWave

bigheadG commented 4 years ago

(dck , vd, rangeBuf) = vts.tlvRead(True) if you use pip3 to install mmWave lib. The mmWave lib will install in /usr/local/lib/python3.7/dist-packages/mmWave and please check serial packages:

I use this command to install, becareful pySerial not pyserial $sudo pip3 install pySerial

voidgeary commented 4 years ago

the picture is use $sudo raspi-config to set: https://imgur.com/a/2MEJh04

and the picture is my cmdlist.txt: https://imgur.com/a/jFb5IrS i can't find the "console=ttyAMA0,115200"

it still can't work. by the way, i use pip.

bigheadG commented 4 years ago

Would you please paste the error message or cmdline.txt for me to check

voidgeary commented 4 years ago

this is my cmdline.txt https://pastebin.com/25BMi6rv

and i don't know where the error message is

bigheadG commented 4 years ago

you need use "$sudo raspi-config" to remove console=serial0,115200 from cmdline.txt

reference: Disabling Linux's use of console UART https://www.raspberrypi.org/documentation/configuration/uart.md

voidgeary commented 4 years ago

oh, the problem is solved. thanks your help.

FathiMahdi commented 2 years ago

@voidgeary how you solved this issue ?