Networking method, system and computer program product among intelligent devices
Patent Information
- Application Number
- CN202410245111.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-05
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2044-03-05
AI Technical Summary
[0003]本公开要解决的技术问题是为了克服现有技术中原2.4G通信模块的老设备和新BLE通信设备无法兼容联动,造成设备功能缺失的缺陷,具体提供了一种智能设备间的组网方法、系统及计算机程序产品
[0048]本公开的积极进步效果在于:通过响应待接入设备的设备类型,对当前的设备网络进行动态调整,并控制目标设备根据待接入设备的设备类型确定通信模式,以与待接入设备进行连接,从而实现在不增加额外成本情况下,利用新设备的BLE通信模式兼容老设备的2.4G联动,并通过智能设备间自组网调整机制,保证设备间本地通信链路和云端通信链路,实现新老设备的兼容联动。
Smart Images

Figure CN120603075B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to networking methods, systems and computer program products for smart devices. Background Technology
[0002] Before the widespread use of LAN-based communication between smart devices, 2.4G (a wireless technology) was the primary communication method. However, with the development of IoT chips and the gradual maturation of BLE (Bluetooth Low Energy), WiFi (mobile hotspot) + BLE combo communication modules have become the mainstream communication modules in the market. LAN-based communication technology has also shifted from the original 2.4G network linkage to the more mature and standardized BLE linkage method. However, as device manufacturers gradually replace old solutions with new ones, incompatibility issues inevitably arise between older devices using the original 2.4G communication modules and devices using the new BLE solutions, resulting in functional deficiencies. Summary of the Invention
[0003] The technical problem to be solved by this disclosure is to overcome the defect in the prior art that old devices with original 2.4G communication modules cannot be compatible and linked with new BLE communication devices, resulting in the loss of device functions. Specifically, it provides a networking method, system and computer program product between smart devices.
[0004] This disclosure solves the above-mentioned technical problems through the following technical solution:
[0005] According to a first aspect of this disclosure, a networking method for intelligent devices is provided, the networking method comprising:
[0006] Receive networking requests from external devices;
[0007] The device type corresponding to the external device is determined based on the communication module of the external device;
[0008] When the external device is a first type of device, a target device is determined based on a plurality of second type devices in the network, and the target device is controlled to connect to the external device in a first communication mode;
[0009] When the external device is a device of the second type and the target device is already present in the network, the device roles of the external device and several devices of the second type are determined based on preset rules, and the network connection is determined based on the device roles;
[0010] The target device is the second type of device connected to the first type of device.
[0011] Preferably, the step of determining the target device based on a plurality of second-type devices in the network and controlling the target device to connect to the external device in a first communication mode includes:
[0012] When only one device of the second type exists in the network, the second type device is determined to be the target device, and the target device is controlled to connect to the external device in the first communication mode and to connect to the network device in the second communication mode.
[0013] When multiple devices of the second type exist in the network, it is determined whether the target device exists among the devices of the second type.
[0014] If so, then control the target device to connect to the external device in a first communication mode;
[0015] Otherwise, based on the preset rules, the device roles of multiple second-type devices are determined, and the device roles are controlled to be the second-type devices corresponding to the target device to connect with the external device in the first communication mode.
[0016] Preferably, the device roles include a master device, a slave device, and the target device;
[0017] The master device is connected to the network device in a second communication mode;
[0018] The slave device is connected to the master device in a third communication mode;
[0019] The target device is connected to the first type of device in the first communication mode and to the master device in the third communication mode.
[0020] Preferably, the preset rules include:
[0021] Obtain the preset role corresponding to each of the second type of devices;
[0022] When there is only one first preset role among the preset roles, the second type device corresponding to the first preset role is determined to be the master device, and the remaining second type devices are all slave devices.
[0023] Obtain the network tradeoff value corresponding to each of the slave devices, and determine the slave device corresponding to the smallest network tradeoff value as the target device.
[0024] Preferably, the preset rules include:
[0025] Obtain the preset role corresponding to each of the second type of devices;
[0026] When the first preset role is not found among the preset roles, obtain the network tradeoff value corresponding to each second type of device;
[0027] The second type device corresponding to the largest network tradeoff value is identified as the master device, the second type device corresponding to the smallest network tradeoff value is identified as the target device, and the rest are identified as slave devices.
[0028] Preferably, the preset rules include:
[0029] Obtain the preset role corresponding to each of the second type of devices;
[0030] When there are multiple first preset roles among the preset roles, obtain the network tradeoff value corresponding to each second type of device;
[0031] The preset role is determined to be the second type device corresponding to the largest network tradeoff value among the first preset roles, which is the master device;
[0032] The second type device with the smallest network tradeoff value, excluding the master device, is determined to be the target device, and the rest are slave devices.
[0033] Preferably, the step of obtaining the network tradeoff value includes:
[0034] Obtain the preset importance and network signal strength for each device of the second type;
[0035] Based on the preset importance and the network signal strength, a tradeoff value is obtained for each of the second type of devices.
[0036] Preferably, the networking method further includes:
[0037] The target device performs whitening processing on the data to obtain whitened target data, and sends the target data to the first type of device;
[0038] And / or,
[0039] The first communication mode and the third communication mode of the target device operate in a time-division mechanism.
[0040] According to a second aspect of this disclosure, a networking system for intelligent devices is provided, the networking system comprising a receiving module, a determining module, and a control module:
[0041] The receiving module is used to receive networking requests from external devices;
[0042] The determining module is used to determine the device type corresponding to the external device based on the communication module of the external device;
[0043] The control module is used to, in response to the external device being a first type of device, determine a target device based on a plurality of second type devices in the network, and control the target device to connect to the external device in a first communication mode;
[0044] The control module is also configured to, in response to the external device being a second type of device and the target device already existing in the network, determine the device roles of the external device and several second type of devices based on preset rules, and determine the network connection based on the device roles;
[0045] The target device is the second type of device connected to the first type of device.
[0046] According to a third aspect of this disclosure, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the networking method described in the first aspect of this disclosure.
[0047] Based on common knowledge in the field, the preferred conditions described can be combined arbitrarily to obtain the preferred embodiments of this disclosure.
[0048] The positive and progressive effects of this disclosure are as follows: by responding to the device type of the device to be connected, the current device network is dynamically adjusted, and the target device is controlled to determine the communication mode according to the device type of the device to be connected in order to connect with the device to be connected. This enables the use of the BLE communication mode of the new device to be compatible with the 2.4G linkage of the old device without increasing additional costs. Furthermore, through the self-organizing network adjustment mechanism between intelligent devices, the local communication link and the cloud communication link between devices are guaranteed, thus achieving the compatibility and linkage of new and old devices. Attached Figure Description
[0049] Figure 1 This is a flowchart of the networking method between smart devices in Embodiment 1 of this disclosure;
[0050] Figure 2 This is a schematic diagram of the first network among smart devices in Embodiment 1 of this disclosure;
[0051] Figure 3 This is a schematic diagram of the second network between smart devices in Embodiment 1 of this disclosure;
[0052] Figure 4 This is a schematic diagram of the third network between smart devices in Embodiment 1 of this disclosure;
[0053] Figure 5 This is a schematic diagram of the fourth network among smart devices in Embodiment 1 of this disclosure;
[0054] Figure 6 This is a schematic diagram of the fifth network among smart devices in Embodiment 1 of this disclosure;
[0055] Figure 7 This is a schematic diagram of the sixth network among smart devices in Embodiment 1 of this disclosure;
[0056] Figure 8 This is a schematic diagram of the networking process between smart devices in Embodiment 1 of this disclosure;
[0057] Figure 9 This is a schematic diagram of the networking system modules between smart devices in Embodiment 2 of this disclosure. Detailed Implementation
[0058] The present disclosure is further illustrated below by way of embodiments, but the present disclosure is not limited to the scope of the embodiments described herein.
[0059] Example 1
[0060] In a specific embodiment of this disclosure, a networking method for intelligent devices is provided, such as... Figure 1 As shown, the networking method includes:
[0061] S1, Receive networking requests from external devices;
[0062] S2. Determine the device type of the external device based on the communication module of the external device;
[0063] S3. In response to the external device being a first type of device, determine the target device based on several second type devices in the network, and control the target device to connect with the external device in a first communication mode;
[0064] S4. In response to the fact that the external device is a second type of device and the target device already exists in the network, determine the device roles of the external device and several second type devices based on preset rules, and determine the network connection based on the device roles.
[0065] The target device is a second type of device that is connected to the first type of device.
[0066] Specifically, new smart kitchen appliances typically feature a WiFi + BLE combo communication module, while older smart devices only have a 2.4G communication module. Since WiFi, BLE, and 2.4G all operate within the ISM (International Telecommunication Union Radiocommunication Sector) channel range of 2400MHz to 2483MHz, the hardware baseband and RF (radio frequency) of the combo communication module can physically communicate with the 2.4G communication module. Therefore, this implementation sets up a working mode for the combo communication module based on the older 2.4G communication module, enabling the BLE communication mode within the combo module to switch the RF_PHY layer (an interface that calls the underlying 2.4G transceiver) to the same operating frequency as the 2.4G communication module for data transmission and reception in the 2.4G working mode. The first type of device is the older device with only a 2.4G communication module, and the second type of device is the new device with a combo communication module.
[0067] When a device requests to access the network, it is necessary to determine whether it is an old or new device based on the communication module of the device. If the communication module of the device is a 2.4G communication module, it can be determined that the device is an old device. If the communication module of the device is a combo communication module, it can be determined that the device is a new device.
[0068] When the device to be connected is an older device, a target device needs to be identified among the new devices in the current network to connect with the device to be connected. The target device is a new device equipped with a combo communication module for connecting with the older device. After identifying the target device, the RF_PHY layer (which calls an interface of the underlying 2.4G transceiver) of the target device's combo communication module in BLE communication mode is switched to the same operating frequency as the 2.4G communication module, thereby establishing the connection between the target device and the device to be connected.
[0069] When the device to be connected is a new device and the target device already exists in the network, a new device in the network is triggered to enter pairing mode with the device to be connected. This is achieved by switching the communication modules of both the new device and the device to be connected to "BLE+2.4G" communication mode, and after pairing interaction, selecting BLE communication mode to complete the pairing, thus completing the network access for the device to be connected. Since BLE LAN devices support multi-network interconnection, network reorganization is required after the device to be connected joins the network. Therefore, the device role corresponding to each new device in the current network after the device to be connected joins the network can be determined according to preset rules, and network reorganization can be performed based on the determined device roles.
[0070] This implementation dynamically adjusts the current device network in response to the device type of the device to be connected, and controls the target device to determine the communication mode according to the device type of the device to be connected in order to connect with the device to be connected. This achieves compatibility between the BLE communication mode of the new device and the 2.4G linkage of the old device without increasing the additional cost. Furthermore, through the self-organizing network adjustment mechanism between smart devices, the local communication link and the cloud communication link between devices are guaranteed, thus achieving compatibility and linkage between the new and old devices.
[0071] In one specific implementation, step S3 includes:
[0072] S31. In response to the fact that there is only one second type device in the network, determine the second type device as the target device, and control the target device to connect to the external device in the first communication mode and to connect to the network device in the second communication mode.
[0073] S32. In response to the presence of multiple second-type devices in the network, determine whether the target device exists among the second-type devices;
[0074] If yes, proceed to step S33; otherwise, proceed to step S34.
[0075] S33. Control the target device to connect to the external device in the first communication mode;
[0076] S34. Based on preset rules, determine the device roles of multiple second-type devices, and control the device roles to be the second-type devices corresponding to the target device to connect with the external device in the first communication mode.
[0077] Specifically, when the device to be connected is an older device, it is necessary to determine how many new devices exist in the current network. If only one new device exists in the current network, then pairing mode is triggered between that new device and the device to be connected. For example... Figure 2 As shown, when there is one new device A in the current network, the pairing mode between the new device A and the device to be connected is triggered. After the new device A enters the pairing mode, its communication module switches to the "BLE+2.4G" communication mode. After receiving the data transmitted by the 2.4G communication module of the device to be connected, the pairing is completed. Since there are only two devices in the network at this time, the new device A adjusts its combo communication module to the "WiFi+2.4G" communication mode. It connects to the device to be connected through the 2.4G communication mode and connects to the network device through the WiFi communication mode, thus realizing a complete link between the local area network and the external network.
[0078] Of course, if there is only one new device in the current network, and that new device is already connected to several older devices, when the device to be connected is an older device, the new device in the current network will also switch its communication module to "BLE + 2.4G" communication mode to pair with the device to be connected, thus enabling the device to join the network. The specific pairing method is as described above and will not be repeated here. After the device to be connected is connected to the network, the current network will consist of the new device connecting to network devices via WiFi communication mode and connecting to multiple older devices via 2.4G communication mode.
[0079] If multiple new devices exist in the current network, it is necessary to determine whether any of these new devices are target devices that connect to existing devices. Since 2.4G pairing networks are prone to communication interference, this specific implementation uses only one target device to connect to all existing devices to avoid such interference. Therefore, if a target device already exists in the current network, it directly enters pairing mode to connect to the device to be accessed. If no target device exists, it means that no existing devices are connected in the current network. When initially connecting to an existing device, one of the multiple new devices needs to be selected as the target device based on preset rules to connect to the device to be accessed.
[0080] When a target device completes 2.4G pairing with a device to be connected, the current pairing data count 'n' is recorded, which represents the number of existing devices connected. A higher 'n' value indicates a higher priority for the target device to continue using the 2.4G communication mode. Since only one target device is selected for 2.4G communication mode compatibility, the 'n' values for each new device in the network will not be equal. If all new devices have an 'n' value of 0, it means there are no existing 2.4G devices in the network, and all new devices can select the WiFi module. If a new device has an 'n' value that is not 0, that device will continue to use the 2.4G communication mode.
[0081] like Figure 3 As shown, there are new device A and new device B in the current network. New device B is connected to old device A, that is, new device B is the target device. Therefore, the pairing mode between new device B and the device to be connected is triggered. New device B connects to the device to be connected through 2.4G communication mode.
[0082] like Figure 4 As shown, there are new device A and new device B in the current network. There is no target device that connects to the old device. That is, the device to be accessed is an old device that is accessing the network for the first time. Therefore, it is necessary to determine one of the new device A and new device B as the target device according to the preset rules. For example, if the new device B is determined to be the target device, the pairing mode between the new device B and the device to be accessed is triggered. The new device B connects to the device to be accessed through the 2.4G communication mode.
[0083] Both steps S34 and S4 involve determining the device roles of multiple second-type devices (i.e., multiple new devices) according to preset rules. The device roles include master device, slave device, and target device.
[0084] The master device connects to the network device using the second communication mode;
[0085] The slave device connects to the master device using a third communication mode;
[0086] The target device connects to a first type of device in a first communication mode and to a master device in a third communication mode.
[0087] In this specific embodiment, the first communication mode is the 2.4G communication mode, the second communication mode is the WiFi communication mode, and the third communication mode is the BLE communication mode.
[0088] Specifically, since the new device's combo communication module includes BLE communication mode, and the BLE host may establish connections with multiple BLE slaves, it is necessary to distinguish between the new device as a master device, slave device, and target device. The master device connects to network devices (e.g., routers) via WiFi communication mode and to the target and slave devices via BLE communication mode. The master device does not enable 2.4G communication mode by default. The target device connects to the master device via BLE communication mode and to existing devices via 2.4G communication mode. Slave devices connect to the master device via BLE communication mode. Typically, there is only one master device and one target device in the network, with the remaining new devices being slave devices. Of course, slave devices can also connect to network devices via WiFi communication mode; this embodiment does not specifically limit this.
[0089] In one specific implementation, the preset rule includes:
[0090] Obtain the preset role corresponding to each second type of device;
[0091] When there is only one first preset role among the preset roles, the second type device corresponding to the first preset role is determined to be the master device, and the other second type devices are all slave devices.
[0092] Obtain the network tradeoff value for each slave device, and determine the slave device with the smallest network tradeoff value as the target device.
[0093] In one specific implementation, the step of obtaining the network tradeoff value includes:
[0094] Obtain the preset importance and network signal strength for each second-type device;
[0095] Based on the preset importance and network signal strength, the trade-off value corresponding to each second type of device is obtained.
[0096] Specifically, when the device to be connected is an old device and the target device does not exist in the network, the network needs to be reorganized; when the device to be connected is a new device, the network also needs to be reorganized after the device to be connected is connected to the network.
[0097] When network reorganization is required, BLE as the linkage and fixation scheme for new devices has been determined. Therefore, network reorganization adjustments mainly involve redefining the master and target devices. To achieve balanced performance across the entire network, network adjustments are performed. The judgment factors to be considered in network adjustments mainly include: master / slave roles (i.e., preset roles), the number of pairs n of existing 2.4G devices, preset importance l, and the network signal strength r at the location of the device.
[0098] Specifically, when different new devices are configured for BLE networking, the system will default to selecting either the master or slave role based on the defined linkage scenario. The first default role is the master, and the second default role is the slave.
[0099] Because different new devices have different usage scenarios for WiFi functionality, the preset importance value l is defined in the range of [1, 10]. The larger the l value, the higher the importance. For example, steam ovens (default l = 5) have a higher preset importance value than range hoods (default l = 3) because they have smart recipe functionality (IoT). Of course, the l value can also be adjusted according to the user's needs through methods such as using an APP.
[0100] When a network needs to be reorganized, if there is only one host role among the preset roles obtained in the current network, then the new device corresponding to the host role is determined to be the master device, and the rest of the new devices are slave devices. For example, if the current network includes new device A, new device B, new device C and old device A, and the preset role of new device A is the host role, and the preset roles of new device B and new device C are both slave roles, then new device A is designated as the master device, and new device B and new device C are designated as slave devices.
[0101] Since the master device does not enable 2.4G communication mode by default, after determining the master device, it is necessary to further determine the mode selection for the slave devices. Considering the impact of the network signal strength r (an average value over a period of time) at the smart device's installation location on the use of IoT functions, a network tradeoff value w can be used as the basis for mode selection, where w = l * r. The larger the w value, the more likely the communication module will choose WiFi communication mode. By obtaining the network tradeoff value w for each slave device, the slave device with the smallest w value is selected as the target device to connect to the old device via 2.4G communication mode.
[0102] Continuing with the example of a network including new device A, new device B, new device C, and old device A, after determining that new device A is the master device, the network tradeoff value w of new device B is obtained. B Network tradeoffs w for new device C C If w B >w C Then, the new device C will be used as the target device to connect with the old device A via 2.4G communication mode, and the new device B will be used as the slave device to connect with the new device A.
[0103] In one specific implementation, the preset rules may further include:
[0104] Obtain the preset role corresponding to each second type of device;
[0105] When the first preset role is not found in the preset roles, obtain the network tradeoff value corresponding to each second type of device;
[0106] The second type of device corresponding to the largest network tradeoff value is identified as the master device, the second type of device corresponding to the smallest network tradeoff value is identified as the target device, and the rest are identified as slave devices.
[0107] Specifically, when the network needs to be reorganized, in response to the absence of a master role among the preset roles obtained, i.e. all new devices are slave roles, the network tradeoff value w corresponding to each new device is obtained. The new device with the largest w value is designated as the master device, and the new device with the smallest w value is designated as the target device to connect with the old device through 2.4G communication mode. All other devices are connected to the network as slave devices.
[0108] Taking a current network including new device A, new device B, new device C, and old device A as an example, if the default roles of new device A, new device B, and new device C are all slave roles, then obtain the network tradeoff value w of new device A. A Network tradeoffs w for new device B B Network tradeoffs w for new device C C If w A >w B >w C Then, new device A will be used as the master device, and new device C will be used as the target device to connect with old device A through 2.4G communication mode. New device B will be used as the slave device to connect with new device A.
[0109] In one specific implementation, the preset rules may further include:
[0110] Obtain the preset role corresponding to each second type of device;
[0111] When there are multiple first preset roles among the preset roles, obtain the network tradeoff value corresponding to each second type of device;
[0112] The preset role is determined to be the second type device corresponding to the largest network tradeoff value among the first preset roles, which is the main device;
[0113] The second type of device with the smallest network tradeoff value, excluding the master device, is identified as the target device, and the rest are slave devices.
[0114] Specifically, when the network needs to be reorganized, in response to the existence of multiple host roles among the preset roles, the network tradeoff value w corresponding to each host role is obtained, and the new device corresponding to the host role with the largest w value is designated as the master device. At the same time, the network tradeoff value w corresponding to each slave role is obtained, and the w values corresponding to the host roles other than the master device are compared with the w values corresponding to the slave roles. The new device corresponding to the smallest w value is designated as the target device to connect with the old device through 2.4G communication mode, and the remaining devices are all connected to the network as slave devices.
[0115] Taking new device A, new device B, new device C, and old device A as an example, if the default role of new device A and new device C is both master, and the default role of new device B is slave, then obtain the network tradeoff value w of new device A. A Network tradeoffs w for new device B B Network tradeoffs w for new device C C First, compare the network tradeoff values for the host roles (i.e., new device A and new device C). If w A >w C Then, new device A will be designated as the primary device, and the network tradeoffs of new devices B and C will continue to be compared. If w B >w C Then, the new device C will be used as the target device to connect with the old device A via 2.4G communication mode, and the new device B will be used as the slave device to connect with the new device A.
[0116] In one example, after a device joins the network, it sends the aforementioned judgment factors to the master device for communication mode selection. The master device determines the communication mode of each new device, the device to be connected, and itself by obtaining the judgment factors of each new device in the network and its own judgment factors, and sends the determination results through BLE communication mode. Each smart device switches communication modes and adjusts network connections according to the received communication mode, thus completing the network reorganization.
[0117] If the target device changes, after the new device joins the network and the network is reorganized, the original target device will send the information of the old device it is currently connected to to the new target device so that the new target device can establish a new 2.4G pairing relationship.
[0118] like Figure 5 As shown, there are new device A and new device B in the current network. New device B is connected to old device A and old device B. At this time, the device to be connected is a new device. Then, the device roles of new device A, new device B and the device to be connected are determined according to the preset rules.
[0119] If new device A is the master device, new device B is the target device, and the device to be connected is the slave device, then the network reorganization is as follows: Figure 6 As shown, since the target device has not changed, there is no need to establish a new 2.4G pairing relationship.
[0120] If new device A is the master device, new device B is the slave device, and the device to be connected is the target device, then the network reorganization is as follows: Figure 7 As shown, due to the change of the target device, the new device B transmits the information of the old device A and the old device B to the device to be connected via the new device A. The device to be connected establishes a pairing relationship between the device to be connected and the old device A and the old device B based on the received information.
[0121] In one specific implementation, the networking method further includes:
[0122] The target device whitens the data to obtain the whitened target data, and then sends the target data to the first type of device to achieve compatible communication between 2.4G and BLE communication modes.
[0123] Specifically, considering the poor ability of the 2.4G module's FSK (a modulation method) receiver to receive consecutive bits, the target device performs whitening processing on the data to be transmitted when transmitting data, reducing the redundancy of the input data, and then sends the target data to the old device to achieve linkage between the new and old devices.
[0124] In one specific implementation, the networking method further includes:
[0125] The target device operates in a time-sharing mechanism in its first and third communication modes.
[0126] Considering the timeliness of communication, a time-division multiplexing mechanism is adopted to operate the communication modes in the communication module. Specifically, when the communication module operates in "WiFi+BLE" mode, the original time-division mechanism is used; when the module operates in "BLE+2.4G" mode, due to the periodic sleep characteristics of BLE, the time-division mechanism switches to 2.4G communication mode during the BLE sleep period; when the communication module operates in "WiFi+2.4G" mode, the time-division occupancy strategy of the RF antenna is designed according to the timing characteristics of both parties, such as a time-division period of 20ms and a 5:5 time-division ratio between WiFi and 2.4G. Simultaneously, a PTA strategy can be used to dynamically adjust the antenna ratio based on the amount of data transmitted by the WiFi module and the 2.4G module.
[0127] In a specific example, such as Figure 8 As shown, in the current network, new device A is the master device, and new device B is the target device. New device B synchronizes the information of the old device it is connected to with new device A. New device B polls the status of old device A and old device B through 2.4G communication mode and communicates with new device A through BLE communication mode. New device A communicates with the router through WiFi.
[0128] When a new device A receives an access request from a device to be connected, the new device A enters pairing mode, turns off WiFi, and enables BLE + 2.4G communication mode. The device to be connected also begins pairing with the new device via BLE or 2.4G communication mode. After pairing is complete, the device to be connected enters the network and sends a judgment factor to the new device A. The new device A queries the judgment factor of the new device B in the network. The new device B sends its judgment factor back to the new device A. The new device A determines the device roles of the new device B and the device to be connected based on the judgment factor. For example, the new device B is the master device (WiFi communication mode), and the device to be connected is the master device. For the target device (2.4G communication mode), the determination result and the information of the old 2.4G device are sent to the device to be connected. The device to be connected polls the status of old device A and old device B according to the information of the old 2.4G device, switches to 2.4G communication mode, receives the information of old device A and old device B to complete the pairing, and sends a message to the new device A that the 2.4G communication mode switch is successful. The new device A sends the determination result to the new device B. The new device B switches to WiFi communication mode and connects to the router, and sends a message to the new device A that the WiFi communication mode switch is successful, thus completing the entire network adjustment.
[0129] This embodiment dynamically adjusts the current device network in response to the device type of the device to be connected, and controls the target device to determine the communication mode according to the device type of the device to be connected in order to connect with the device to be connected. This achieves compatibility between the BLE communication mode of the new device and the 2.4G linkage of the old device without increasing the additional cost. Furthermore, through the self-organizing network adjustment mechanism between intelligent devices, the local communication link and the cloud communication link between devices are guaranteed, thus achieving compatibility and linkage between the new and old devices.
[0130] Example 2
[0131] In one specific embodiment of this disclosure, a networking system for intelligent devices is provided. This networking system is used to implement the networking method for intelligent devices in Embodiment 1, such as... Figure 9 As shown, the networking system includes a receiving module 100, a determining module 200, and a control module 300.
[0132] The receiving module 100 is used to receive networking requests from external devices;
[0133] The determination module 200 is used to determine the device type corresponding to the external device based on the communication module of the external device;
[0134] When the external device is a first type of device, the control module 300 determines the target device based on a number of second type devices in the network and controls the target device to connect to the external device in a first communication mode.
[0135] The control module 300 is also used to determine the device roles of the external device and several second-type devices based on preset rules when the external device is a second-type device and the target device is already in the network, and to determine the network connection based on the device roles;
[0136] The target device is a second type of device that is connected to the first type of device.
[0137] This implementation dynamically adjusts the current device network in response to the device type of the device to be connected, and controls the target device to determine the communication mode according to the device type of the device to be connected in order to connect with the device to be connected. This achieves compatibility between the BLE communication mode of the new device and the 2.4G linkage of the old device without increasing the additional cost. Furthermore, through the self-organizing network adjustment mechanism between smart devices, the local communication link and the cloud communication link between devices are guaranteed, thus achieving compatibility and linkage between the new and old devices.
[0138] Example 3
[0139] In one specific embodiment of this disclosure, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the networking method between smart devices in Embodiment 1.
[0140] While specific embodiments of this disclosure have been described above, those skilled in the art should understand that these are merely illustrative examples, and the scope of protection of this disclosure is defined by the appended claims. Those skilled in the art can make various changes or modifications to these embodiments without departing from the principles and essence of this disclosure, but all such changes and modifications fall within the scope of protection of this disclosure.
Claims
1. A networking method for intelligent devices, characterized in that, The networking method includes: Receive networking requests from external devices; The device type corresponding to the external device is determined based on the communication module of the external device; When the external device is a first type of device, a target device is determined based on a plurality of second type devices in the network, and the target device is controlled to connect to the external device in a first communication mode; When the external device is a device of the second type and the target device is already present in the network, the device roles of the external device and several devices of the second type are determined based on preset rules, and the network connection is determined based on the device roles; The target device is the second type of device connected to the first type of device.
2. The networking method according to claim 1, characterized in that, The step of determining the target device based on a plurality of second-type devices in the network and controlling the target device to connect to the external device in a first communication mode includes: When only one device of the second type exists in the network, the second type device is determined to be the target device, and the target device is controlled to connect to the external device in the first communication mode and to connect to the network device in the second communication mode. When multiple devices of the second type exist in the network, it is determined whether the target device exists among the devices of the second type. If so, then control the target device to connect to the external device in a first communication mode; Otherwise, based on the preset rules, the device roles of multiple second-type devices are determined, and the device roles are controlled to be the second-type devices corresponding to the target device to connect with the external device in the first communication mode.
3. The networking method according to claim 2, characterized in that, The device roles include master device, slave device, and target device; The master device is connected to the network device in a second communication mode; The slave device is connected to the master device in a third communication mode; The target device is connected to the first type of device in the first communication mode and to the master device in the third communication mode.
4. The networking method according to claim 3, characterized in that, The preset rules include: Obtain the preset role corresponding to each of the second type of devices; When there is only one first preset role among the preset roles, the second type device corresponding to the first preset role is determined to be the master device, and the remaining second type devices are all slave devices. Obtain the network tradeoff value corresponding to each of the slave devices, and determine the slave device corresponding to the smallest network tradeoff value as the target device.
5. The networking method according to claim 3, characterized in that, The preset rules include: Obtain the preset role corresponding to each of the second type of devices; When the first preset role is not found among the preset roles, obtain the network tradeoff value corresponding to each second type of device; The second type device corresponding to the largest network tradeoff value is identified as the master device, the second type device corresponding to the smallest network tradeoff value is identified as the target device, and the rest are identified as slave devices.
6. The networking method according to claim 3, characterized in that, The preset rules include: Obtain the preset role corresponding to each of the second type of devices; When there are multiple first preset roles among the preset roles, obtain the network tradeoff value corresponding to each second type of device; The preset role is determined to be the second type device corresponding to the largest network tradeoff value among the first preset roles, which is the master device; The second type device with the smallest network tradeoff value, excluding the master device, is determined to be the target device, and the rest are slave devices.
7. The networking method according to any one of claims 4 to 6, characterized in that, The steps for obtaining the network tradeoff values include: Obtain the preset importance and network signal strength for each device of the second type; Based on the preset importance and the network signal strength, a tradeoff value is obtained for each of the second type of devices.
8. The networking method according to claim 3, characterized in that, The networking method also includes: The target device performs whitening processing on the data to obtain whitened target data, and sends the target data to the first type of device; And / or, The first communication mode and the third communication mode of the target device operate in a time-division mechanism.
9. A networking system for intelligent devices, characterized in that, The networking system includes a receiving module, a determining module, and a control module: The receiving module is used to receive networking requests from external devices; The determining module is used to determine the device type corresponding to the external device based on the communication module of the external device; The control module is used to, in response to the external device being a first type of device, determine a target device based on a plurality of second type devices in the network, and control the target device to connect to the external device in a first communication mode; The control module is also configured to, in response to the external device being a second type of device and the target device already existing in the network, determine the device roles of the external device and several second type of devices based on preset rules, and determine the network connection based on the device roles; The target device is the second type of device connected to the first type of device.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the networking method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Internet of Things architecture and Internet of Things system
CN117319426A
Internet of Things architecture and Internet of Things system
CN117319455A