Open RobiTobi opened 2 years ago
This issue has been mentioned on OpenMV Forums. There might be relevant details there:
https://forums.openmv.io/t/portenta-h7-and-vision-shield-ethernet-doesnt-work/7212/5
I also figured out, that some TCP Ports are reused. If this happend, there is no transmission and no image in the pygame. This can happen several times in a row. It would be nice, if the port could be defined. Instead of random using ports from a list.
Hi, I have to update the RPC code since the way sockets work has changed. Doing the RTSP scripts now and getting that bug free and then we will update the RPC one.
If I run the example image_transfer_jpg_as_the_remote_device_for_your_computer.py on the camera and rpc_image_tansfer_jpg_as_the_controller_device.py on PC, with ethernet connectivity, I get just one or none Image in the pygame window. One image if I run call back
img = get_frame_buffer_call_back("sensor.GRAYSCALE", "sensor.QVGA", cutthrough=False, silent=True)
then the pygame window freezes with no response. I get none picture (black image and 0 FPS) if I run call backimg = get_frame_buffer_call_back("sensor.GRAYSCALE", "sensor.QVGA", cutthrough=True, silent=True)
Steps to reproduce the behavior:
I expected to get image by image with every call, which is then shown in the pygame window.
After some testing, it turned out, that putting the interface init from top to the while loop, it gives better result. I get multiple images in low speed. But just with this call back:
img = get_frame_buffer_call_back("sensor.GRAYSCALE", "sensor.QVGA", cutthrough=False, silent=True)
If I try
cutthrough=True
I get no image, as I mentioned before. After switching back tocutthrough=False
there is the same behavior (no image). If you unplug and reconnect the H7 via USBcutthrough=False
it is working again.PC script:
Camera script:
Wireshark with default example: Filter:
(ip.src==192.168.1.100 and ip.dst==192.168.1.41) or ( ip.src==192.168.1.41 and ip.dst==192.168.1.100)
cutthrough=True cutthrough=FalseWireshark file with interface init in while loop:
Interface init in while loop
Initial posted here: https://forums.openmv.io/t/portenta-h7-and-vision-shield-ethernet-doesnt-work/7212