Re: C++ TCP code differences Pi-3 to Pi-4?
toggle quoted messageShow quoted text
Hmmmm...just a guess...are you trying to use accept on the connection when it's already open?
On Mon, Sep 7, 2020 at 4:48 AM Larry K8UT <K8UT@...
Three years ago I wrote a Band Decoder freeware app that communicates using TCP packets between a Windows GUI console and a Raspberry Pi CLI controller. Has been working fine here and at a few dozen QTHs around the world. I recently designed a miniature RPi HAT board with 16 opto-MOSFET "relay" outputs, replacing the original design of 2 x 8 SainSmart relay boards.
The HAT board works on both Pi-3 and Pi-4 hardware, but on an Pi-4_8gb (my only model 4) the Pi Controller software receives an initial TCP packet from the Console and thereafter refuses to accept additional packets with an "Error on accept" at this line of C++ code:
newsockfd = accept(localSocket, (struct sockaddr *) &cliaddr, &clilen);
Any advice or suggestions on further troubleshooting would be appreciated.
Join RaspberryPi-4-HamRadio@groups.io to automatically receive all group messages.