In the HSB document,I noticed that there is the following description in the docs/user_guide/ptp.md documentIn camera application, synchronized timestamp can be used to generate a synchronized. Vertical SYNC strobe to align the exposure across multiple cameras on the network.VSYNC is currently supported external to the HSB IP and needs a FPGA GPIO pin that routes to the camera sensor VSYNC pin..I configured vsync based on the single_network_stereo_vb1940_player.py file, and observed the following printout when starting up.—–PtpSynchronizer: Setting up PTP synchronization with frequency 30 HzAfter printing, I found this part of the code in src/hololink/core/hololink.cpp
Could you please tell me if my HSB currently has a 30Hz sync signal output? And which GPIO pin corresponds to the vsync signal? How should I utilize the custom GPIO pins to achieve this function?
The Lattice CPNX100-ETH-SENSOR-BRIDGE or Microchip MPF200-ETH-SENSOR-BRIDGE or the Leopard Imaging VB1940 Eagle Camera?
Depending on the platform, the specific GPIO pin where VSYNC is routed is different. If you’re using the VB1940 Eagle Camera, the VSYNC is already directly routed to the Camera Sensor.
You can test that your camera is synchronized by using “–print-time” argument when calling “single_network_vb1940_player.py”
The default mode is unsynchronized so you should see that the timestamp for right and left camera don’t match.
Once you pass the argument “–trigger” this enables VSYNC, you will see that the right and left camera timestamp are synchronized.
If you’re using Lattice platform, you can connect to the GPIO shown below and see the 30Hz on the scope.
On the Lattice board, the VSYNC is also traced to the Jetson Camera Connector, pins called FRSYNC#1-4
If you’re using the Jetson Camera Connector on Lattice board, please let me know, you’ll have to update the holoscan slightly to output the VSYNC to the Jetson.
Hi,Thank you for your answer. I am using the Lattice platform and I can measure the sync signal at the pin you mentioned.But now I want to use Jetson Camera Connector for VSYNC. It seems that I haven’t found what you mentioned pins called FRSYNC#1-4 On the schematic diagram. Could you please check if the pin labeled “FRSYNC#1-4” corresponds to the pin of the J9 connector? Additionally, if we want to connect to the other pin of the J9 connector, does it require modifying the holoscan FPGA program?
ok,thanks.
The camera I’m using is connected to pin 103 on the J9 board - cpro_cam_spi_mosi, and pin 117 - cpro_cam_spi_msck. I will first modify the code as you suggested, and then check if there is a VSYNC signal generated by CPRO_CAM_GPIO3-6.