Serial To Get Request

SOFTWARE Last updated January 16, 2026

We are releasing our program that takes data from a serial barcode scanner and has options to:

  • Split the data to multiple serial ports
  • Send the data over http as a Get request

This program is written in Python because Python has been around for decades and will still be used in decades making it ideal for factory environments where systems rarely change.

A lama using a barcode scanner in a factory

Buy and download

Buy once and use as much as you like. You will get the source code so you can make any changes you need.

Setup steps

  1. Download and install Python on the system that you want to run this on.
  2. Install com0com on the system to run this on.
  3. Install project dependencies by running these commands:
    • python -m pip install pyserial
    • python -m pip install requests
    • python -m pip install configparser
  4. Copy these files to a folder on the computer such as C:\SerialToGetRequest
    • main.py
    • settings.ini
    • runSerialToGetRequest.bat
  5. Figure out what COM port your serial barcode scanner is using. Open Device Manager in Windows and look under Ports (COM & LPT) to see what devices are available to read from.
    • Note: Only one program can read a COM port at a time (hence why this program has the option to send the serial data to new COM ports)
  6. Configure the COM port in the settings.ini file.
Screenshot of the program running

How to run

From the command line run python .\main.py

Or to run from start up in Windows create a shortcut to runSerialToGetRequest.bat and put it in the Startup folder (Press Windows key + R to open the run window and paste in Shell:Startup).

settings.ini

[GENERAL]
BAUDRATE=9600
COMPORT=1
[SPLITTER]
SPLITTERENABLED=True
EXITPORT=3
[SERIALTOGET]
URL=http://mydomain.com/api/itemtracking
SERIALTOGETENABLED=True
LOCATION=TestLocation

[GENERAL]

These settings are for the barcode scanner that we are reading the data from.

[SPLITTER]

If you need the barcode scanner data to be sent to another Serial port set this to True and specify an unused serial port number to use.

[SERIALTOGET]

If you want to send the serial data to an http server set this to True. it will send a request in the format of: URL + "?barcodeID=" + barcode + "&location=" + location So for example: http://mydomain.com/api/itemtracking?barcodeID=H75Gy5&location=TestLocation

A cute pig using a barcode scanner in a factory
Loic Joachim profile

Loïc Joachim

Loïc Joachim is a New Zealand-based IT professional, entrepreneur, and political figure, currently serving as the Managing Director for Timeclock.Kiwi and the IT Manager for the O'Brien Group. He is also involved in politics as the Deputy Chair of the Dunedin Labour Party and is a prolific writer who shares his knowledge and opinions on technology, business, and political affairs.

We are always happy to help.
Reach out to us and we will do our best to make our employee attendance system work for you.