The smartphone code is an Android Studio project of the real time demo application.
The project was originally built with Android Studio Arctic Fox 2020.3.1 Patch 2, and has been tested on Samsung Galaxy S9 phones.
Reproducing the demo video will require two Android smartphones. Waterproof pouches would be needed to do testing underwater. When sending messages, please wait for about 5 seconds before sending the next message.
We have documented areas of the code that correspond to key system components in our paper:
System component | Link to code |
---|---|
Protocol sequence logic | Code |
Preamble generation (Alice) | Code |
SNR estimation (Bob) | Code |
Frequency band selection (Bob) | Code |
Encoding feedback (Bob) | Code |
Decoding feedback (Alice) | Code |
Encoding data packet (Alice) | Code |
Decoding data packet (Bob) | Code |
Protocol sequence logic
Encoding and decoding data packets