Tag Archives: Windows

Simple communication with a TCP/IP device using Python

I had an interesting correspondence recently with Wim Bruyn from Holland who was using my SerialSend program to implement a remote-controlled relay system for switching appliances on and off automatically. The relays Wim is using (ETH002) are actually controlled via … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | 16 Comments

Sending a key to a window that’s not in focus (C program)

In a previous post, I showed how a C program can simulate a keystroke in Windows using SendInput. I also posted a subsequent example showing how to simulate a keypress with the Control key included (e.g. Ctrl+V). In this post … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , , , , , | 12 Comments

Writing bytes to a serial port in C

This is a (relatively) simple example of a C program to send five bytes to a serial port in Windows. In this case, I’m sending the five characters “hello” via COM22 at 38400 baud, but of course the program can … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , | 43 Comments

SerialSend – a Windows program to send a short text string via serial port

NOTE (18-12-2012): Since posting this, I have updated SerialSend to add some additional useful features and make more robust. The updated version is available from the SerialSend page. When I’m building robots, I sometimes find it useful to send short … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 29 Comments

Ultra-simple machine vision in C with RobotEyez

I use PGM image files a lot in my Engineering Computing class because the provide a really easy way for novice programmers to get started with image processing in C. This file format stores greyscale images in plain text and … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , | 85 Comments

CommandCam – a DirectShow command line cam image grabber for Windows

EDIT (24-11-2011) : Since publishing this post, I have found myself making frequent updates to the CommandCam program, so I’ve created a dedicated page for it instead, with up-to-date information and download links. Get CommandCam here (binary download and source … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , | 24 Comments

One-shot file transfer from the command line using netcat

Netcat is an extremely useful and versatile command line utility for computer networking. I’ve used it occasionally over the last few years for simple network operations like file transfer or getting two applications to talk to each other over the … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment