Networking method and system between intelligent devices and computer program product

By receiving networking requests from external devices, determining their types and dynamically adjusting network connections, and using the BLE communication mode of new devices to be compatible with the 2.4G linkage of old devices, the incompatibility problem between old and new devices is solved, and compatible linkage between devices is achieved.

CN120603075APending Publication Date: 2025-09-05NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410245111.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

In the existing technology, old devices with original 2.4G communication modules and new BLE communication devices are not compatible and linked, resulting in device function loss.

Method used

By receiving networking requests from external devices, determining their device types, and dynamically adjusting network connections based on preset rules, the BLE communication mode of new devices is used to be compatible with the 2.4G linkage of old devices, realizing self-networking adjustments between devices.

Benefits of technology

Without adding additional costs, the compatible linkage between new and old devices is achieved, ensuring the local communication link and cloud communication link between devices, solving the problem of missing device functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120603075A_ABST
    Figure CN120603075A_ABST
Patent Text Reader

Abstract

The invention provides a networking method and system between intelligent devices and a computer program product. The networking method comprises the following steps: receiving a networking request of external equipment; determining a device type corresponding to the external device based on a communication module of the external device; when the external device is the first type device, determining a target device based on a plurality of second type devices in the network, and controlling the target device to be connected with the external device in a first communication mode; in response to the fact that the external device is a second type device and a target device exists in the network, device roles of the external device and a plurality of second type devices are determined based on a preset rule, and network connection is determined based on the device roles; wherein the target device is a second type device connected with the first type device. Under the condition of not increasing extra cost, the BLE communication mode of the new equipment is utilized to be compatible with 2.4 G linkage of the old equipment, a local communication link and a cloud communication link between the equipment are guaranteed, and compatible linkage of the new equipment and the old equipment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a method, system, and computer program product for networking between smart devices. Background Art

[0002] Before local area network (LAN) linkage between smart devices, 2.4G (a wireless technology) was the primary communication method. However, with the development of IoT chips and the gradual maturity of BLE (Bluetooth Low Energy), the WiFi (mobile hotspot) + BLE combination communication module has become the mainstream communication module in the market. LAN linkage technology has also switched from the original 2.4G networking linkage to the more mature and standardized BLE linkage method. However, as device manufacturers gradually replace old solutions with new ones, it is inevitable that older devices with the original 2.4G communication module will not be compatible with the new BLE solution, resulting in device functionality loss. Summary of the Invention

[0003] The technical problem to be solved by the present disclosure is to overcome the defect in the existing technology that old devices with original 2.4G communication modules and new BLE communication devices are not compatible and linked, resulting in the lack of device functions. Specifically, a networking method, system and computer program product between smart devices are provided.

[0004] The present disclosure solves the above technical problems through the following technical solutions:

[0005] According to a first aspect of the present disclosure, a method for networking between smart devices is provided, the method comprising:

[0006] Receive networking requests from external devices;

[0007] Determining a device type corresponding to the foreign device based on a communication module of the foreign device;

[0008] In response to the external device being a first type device, determining a 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;

[0009] In response to the external device being a device of the second type and the target device already existing in the network, determining device roles of the external device and a plurality of devices of the second type based on a preset rule, and determining a network connection based on the device roles;

[0010] The target device is the second type device connected to the first type device.

[0011] Preferably, the step of determining a 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 the first communication mode includes:

[0012] In response to there being only one device of the second type in the network, determining that the device of the second type is the target device, and controlling 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;

[0013] In response to the presence of a plurality of second-type devices in the network, determining whether the target device exists among the second-type devices;

[0014] If so, controlling the target device to connect to the external device in a first communication mode;

[0015] Otherwise, the device roles of a plurality of second-type devices are determined based on the preset rule, and the second-type device corresponding to the target device is controlled to connect to 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 device in the first communication mode and is connected to the host device in the third communication mode.

[0020] Preferably, the preset rules include:

[0021] Obtaining a preset role corresponding to each of the second-type devices;

[0022] In response to there being only one first preset role among the preset roles, determining that the second-type device corresponding to the first preset role is the master device, and the remaining second-type devices are all slave devices;

[0023] The network tradeoff value corresponding to each of the slave devices is obtained, and the slave device corresponding to the minimum network tradeoff value is determined as the target device.

[0024] Preferably, the preset rules include:

[0025] Obtaining a preset role corresponding to each of the second-type devices;

[0026] In response to the first preset role not existing in the preset roles, obtaining a network tradeoff value corresponding to each second-type device;

[0027] It is determined that the second type device corresponding to the maximum network tradeoff value is the master device, the second type device corresponding to the minimum network tradeoff value is the target device, and the rest are slave devices.

[0028] Preferably, the preset rules include:

[0029] Obtaining a preset role corresponding to each of the second-type devices;

[0030] In response to there being a plurality of first preset roles among the preset roles, obtaining a network tradeoff value corresponding to each of the second-type devices;

[0031] Determine that the preset role is the second type device corresponding to the maximum network tradeoff value among the first preset roles as the master device;

[0032] It is determined that, except for the master device, the second-type device corresponding to the smallest network trade-off value is the target device, and the rest are the slave devices.

[0033] Preferably, the step of obtaining the network tradeoff value includes:

[0034] Obtaining a preset importance and network signal strength corresponding to each of the second-type devices;

[0035] Based on the preset importance and the network signal strength, a weight value corresponding to each second-type device is obtained.

[0036] Preferably, the networking method further includes:

[0037] The target device performs whitening processing on the data to obtain target data after the whitening processing, and sends the target data to the first type device;

[0038] and / or,

[0039] The first communication mode and the third communication mode of the target device are run using a time-sharing mechanism.

[0040] According to a second aspect of the present disclosure, a networking system between smart 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 a networking request from an external device;

[0042] The determining module is configured to determine a device type corresponding to the foreign device based on a communication module of the foreign device;

[0043] The control module is configured to, in response to the external device being a first type 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 further configured to, in response to the external device being a device of the second type and the target device already existing in the network, determine device roles of the external device and a plurality of devices of the second type based on a preset rule, and determine a network connection based on the device roles;

[0045] The target device is the second type device connected to the first type device.

[0046] According to a third aspect of the present disclosure, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the networking method described in the first aspect of the present disclosure.

[0047] On the basis of conforming to the common sense in this field, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present disclosure.

[0048] The positive progress effect of the present disclosure is that 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, so as to connect with the device to be connected, thereby achieving compatibility between the BLE communication mode of the new device and the 2.4G linkage of the old device without adding additional costs, and through the self-organizing network adjustment mechanism between smart devices, the local communication link and the cloud communication link between devices are guaranteed, thereby achieving compatible linkage between new and old devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flow chart of the networking method between smart devices in Example 1 of the present disclosure;

[0050] Figure 2 This is a schematic diagram of a first network among smart devices in Example 1 of the present disclosure;

[0051] Figure 3 This is a schematic diagram of a second network between smart devices in Example 1 of the present disclosure;

[0052] Figure 4 This is a schematic diagram of a third network among smart devices in Example 1 of the present disclosure;

[0053] Figure 5 This is a schematic diagram of a fourth network among smart devices in Example 1 of the present disclosure;

[0054] Figure 6 This is a fifth networking diagram between smart devices in Example 1 of the present disclosure;

[0055] Figure 7 This is a schematic diagram of the sixth networking among smart devices in Example 1 of the present disclosure;

[0056] Figure 8 This is a schematic diagram of the networking process between smart devices in Example 1 of the present disclosure;

[0057] Figure 9 This is a schematic diagram of the networking system modules between smart devices in Example 2 of the present disclosure. DETAILED DESCRIPTION

[0058] The present disclosure is further illustrated below by way of examples, but the present disclosure is not limited to the scope of the examples.

[0059] Example 1

[0060] In a specific embodiment of the present disclosure, a method for networking between smart 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 corresponding to the external device based on the communication module of the external device;

[0063] S3. In response to the external device being a first type device, determining a 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 the first communication mode;

[0064] S4. In response to the external device being a second-type device and the target device already existing in the network, determining device roles of the external device and the plurality of second-type devices based on a preset rule, and determining a network connection based on the device roles;

[0065] The target device is a second type device connected to the first type device.

[0066] Specifically, new kitchen appliance smart devices are usually equipped with a WiFi+BLE combo communication module, while old smart devices are only equipped with a 2.4G communication module. Since WiFi, BLE and 2.4G all operate in the ISM (frequency band defined by the Radiocommunication Bureau of the International Telecommunication Union) channel 2400M~2483M range of communication signals, the combo communication module hardware baseband and RF (radio frequency) can physically communicate with the 2.4G communication module. Therefore, this embodiment sets a set of combo communication module working modes according to the old device 2.4G communication module, so that the BLE communication mode in the combo communication module can switch the RF_PHY layer (calling an interface of the underlying 2.4G transceiver) to the working frequency consistent with the 2.4G communication module for data transmission and reception in the 2.4G working mode. Among them, the first type of device is the old 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 to be accessed requests to access the network, it is necessary to determine whether it is an old device or a new device based on the communication module in the device to be accessed. If the communication module of the device to be accessed is a 2.4G communication module, it can be determined that the device to be accessed is an old device. If the communication module of the device to be accessed is a combo communication module, it can be determined that the device to be accessed is a new device.

[0068] In response to the device to be connected being an old device, it is necessary to determine a target device among the new devices in the current network to connect to the device to be connected, wherein the target device is a new device equipped with a combo communication module for connecting to the old device. After determining the target device, the RF_PHY layer of the BLE communication mode in the combo communication module of the target device (which calls an interface of the underlying 2.4G transceiver) is switched to an operating frequency consistent with the 2.4G communication module, thereby achieving connection between the target device and the device to be connected.

[0069] In response to the fact that 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, and the communication modules of both the new device and the device to be connected are switched to "BLE+2.4G" communication mode, and after the pairing interaction, the BLE communication mode is selected to complete the pairing, thereby completing the network access of the device to be connected. Since BLE local area network devices support multi-linked network configuration, the network needs to be reorganized after the device to be connected is connected to the network. Therefore, the device role corresponding to each new device in the current network can be determined according to preset rules after the device to be connected is connected to the network, and the network can be reorganized according to the determined device role.

[0070] This embodiment dynamically adjusts the current device network in response to the device type of the device to be accessed, and controls the target device to determine the communication mode according to the device type of the device to be accessed so as to connect to the device to be accessed, thereby achieving compatibility between the 2.4G linkage of the old device and the BLE communication mode of the new device without adding additional costs, and through the self-organizing network adjustment mechanism between smart devices, ensuring the local communication link and cloud communication link between devices, and realizing compatible linkage between new and old devices.

[0071] In a specific embodiment, step S3 includes:

[0072] S31. In response to there being only one second-type device in the network, determining the second-type device as a target device, and controlling 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, determining whether a target device exists among the second-type devices;

[0074] If yes, proceed to step S33, otherwise proceed to step S34;

[0075] S33, controlling the target device to connect to the external device in the first communication mode;

[0076] S34: Determine device roles of multiple second-type devices based on a preset rule, and control the second-type device corresponding to the target device to connect to the external device in the first communication mode.

[0077] Specifically, when the device to be connected is an old device, it is necessary to determine how many new devices exist in the current network. If there is only one new device in the current network, the new device and the device to be connected will be triggered to enter pairing mode. Figure 2 As shown, when there is a new device A in the current network, the new device A and the device to be connected are triggered to enter pairing mode; after the new device A enters pairing mode, the communication module switches to the "BLE+2.4G" communication mode, and completes the pairing after receiving the data transmitted by the 2.4G communication module of the device to be connected. Since there are only two devices in the network at this time, the new device A adjusts the combo communication module to the "WiFi+2.4G" communication mode, connects to the device to be connected through the 2.4G communication mode, and connects to the network device through the WiFi communication mode, 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 the new device is already connected to several old devices, when the device to be connected is an old device, the new device in the current network will also switch the communication module to the "BLE+2.4G" communication mode to pair with the device to be connected to enable the device to be connected to 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 is the new device connected to the network device via WiFi communication mode, and connected to multiple old devices via 2.4G communication mode.

[0079] If there are multiple new devices in the current network, it is necessary to determine whether there is a target device connected to the old device among the multiple new devices. Since the 2.4G pairing network is prone to mutual communication interference, based on this, this specific implementation method only connects to all old devices through one target device to avoid mutual communication interference. Therefore, if there is a target device in the current network, the current target device is directly controlled to enter the pairing mode and connect to the device to be connected. If there is no target device, it means that there is no old device connected to the current network. When connecting to the old device for the first time, it is necessary to determine one of the multiple new devices as the target device according to the preset rules to connect to the device to be connected.

[0080] When the target device completes 2.4G pairing with the device to be connected, the current number of pairing data, n, is recorded. This is the number of connected legacy devices. The larger the n value, the higher the priority for the target device to continue selecting the 2.4G communication mode. Since only one target device is selected for 2.4G communication mode compatibility, the n values ​​of each new device in the current network will not be equal. If the n value of each new device is equal to 0, it means that there are no legacy 2.4G devices in the current network, and all new devices can select the WiFi module. If the n value of a new device is not equal to 0, the device will continue to select the 2.4G communication mode.

[0081] like Figure 3 As shown, there are new device A and new device B in the current network, where 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, and new device B is connected to the device to be connected through the 2.4G communication mode.

[0082] like Figure 4 As shown, there are new devices A and new device B in the current network, and there is no target device connected to the old device, that is, the device to be accessed is an old device that is accessed for the first time in the network. Therefore, it is necessary to determine one of the new device A and the 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 of the new device B and the device to be accessed is triggered, and the new device B is connected to the device to be accessed through the 2.4G communication mode.

[0083] In both step S34 and step S4, the device roles of multiple second-type devices (i.e., multiple new devices) are determined according to preset rules. The device roles include master device, slave device, and target device.

[0084] The master device is connected to the network device in a second communication mode;

[0085] The slave device is connected to the master device in a third communication mode;

[0086] The target device is connected to the first type device in a first communication mode and is connected to the host device in a third communication mode.

[0087] In this specific implementation, 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 combo communication module of the new device includes a BLE communication mode, and the BLE host may establish connections with multiple BLE slaves, it is necessary to distinguish the new device as a master device, a slave device, and a target device. Among them, the master device is used to connect to a network device (for example, a router) in WiFi communication mode, and to connect to a target device and a slave device in BLE communication mode. The master device does not turn on the 2.4G communication mode by default. The target device is used to connect to the master device in BLE communication mode and to connect to the old device in 2.4G communication mode. The slave device is connected to the master device in BLE communication mode. There is usually only one master device and one target device in the network, and the rest of the new devices are slave devices. Of course, the slave device can also be connected to the network device via WiFi communication mode, and this embodiment does not specifically limit this.

[0089] In a specific embodiment, the preset rules include:

[0090] Obtaining a preset role corresponding to each second type device;

[0091] In response to there being only one first preset role among the preset roles, determining that the second type device corresponding to the first preset role is a master device, and the remaining second type devices are all slave devices;

[0092] Obtain the network tradeoff value corresponding to each slave device, and determine the slave device with the smallest network tradeoff value as the target device.

[0093] In a specific embodiment, the step of obtaining the network tradeoff value includes:

[0094] Obtaining a preset importance and network signal strength corresponding to each second type device;

[0095] Based on the preset importance and the network signal strength, a weight value corresponding to each second type 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 a network reorganization is needed, BLE is already a fixed linkage scheme for new devices. Therefore, network reorganization adjustments primarily re-determine the master and target devices. To achieve balanced performance across the entire network, network adjustments are made based on factors such as the master / slave role (preset role), the number of paired 2.4G devices connected to the old device (n), the pre-set importance (l), and the network signal strength (r) at the device's location.

[0098] Specifically, when different new devices are connected to a BLE network, they will be defaulted to either the BLE host or slave role based on the linkage scenario definition. The first default role is the host, and the second default role is the slave.

[0099] Because different new devices rely on different scenarios for WiFi functionality, we define a default importance value, l, in the range [1, 10]. A larger l value indicates higher importance. For example, a steaming and baking appliance (default l = 5) has a higher default importance than a range hood (default l = 3) due to its smart recipe functionality. Of course, the l value can also be adjusted based on user needs, for example, through the use of an app.

[0100] When the network needs to be reorganized, in response to there being only one host role among the preset roles obtained in the current network, the new device corresponding to the host role is determined to be the master device, and the remaining new devices are all slave devices. For example, the current network includes new device A, new device B, new device C and old device A. If 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 used as the master device, and new device B and new device C are used 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 continue to determine the mode selection for the slave devices. Considering the impact of the network signal strength r (averaged over a period of time) at the smart device's installation location on the use of IoT functions, the network weight value w can be used as the basis for mode selection, where w = l * r. The larger the w value, the higher the communication module's preference for WiFi communication mode. By obtaining the network weight value w corresponding to 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 current network including new device A, new device B, new device C and old device A as an example, after determining that new device A is the primary device, obtain the network tradeoff value w of new device B B and the network tradeoff value w of the new device C C , if w B >w C , then the new device C is used as the target device to connect to the old device A through the 2.4G communication mode, and the new device B is used as the slave device to connect to the new device A.

[0103] In a specific implementation, the preset rules may further include:

[0104] Obtaining a preset role corresponding to each second type device;

[0105] In response to the first preset role not existing in the preset roles, obtaining a network tradeoff value corresponding to each second type device;

[0106] The second type device corresponding to the largest network tradeoff value is determined to be the master device, the second type device corresponding to the smallest network tradeoff value is determined to be the target device, and the rest are determined to be slave devices.

[0107] Specifically, when the network needs to be reorganized, in response to the fact that there is no host role among the preset roles obtained, that is, all new devices are slave roles, the network trade-off value w corresponding to each new device is obtained, and the new device corresponding to the largest w value is used as the master device, and the new device corresponding to the smallest w value is used as the target device to connect to the old device through the 2.4G communication mode, and the remaining devices are all connected to the network as slave devices.

[0108] Take the current network including new device A, new device B, new device C and old device A as an example. If the preset roles of new device A, new device B and new device C are all slave roles, then the network tradeoff value w of new device A is obtained. A , the network tradeoff value w of the new device B B and the network tradeoff value w of the new device C C , if w A >w B >w C , then the new device A is used as the master device, the new device C is used as the target device to connect to the old device A through the 2.4G communication mode, and the new device B is used as the slave device to connect to the new device A.

[0109] In a specific implementation, the preset rules may further include:

[0110] Obtaining a preset role corresponding to each second type device;

[0111] In response to there being a plurality of first preset roles among the preset roles, obtaining a network tradeoff value corresponding to each second type device;

[0112] Determine that the second type device corresponding to the maximum network tradeoff value among the first preset roles is the master device;

[0113] It is determined that, except for the master device, the second type device corresponding to the smallest network trade-off value is the target device, and the rest are slave devices.

[0114] Specifically, when the network needs to be reorganized, in response to the presence of multiple host roles in the obtained preset roles, the network tradeoff value w corresponding to each host role is obtained, and the new device corresponding to the largest w value in the host role is used 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 used as the target device to connect to the old device through the 2.4G communication mode, and the remaining devices are all connected to the network as slave devices.

[0115] Take new device A, new device B, new device C and old device A as an example. If the preset roles of new device A and new device C are both master roles, and the preset role of new device B is slave role, then the network tradeoff value w of new device A is obtained. A , the network tradeoff value w of the new device B B and the network tradeoff value w of the new device C C , first compare the network tradeoff values ​​of the host roles (i.e., new device A and new device C). If w A >w C , then the new device A is used as the master device, and the network tradeoff values ​​of the new devices B and C are compared. If w B >w C , then the new device C is used as the target device to connect to the old device A through the 2.4G communication mode, and the new device B is used as the slave device to connect to the new device A.

[0116] In one example, after joining the network, the device to be connected will send the above-mentioned judgment factor to the main device for selection and judgment of the communication mode. The main device determines the communication mode of each new device, the device to be connected and itself by obtaining the judgment factor of each new device in the network and its own judgment factor, and sends the determination result through the BLE communication mode. Each smart device switches the communication mode and adjusts the network connection according to the received communication mode to complete the reorganization of the network.

[0117] Among them, if the target device changes, after the new device joins the network and the network is reorganized, the original target device sends the information of the currently connected old device 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 devices A and B in the current network, and new device B is connected to old devices A and B. At this time, the device to be connected is a new device, and 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 the new device A is the master device, the new device B is the target device, and the device to be connected is the slave device, the network reorganization is as follows: Figure 6 As shown in the figure, since the target device has not changed, there is no need to establish a new 2.4G pairing relationship.

[0120] If the new device A is the master device, the new device B is the slave device, and the device to be connected is the target device, the network reorganization is as follows: Figure 7 As shown, since the target device changes, the new device B transmits the information of the connected old devices A and B to the device to be connected via the new device A, and the device to be connected establishes a pairing relationship with the old devices A and B based on the received information.

[0121] In a specific embodiment, the networking method further includes:

[0122] The target device performs whitening processing on the data to obtain target data after whitening processing, and sends the target data to the first type of device for achieving compatible communication between 2.4G and BLE communication modes.

[0123] Specifically, considering that the FSK (a modulation method) receiver of the 2.4G module has poor ability to receive continuous bits, the target device whitens the data to be sent when sending data, reduces the redundancy of the input data, and sends the target data to the old device to achieve linkage between the new and old devices.

[0124] In a specific embodiment, the networking method further includes:

[0125] The first communication mode and the third communication mode of the target device are operated in a time-sharing mechanism.

[0126] Considering communication timeliness, a time-sharing mechanism is used to operate the communication module's communication modes. When the communication module operates in "WiFi + BLE" mode, the existing time-sharing mechanism is maintained. When the module operates in "BLE + 2.4G" mode, due to BLE's periodic sleep characteristics, the time-sharing mechanism switches to 2.4G communication mode during the BLE sleep cycle. When the communication module operates in "WiFi + 2.4G" mode, a time-sharing strategy for the RF antenna is designed based on the operating timing characteristics of both parties. For example, a time-sharing period of 20ms and a 5:5 ratio of WiFi to 2.4G can be used. A PTA strategy can also be used to dynamically adjust the antenna share based on the amount of data sent by the WiFi module and 2.4G.

[0127] In a specific example, Figure 8 As shown, in the current network, new device A acts as the master device and new device B acts as the target device. New device B synchronizes the information of the connected old device to new device A. New device B polls the status of old devices A and B through the 2.4G communication mode and communicates with new device A through the BLE communication mode. New device A communicates with the router through WiFi.

[0128] When receiving the access request of the device to be accessed, the new device A enters pairing mode, turns off WiFi and turns on BLE+2.4G communication mode. The device to be accessed also starts pairing with the new device through BLE or 2.4G communication mode. After pairing is completed, the device to be accessed accesses the network and sends the 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 the judgment factor to the new device A. The new device A determines the device roles of the new device B and the device to be accessed based on the judgment factor. For example, the new device B is the main device (WiFi communication mode) and the device to be accessed is For the target device (2.4G communication mode), the confirmation result and the 2.4G old device information 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 2.4G old device information, switches to 2.4G communication mode, receives the information of old device A and old device B to complete the pairing, and sends the information of successful switching of 2.4G communication mode to the new device A. The new device A sends the confirmation result to the new device B. The new device B switches the WiFi communication mode to connect to the router and sends the information of successful switching of WiFi communication mode to the new device A, thereby 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 accessed, and controls the target device to determine the communication mode according to the device type of the device to be accessed so as to connect to the device to be accessed, thereby achieving compatibility between the 2.4G linkage of the old device and the BLE communication mode of the new device without adding additional costs, and through the self-organizing network adjustment mechanism between smart devices, ensuring the local communication link and the cloud communication link between devices, and realizing compatible linkage between new and old devices.

[0130] Example 2

[0131] In a specific embodiment of the present disclosure, a networking system between smart devices is provided, and the networking system between smart devices is used to implement the networking method between smart devices in Example 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 a networking request from an external device;

[0133] The determination module 200 is used to determine the device type corresponding to the foreign device based on the communication module of the foreign device;

[0134] The control module 300 is configured to, in response to the external device being a first type 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 the first communication mode;

[0135] The control module 300 is further configured to, in response to the external device being a second type device and the target device already existing in the network, determine the device roles of the external device and the plurality of second type devices based on a preset rule, and determine a network connection based on the device roles;

[0136] The target device is a second type device connected to the first type device.

