Pyserial Missing Characters

I am working on project to read serial data through an RS-232 interface.

I began the project on an RPi3 with a Serial Pi Zero hat. The RPi3 is using kernel:
Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

The hat uses UART serial ports GPIO 14 (TX) and GPIO 15 (RX) as an interface. I enabled the serial interface with raspi-config. In /boot/config, I enabled UART and disabled BT with:
enable_uart=1
dtoverlay=pi3-miniuart-bt

With this configuration, I used the PySerial library to facilitate communication. Everything worked as expected.

I then wanted to move the project to Balena, but now I am only receiving half of the expected characters on the serial read.

I am on Host OS version balenaOS 2.69.1+rev1 development, supervisor version 12.3.5, and kernel info Linux d93ba8e 5.4.83-v7 #1 SMP Mon Dec 14 12:43:54 UTC 2020 armv7l GNU/Linux.

Any ideas on why switching to BalenaOS would cause dropped serial read characters??

Hello @arizzo

Welcome to the balena Forums.

The balenaOS development image runs a serial console on the UART. Please try using the production image and see whether that solves your issue.