TCP socket fails to transmit data

Discussion related to "under the hood" OpenMV topics.
bryan
Posts: 1
Joined: Fri Dec 13, 2019 2:07 am

TCP socket fails to transmit data

Postby bryan » Fri Dec 13, 2019 2:17 am

OpenMV H7 reports having sent data over a TCP socket, but it is not received by the client.

When running the mjpeg_streamer.py example, at some point a call to client.send() returns 0. Subsequent calls will eventually return a natural number, but data is not received on the client side.

It behaves this way consistently. What's the recommended way for handling this? Thanks for your help!

OpenMV Code: https://github.com/openmv/openmv/blob/m ... treamer.py
Socket Client (netcat): nc -v $OpenMV_Port $OpenMV_IP

WIFI Shield: ATWINC1500 MR210PB
Firmware Version: 19.6.1
(19, 6, 1, 19, 3, 0, 1377184)
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: TCP socket fails to transmit data

Postby iabdalkader » Fri Dec 13, 2019 6:59 am

I'll test this and get back to you.
User avatar
iabdalkader
Posts: 1193
Joined: Sun May 24, 2015 3:53 pm

Re: TCP socket fails to transmit data

Postby iabdalkader » Tue Dec 17, 2019 2:49 pm

I can't reproduce this issue, it seems to be working as expected. I noticed in your nc command you have port and ip swapped. Should be something like this:

nc -v 192.168.1.103 8080

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests