A mesh networking system for communication between multiple devices, containing the following:
- master device (MD) designed with the possibility of performing the following actions
- activating of the mesh network organization function;
- creating a network name, a pin code to access the network;
- forming a data packet (DM) for connecting the lower-level devices, wherein the data packet (DM) containing at least an encrypted key to connect to the master device (MD);
- transferring the data packet (DM) to at least one device (N) connected directly to the master device (MD),
- and the master device (MD) contains a specified limit on a number of connections (L) of devices thereto;
- at least one device (N) designed with the possibility of direct connection to the master device (MD), and when connected to the master device (MD), on the device (N) entering name of the device (N), network pin code and transmits a data packet (DN) containing a return key, calculated on the basis of a data of the device (N) and an information received in the data packet (DM) from the master device (MD);
- and
- in response to the data packet (DN) received from the said device (N), the master device (MD) calculates a key for connection on the basis of the data of the device (MD) and the information from the data packet (DN) received from the device (N), compares the received keys and, if the said keys coincide, establishes a permanent connection with the device (N), and such device (N) changes the status to the slave device (SD);
- wherein
- after reaching the limit (L) on the number of connections when trying to connect a new device (N) in excess of the limit (L) mentioned above, the master device (MD) sends a command to the slave devices (SD) to activate the router/repeater mode, and on the basis of the command the first lower level (LL1) devices (D1) of the mesh network (MN) is formed by changing the status of slave devices (SD) connected directly to the master device (MD) to a status of the activated devices (AD), and each new device (N) when trying to connect to the mesh network being connected to the device of the line (D1), which in response to the connection of a new device (N) changes its status to the slave device (SD), connected through one of the line routers/repeaters (D1) of the first lower level (LL1) to the master device (MD);
- and
- after reaching the limit of the number of connections (L) when trying to connect a new device (N) over and above the limit for the line (D1), the devices (D1) close the possibility of connecting new devices (N), while the devices (N) request the connection from the master device (MD), which in response to the above requests from the devices (N) analyzes the mesh network map and sends a command to the slave devices (SD) connected to devices (D1) of the line (LL1) to activate the router/repeater mode, on the basis of the command mentioned above, wherein the second lowest level (LL2) devices (D2) of the mesh network (MN) being formed by changing the status of the slave device (SD) to the activated device (AN), and each new device (N) being connected to the device (D2) when trying to connect to the mesh network (MN), and the line device (D2) in response to the connection of a new device (N) changes its status to a slave device (SD) connected through one of the routers/repeaters (D2) of the second lower level (LL2) to the router/repeater (D1) of the first lower level (LL1) connected to the master device (MD).