utat-ss/HERON-lib-common

Transceiver simulator on laptop

Closed this issue · 1 comments

We need to develop a Python program that runs on a laptop and uses Pyserial to send/receive UART messages, mimicking the transceiver's behaviour to make testing easier. This should be developed in the test-software repository.

For now, ignore the AX25 packetization format and just send the data (message contents) we want.

Minimum functionality:

  • The user can type a raw message (sequence of bytes) which the laptop will send over UART.
  • When the laptop receives a message from UART, it outputs the raw bytes to the screen.

Here is a general idea of the program should work:

Command list:
1. Send raw message
(user types 1)
Enter raw message: (user types) 00:05:1A:fF:37:78:22

(laptop receives UART)
Received raw message: 00:03:1E:7E:D3

The raw bytes format should represent all bytes in hex with colons in between. It should allow for letters A-F to be input as either uppercase or lowercase.

Future steps:

  • The user can select which type of command to send, enter the individual components when prompted, and the program constructs the message.
  • The program can parse (understand) received messages, then display data nicely formatted and converted.

We'll need to implement more commands in the future, but the current version is working for most of the core commands and usable for OBC/integration testing.