STM32 Key Part 2 — Chat application

This is the second part of the STM32 series. For your convenience you can find other parts in the table of contents in Part 1 – DES implementation

Today we are going to write very simple Java application to be able to see the traffic and communicate with our STM32. Let’s begin.

Implementation

We assume that our computer has an address 192.168.1.1 and that the STM32 uses 192.168.1.125. For encryption we use port 50000, for decryption 50001. Below are all required files:

MainWindow.form designer:

As a side note: I remember I wrote some unit tests for converting text to bytes and hexes but apparently I lost it. It’s been 5 years since I was working on this project.

Summary

Next time we will see very simple code for handling network packets on STM side.