I started out the week without a straight key for TouCans. By the end of the week, I'd worked with ChatGPT to make the WiFi straight key for TouCans into something pretty cool that worked on both Windows and Chromebook. (Alsthough, Windows is one cool thing ahead at the moment, I'll get to that.)
Having decided I wasn't going to be able to get a wired straight key, i took another look at why I'd gone down the wired straight key path.
- TouCans has had a WiFi sraight key since last year. The issue is that it didn't work with the Chromebook. It was written in Python, and it was a bit more of a chore than I wanted fix it.
- Linux on the Chromebook didn't want to provide keyboard access so that a key could be pressed as a straight key.
- It also didn't want to provide speaker access, so there was no sidetone.
there wsa one last issue. Teh straight key occasionally locked me out of the keyer altoghter. A few debug messages show ed that this only happened when the number of key down and key up delay digits exceeded 800. I learned how to loop the Pico-W's server code to ensure the entire message sent to the keyer was pulled in in 800 byte chunks. That solved the lockup issue.
The next step was to see if the WiFi keyer would work with a Halikey as opposed just using a keyboard key as a straight key. I asked ChatGPT ot translate Python code written by Mark Smith into JavaScript. ChatGPT got almost all the code correct, but left the serial port sampling code out of the sampling loop. That was a simple fix, and the WiFi keyer and metronome now work with a Halikey!
By this time, I'd passed quite a bit of code to ChatGPT for contest. ChatGPT also seemed to be making more errors as time progressed. I wonder if it was a demonstraion of somethign pointed in an article that Simon Willison reviewed:
"Every model seems to get confused when you feed them more than ~25-30k tokens. The models stop obeying their system prompts, can't correctly find/transcribe pieces of code in the context, etc." --Paul Gauthier
Meanwhile, KO6BTY and I built our QRPME tuna salad senders, (iambic keyers), following along with Rex Harper's buildathon. the imabic keyer is up and running with Halikey!
It was a busy week, but a lot of fun!
Comments
Post a Comment
Please leave your comments on this topic: