Hardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx EngineeringHardware, Software & Product Development | Sparx Engineering
  • Home
  • Expertise
    • Software Engineering
    • Electrical Engineering
    • Chemical Products and Services
    • Biomedical Engineering
    • Mechanical Engineering
    • Production Management
    • Automation
    • Industrial Design
  • Blog
  • Careers
  • About Us

Blog

Reading line-by-line from a serial port (or other byte-oriented stream)

By Ben Voigt | Software | 10 comments | 16 March, 2017 | 7

With many .NET developers moving from the traditional (and broken) System.IO.Ports.SerialPort DataReceived event handling to either the correct and more efficient BaseStream.BeginRead / BaseStream.EndRead pair I promoted in my last post or the newer BaseStream.ReadAsync method introduced in .NET Framework 4.5 along with the C# async and await keywords, a common complaint is that BaseStreamRead more

Capturing Keypress With Windows Message Filter

By bjohnson | Software | 3 comments | 16 October, 2014 | 0

Recently I ran in to a situation where I had to capture keystrokes at the application level and launch an action based on the keystroke.  I tried using the ‘keyPress’ event for the main form, but it was hit or miss based on which control had the focus.  The form was very large with manyRead more

If you *must* use .NET System.IO.Ports.SerialPort

By Ben Voigt | Software | 173 comments | 7 May, 2014 | 30

As an embedded developer who writes desktop software mostly for configuration of, and data download from, peripheral devices, I use serial data streams a lot.  Mostly USB virtual serial posts from FTDI, but also the USB Communication Device Class and real 16550-compatible UARTs on the PCI bus.  Since looking at data through an in-circuit emulatorRead more

An example of what higher-kinded types could make possible in C#

By dfohl | Software | 3 comments | 10 June, 2013 | 1

If you’re like me, you spend a lot of time in Visual Studio cranking away at C# code.  You follow the updates to the language with each release, learn the new things that are possible and how it can make your life easier.  But you also investigate other languages in your free time and seeRead more

X.509 Self-Signed Certificate for Cryptography in .NET

By rajaz | Software | 0 comment | 1 April, 2013 | 0

Recently, I needed to secure the communication between a .NET server application running on a Windows PC and a client application running on an embedded device. The solution was to use SSL to secure the communication and .NET provides SslStream class for that purpose. SslStream instance takes an X.509 certificate file to provide two aspectsRead more

Recent Tweets

  • #Houston ranks among fastest growing #tech hubs amid the pandemic, report finds https://t.co/nYhydlOPP0

    2 years ago
  • RT  @SpaceX : Docking confirmed – Crew Dragon has arrived at the  @space_station ! https://t.co/KiKBpZ8R2H

    3 years ago
  • RT  @SpaceflightNow : SCRUB. SpaceX’s launch director has announced there will no launch today due to bad weather at the Kennedy Space Center…

    3 years ago
  • Home
  • Expertise
  • Blog
  • Careers
  • About Us
Sparx Technologies, LLC. dba Sparx Engineering © 2009 - 2022 | All Rights Reserved
  • Home
  • Expertise
    • Software Engineering
    • Electrical Engineering
    • Chemical Products and Services
    • Biomedical Engineering
    • Mechanical Engineering
    • Production Management
    • Automation
    • Industrial Design
  • Blog
  • Careers
  • About Us
Hardware, Software & Product Development | Sparx Engineering