📜 ⬆️ ⬇️

Simulation of the procedure for connecting bluetooth devices and whether there is a need for models of this kind

Hello! This year I begin to study in graduate school, at the moment I have the following task: to simulate the interaction of nodes of a self-organizing network based on relevant technologies.
And here the following questions arise:


As a trial version, I modeled the connection procedure between bluetooth devices in UML using a sequence diagram. The following is a text description of this procedure and a model based on this description.


Stage 1
The inquiry procedure allows the device to determine which devices are available, find out the addresses and synchronize.
1.1 Packets of inquiry are sent and responses are received.
1.2 If the addressee who received the inquiry packet is in the scan scan state, then he is able to receive such packets.
1.3 The recipient enters the status of the response response and sends a response packet to the sender.
After the inquiry procedure is completed, the connection can be established using the paging procedure.
Stage 2
The paging procedure implements the connection. To implement this procedure, you need an address. A device that performs the paging procedure automatically becomes the owner of this connection.
2.1 A paging packet is sent
2.2 The addressee receives this packet (in page scan state)
2.3 The receiver sends a packet response to the sender (is in the Slave Response state)
2.4 The initiator sends an FHS packet (in the Master Response state) to the addressee.
2.5 The recipient sends the sender a second packet response (in the state of Slave Response)
2.6 The receiver and the sender set the channel parameters set by the initiator (they are in the Master Response & Slave Response state)
After the connection is established, the master (master) sends a POLL packet to check if the client synchronized its clock and tuned in to frequency switching. The client can respond to any package.
')
Based on this description, the following model is constructed in the form of a sequence diagram.



Any constructive criticism is welcome. The question is very important for me, because I don’t want to waste time on wrong steps.

Source: https://habr.com/ru/post/231979/


All Articles