[0137] This embodiment dynamically adjusts the current device network in response to the device type of the device to be accessed, and controls the target device to determine the communication mode according to the device type of the device to be accessed so as to connect to the device to be accessed, thereby achieving compatibility between the 2.4G linkage of the old device and the BLE communication mode of the new device without adding additional costs, and through the self-organizing network adjustment mechanism between smart devices, ensuring the local communication link and cloud communication link between devices, and realizing compatible linkage between new and old devices.

[0138] Example 3

[0139] In a specific embodiment of the present disclosure, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for networking between smart devices in Example 1.

[0140] While specific embodiments of the present disclosure have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of protection of the present disclosure is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present disclosure, and such changes and modifications are intended to fall within the scope of protection of the present disclosure.

Claims

1. A method for networking between smart devices, characterized in that: The networking method includes: Receive networking requests from external devices; Determining a device type corresponding to the foreign device based on a communication module of the foreign device; In response to the external device being a first type device, determining a 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; In response to the external device being a device of the second type and the target device already existing in the network, determining device roles of the external device and a plurality of devices of the second type based on a preset rule, and determining a network connection based on the device roles; The target device is the second type device connected to the first type device.

2. The networking method according to claim 1, wherein: The step of determining a 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 the first communication mode includes: In response to there being only one device of the second type in the network, determining that the device of the second type is the target device, and controlling 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; In response to the presence of a plurality of second-type devices in the network, determining whether the target device exists among the second-type devices; If so, controlling the target device to connect to the external device in a first communication mode; Otherwise, the device roles of a plurality of second-type devices are determined based on the preset rule, and the second-type device corresponding to the target device with the device role being controlled to connect to the external device in the first communication mode.

3. The networking method according to claim 2, wherein: The device roles include a master device, a slave device and the 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 device in the first communication mode and is connected to the host device in the third communication mode.

4. The networking method according to claim 3, wherein: The preset rules include: Obtaining a preset role corresponding to each of the second-type devices; In response to there being only one first preset role among the preset roles, determining that the second-type device corresponding to the first preset role is the master device, and the remaining second-type devices are all slave devices; The network tradeoff value corresponding to each of the slave devices is obtained, and the slave device corresponding to the minimum network tradeoff value is determined as the target device.

5. The networking method according to claim 3, wherein: The preset rules include: Obtaining a preset role corresponding to each of the second-type devices; In response to the first preset role not existing in the preset roles, obtaining a network tradeoff value corresponding to each second-type device; It is determined that the second type device corresponding to the maximum network tradeoff value is the master device, the second type device corresponding to the minimum network tradeoff value is the target device, and the rest are slave devices.

6. The networking method according to claim 3, characterized in that: The preset rules include: Obtaining a preset role corresponding to each of the second-type devices; In response to there being a plurality of first preset roles among the preset roles, obtaining a network tradeoff value corresponding to each of the second-type devices; Determine that the preset role is the second type device corresponding to the maximum network tradeoff value among the first preset roles as the master device; It is determined that, except for the master device, the second-type device corresponding to the smallest network trade-off value is the target device, and the rest are the slave devices.

7. The networking method according to any one of claims 4 to 6, characterized in that: The step of obtaining the network tradeoff value includes: Obtaining a preset importance and network signal strength corresponding to each of the second-type devices; Based on the preset importance and the network signal strength, a weight value corresponding to each second-type device is obtained.

8. The networking method according to claim 3, wherein: The networking method further includes: The target device performs whitening processing on the data to obtain target data after the whitening processing, and sends the target data to the first type device; and / or, The first communication mode and the third communication mode of the target device are run using a time-sharing mechanism.

9. A networking system between smart 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 a networking request from an external device; The determining module is configured to determine a device type corresponding to the foreign device based on a communication module of the foreign device; The control module is configured to, in response to the external device being a first type 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 further configured to, in response to the external device being a device of the second type and the target device already existing in the network, determine device roles of the external device and a plurality of devices of the second type based on a preset rule, and determine a network connection based on the device roles; The target device is the second type device connected to the first type device.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the networking method according to any one of claims 1 to 8 are implemented.

Citation Information

Cited By

  • Equipment linkage method and equipment linkage system

    CN122053667A