After spending weeks manually reading megabytes of debug logs and RS232 sniffed data, after so much soldering, doc reading (albeit a bit too late), I’ve now tapped the RS232 lines and caught the signal in transit.
Now I know. 9600bps. 1V amplitude, centered on 0V.
I will go to sleep happy. Tomorrow is another day. It is the day I measure the amplitude of my USB RS232 signal, confirm that it isn't the same at all, and make a plan to fix it. Tomorrow gives me hope. Tomorrow is beautiful.
A part of me feels such shame at this code, yet another is giggling at the sight of it working
Context: NSFileCoordinator has synchronous methods for coordinated file access, but those are very limited in usage. For more ease wrapping it up I decided to use the general purpose coordinate(with: [NSFileAccessIntent]) variant, but this one is not synchronous. I also need the coordinated block to run on the same thread the method was called on. Ugly, but strangely functionnaly