Geeks With Blogs

The Life and Times of a Dev Yes, we're really that weird Serial Port
XModem Implementation
Today, I had to write an XModem implementation to upload fonts to an ImTech Mark 605 print controller. The binary upload wasn’t working as expected, which left the XModem implementation, which does seem to work as expected. These print controllers are really nice and are enabling us to do some pretty cool stuff, which I can’t describe here. Before creating my own implementation, I spent quite a bit of time searching. The stuff you find on XModem tends to not be terribly helpful. Eventually, I stumbled ......

Posted On Thursday, December 10, 2015 4:48 PM

Virtual Com ports
In the hardware world, much of the communication still happens over RS232 or RS485 serial ports. Unit testing this can be a challenge. To help with that, I’ve created a custom SerialPort wrapper, which, among other things, helps with multiple threads trying to hit the serial port at the same time. When you’re iterating over actors, this is a key bit of functionality that needs to happen. Because I have this class injected, I can easily substitute a mock to the things that actually do serial communication. ......

Posted On Thursday, December 11, 2014 5:36 PM

Copyright © Robert May | Powered by: GeeksWithBlogs.net