|Don't want to take to much real estate here in the lounge so I'm editing my post to add this:
Gangs in the Garden - YouTube[^]
Don't know how you feel about Black Moth Super Rainbow. Probably depends in part on your age and it helps to be a bit out there in the first place if you're going to enjoy it. It's perfect hacking music, IMO. I like coding to it because they use vocals as background music rather than trying to distract me from my code with articulated lyrics.
___ SNIP ___
After coming off of a run of a bad few days in terms of development I did a thing.
I have a device that can connect via USB but only as a virtual COM port. It can't be a HID device or anything. All communication is serial, RS232 style (even though it's USB)
I have an application that works with it, and the bluetooth stack I was using prior exploded and regressions ate my BLE code. So I wanted to make it work over serial.
I did this in C# in the app, with C++ on the MCU end.
I have created a serial negotiation system that
A) Allows the application to automatically detect a device, and which COM port it's on with no user intervention. Only valid devices will be detected.
B) Allows the serial port to *also* be used at the same time for logging output messages. A filter can be applied that would only produce log messages.
So now the silly thing is plug and play *and* it still allows me to write debug spew to the serial port without interfering with the application's serial comms.
I do it by seeding my commands with characters outside of the ASCII 7-bit range to signal a command stream. This means you get periodic "garbage" in your logs, but like i said it can be filtered out.
Anyway, after the past few days of banging my head against the wall and making rookie mistakes I pulled a rabbit out of my hat. Woo!
To err is human. Fortune favors the monsters.
modified 2-Jul-22 5:41am.