oe1wkl / Morserino-32

Morserino-32 multi-functional Morse code machine, based on ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDP Chat Server Stops Recognising Commands

Okame42 opened this issue · comments

I was having a QSO via cq.morserino.info and apparently I was disconnected half way through my over. It was mentioned by the other party that I suddenly stopped transmitting even though I was still keying.

I thought I'd try running the chat server on my own computer to see if the problem was local to me. I noticed that after a certain period of time the chat server would stop recognising HI and :BYE.

I've tracked the problem down to the 'mopp' function. Every time this function is called, the serial number is incremented by one. As soon as the serial number hits 64, the 'mopp' function no longer returns the correct encoded version of the text passed to it. This means that, no matter how many times you send HI or :BYE, the server won't recognise them. It also means that, if the client times out, the server sends a garbled mess at a random speed instead of :BYE at 30wpm.

I appeared to fix the problem by resetting the serial number to 1 whenever it reached 64 but I'm not sure whether this is sensible because I don't understand how the serial numbers are used by the morserino. Regardless. I'm not sure whether any of the above accounts for the disconnect that happened to me on cq.morserino.info. I guess it might've just been my WiFi dropping.

Please can you be a bit more specific? In which source file is the mopp function, which line number?
Thanks, Willi

Sorry about the lack of detail. There's only one file that actually contains any code so I thought you might know what I meant.

The 'mopp' function is on line 43 of m32_chat_server.py

You sent the error report to the wrong person / wrong project

I wondered whether you were the right person to contact but I didn't have a choice. There's no way to log an issue on Wojtek's Github and I thought perhaps this was the place because there is another issue open here about the UDP chat server.

flows over from 63 to 0

It didn't seem to be flowing over to zero on the chat server until I added my fix but I think that answers my question. Thanks for your help and contacting Wojtek on my behalf.