Test of MQTT performance for device communication

As alternativ to the selfmade UDP based protocol to transfer video, position and all the other data from a smartphone, the TCP based MQTT has some advantages on the paper:

  • Encrypted communication possible (SSL)
  • Proven protocol. Early version started more than 10 years ago.
  • Standard protocol which means there are a couple of implementations
  • Similar approach to ROS (robot operating system)
  • Free server/broker available

But to check if the performance is sufficient there has to be a test. For the test the HiveMQ is used local on the Mac and also the receiving program which is created with processing (lib qatja used for MQTT). On the other side a small android app is created which use eclipse paho library to transfer camera preview images (10 fps).

The performance is not bad and the implementation was easy to do with these nice libs.

Test of MQTT performance for device communication