TF-Luna Setup Issues

Hello.
I have received the TF-Luna and have connected it to the USB included correctly (Picture 1). I then downloaded the WINCC_TF.exe file and ran the program to read the depth values (Picture 2). However, I cannot seem to access the values or get the camera to work? I know my computer is detecting the USB, as it is visible in the device manager (Picture 3). ALSO, how can I use this camera, if possible, in a personal code application AND access its values in real time? Many thanks!

Picture 1:

Picture 2:

Picture 3:


The baud rate needs to be set to 115200 (pic2).

Refer to this post and the raspberry pie application tutorial to write code for your personal application.

https://drive.google.com/open?id=1-2NSfNtUzxeYAxe1y8rvHGSElRWKiAXf&authuser=smartfly00%40gmail.com&usp=drive_fs

Thank you for your reply! I did so and followed the documentation, but had to modify a couple things, such as the serial port; instead of /dev/ttyAMA0 which was used in the documentation, I found that only /dev/ttyS0 allowed the code to run without errors.
Furthermore, my problem I am writing about now, is that it seems my camera is not processing the counter variable properly. The code provided in the documentation has an if statement at the beginning of the read_data() function which checks the condition if counter > 8:.
After a long silence from my program while running, I placed a print() statement before the condition to print what my program’s ‘counter’ value was, to which I saw it was ZERO. I am not sure why this is happening; I even tried some other GitHub code, to which I was met with the same ZERO.
Attached is a video I took of my camera setup and program. Any help is appreciated!
Video (Youtube link)

From what your video shows, you’re using a form of USB to serial instead of using raspi UART-GPIO.

The serial port you are using should be /dev/ttyUSB0.

Try this command to see what serial devices you have.

ls /dev/tty*
1 Like

Thank you, now the code progresses a little but still the counter is at 0 constantly.

Nevermind! It works! My mistake, thank you Charles!