C
C
click_f2016-04-24 21:33:44
Bluetooth
click_f, 2016-04-24 21:33:44

How to write your own wireless protocol?

There are theoretical ideas about the operation of networks, but it is not clear from which side to approach the solution of a practical problem. It is required to simply transfer data from device A to device B via Wi-Fi, or at least BlueTooth. I would like to see the finished implementation before reinventing the wheel.
What ready-made solutions, libraries, programs exist?
A slightly off-topic question: is it possible to use an ssh connection between devices for this?
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-04-24
@click_f

so let's decide what you want to do.
The wireless protocol is just the same WiFi (ieee 802.11 standards) and BlueTooth. These protocols describe the protocols at the physical layer of the OSI model. That is, the "wireless communication protocol" is mega complicated and you want to do not.
To do this, you must establish a data channel between the two devices. For wifi, this means connecting them into one network or connecting them to each other via wifi-direct. For bluetooth - pairing devices.
When both devices are connected to the same network (via wifi, ethernet or something else - it doesn't matter) - the operating system will deal with all the most difficult things. You, on the other hand, have 2 transport protocols, TCP and UDP, I do not want to use. Or any ready protocol for data transfer over TCP/UDP.
In the case of wifi direct or bluetooth, there are examples on github of how to organize communication between devices between themselves.
SSH is an application layer protocol that runs on top of TCP. So in the case of connecting to the same network - yes. There is also netcat, which is a little easier if you need to send simple data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question