主权项 |
1. A system to dynamically detect and form a master slave network, the master slave network comprising:
a server for broadcasting at least one packet in a unified data packet (UDP) format; a first group of sensor devices, the first group of sensor devices comprising at least one sensor device possessing a booting module, a response module, a wired connectivity and a wireless connectivity; a second group of sensor devices, the second group of sensor devices comprising at least one sensor device possessing a booting module and a wireless connectivity; receiving at least one UDP packet broadcast by the server by the first group of sensor devices, and booting up at least one sensor device in the first group of sensor devices as a SLAVE device, wherein a SLAVE device is a sensor device which is controlled by a MASTER sensor device; sending a response to the server from the first group of sensor devices, wherein the response comprises a MAC address associated with a sensor device in the first group of sensor devices; responding, by the server, to at least one device in the first group of sensor devices with a server IP address and a first identification code; receiving, by at least one device in the first group of sensor devices, the server IP address and the first identification code, with said device declaring itself as a MASTER thereupon, wherein a MASTER device is a sensor device which controls at least one SLAVE sensor device; authenticating, by the MASTER device, at least one device in the second group of sensor devices as a SLAVE device by receiving and decoding a data packet from the at least one SLAVE sensor device; and updating, by the MASTER device, a maintained MASTER routing table with a unique identifier and a MAC address of at least one device in the second group of sensor devices, and establishing a MASTER SLAVE network thereby. |