I run a mqtt server on raspberry pi 3B together with a mqtt client on android handset. A data sequence will be transferred from the server to the client by TCP.
I enabled ip over bluetooth on raspberry pi 3B following the answer of How can I set up a bluetooth PAN connection with a Raspberry Pi and an iPod?
However, the transfer speed is much slower than wifi connection. It took about 5 seconds to transfer a length 8192 integer sequence, while wifi costs about 0.5 seconds.
This is how I implemented mqtt TCP https://stackoverflow.com/questions/56165209/mqtt-transfer-speed-much-slower-when-data-size-increases-on-tcp.
I cut off the wifi power with rfkill block wifi
, and move the handset right next to raspberry pi, which improve the transfer speed a little. But it still takes about 3 seconds to transfer a length 8192 integer sequence.
I am wondering whether the setup of ip over bluetooth is not right, or something else I have missed.
Please advise, thanks in advance.