Browsing Tag
iot

The Honeywell QR reader will be our USB serial device to connect.

Recently I’m working on a project where i need to connect two Honeywell QR readers. The model to connect is the YJHF600 through the usb serial communication with a Raspberry Pi. For this i need to get the QR code scanned using golang as code language.

I will do a reader test of the QR code with the python language because the fastest to code and to prototype with this language

comunicación usb serial con Python y Raspberry PI

Honeywell QR reader – Raspberry Pi

How the usb communication for Honeyweel readers works?

Like most barcode readers, QR readers often emulate a keyboard and transmit the scanned information as if had been typed. In other words, our device to which we connect the readers usually see them as if they were a qwerty keyboard.

Some readers can be configurated as usb serial communication. This is the case if the Honeywell YJHF600 QR reader. For this reader all we have to do is scan the configuration code provided in the Honeywell reader manual with the QR readers and they will be automatically configured to generate this serial usb communication.

Testing the usb serial commutication between our Raspberry Pi and our Honewell Qr reader

Since we have configured and connected our serial usb device on the Raspberry Pi, we execute the command

Go en Raspberry Pi

How to setup the default GO language version of the Raspberry Pi with the APT INSTALL command

Setup the Go languague on the raspberry Pi is usually something very easy to do when we are using the apt package manager of the Raspberry Pi. We just need to execute:

sudo apt update
sudo apt install golang

However, the default version of Golang for the Raspberry Pi is not the last version of GoLang. And by this we will to unistall this version in case we had installed it and we are going to setup the last version from the official website.

sudo apt remove golang
sudo apt-get autoremove
source .profile

How to setup the last version of Go language from him source code

Once we have use the above commands and therefore we have deleted the Golang version loaded with the APT package manager. Now we will download and setup the last version of Go language from the golang official website.