Master-slave device connection method, device, system and electronic equipment

The master device broadcasts the frequency shift keying FSK signal and the slave device determines the network access time slice based on the signal strength and characteristics, which solves the problem of slave device access conflict in traditional RF products, and realizes efficient access and number uniqueness.

CN117042201BActive Publication Date: 2025-08-29CHINA TELECOM INTELLIGENT NETWORK TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310963815.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-01
Publication Date
2025-08-29
Estimated Expiration
2043-08-01

AI Technical Summary

Technical Problem

There is an access conflict in traditional RF products for slave device access methods, resulting in low access efficiency and inconsistent device numbers after the system powered down.

Method used

The main device carries the access packet through broadcast frequency shift keying FSK signals. The target slave device determines the time slice of the network packet according to the signal strength and characteristics, and returns the access packet within the time slice. The main device allocates the device number according to the time slice of the network packet.

Benefits of technology

Avoid slave access conflicts, improve access efficiency, and ensure that device numbers are not confused after system restart.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117042201B_ABST
    Figure CN117042201B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, system, and electronic device for connecting master and slave devices. The method comprises: a master device broadcasts a frequency-shift keyed (FSK) signal to at least one target slave device in a target device set, the frequency-shift keyed (FSK) signal carrying an access packet; the master device receives a network access packet returned by the target slave device in response to the access packet within a target time period; the master device performs device access on the target slave device that returns the access packet; the master device assigns a device number to the target slave device based on the target time slot of the network access packet returned by the target slave device, wherein the target slave device determines the target time slot for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed (FSK) signal, the target time slot being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being a unique identifier for the target slave device. The present invention solves the technical problem of low access efficiency in traditional slave device access methods due to access conflicts among slave devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method, device, system and electronic equipment for connecting master and slave devices. Background Art

[0002] Traditional RF products typically use a random delay method to access slave devices. When the number of slave devices is large, this method has a high probability of collision with a single access attempt, requiring multiple attempts to access all slave devices, and the entire access process takes a long time.

[0003] In addition, this method allows for random access to slaves, while number assignment and access are synchronized. If the system loses power, the numbers assigned to devices when they reconnect will be inconsistent with the numbers assigned last time.

[0004] With respect to the problem that the access method of the above-mentioned traditional slave devices has low access efficiency due to access conflicts among the slave devices, no effective solution has been proposed so far. Summary of the Invention

[0005] Embodiments of the present invention provide a method, apparatus, system, and electronic device for connecting a master and a slave device, to at least solve the technical problem of low access efficiency caused by access conflicts of slave devices in traditional access methods of slave devices.

[0006] According to one aspect of an embodiment of the present invention, a method for connecting master and slave devices is provided, comprising: the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in a target device set, wherein the frequency shift keying (FSK) signal carries an access packet; the master device receives a network access packet returned by the target slave device in response to the access packet within a target time period; the master device performs device access on the target slave device that returns the access packet; the master device assigns a device number to the target slave device according to the target time slice in which the target slave device returns the network access packet, wherein the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, the target time slice being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being a unique identifier of the target slave device.

[0007] Optionally, before the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in a target device set, the method further includes: the master device determines the broadcast time of the frequency shift keying (FSK) signal; the master device determines in a preset device set list that the preset time period in which the broadcast time is located is the target time period, wherein the preset device set list records a plurality of the preset time periods and a preset device set corresponding to each preset time period, and the master device receives a network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; the master device determines that the preset device set corresponding to the target time period is the target device set.

[0008] Optionally, before the master device determines the broadcast time of the frequency-shift keyed FSK signal, the method further includes: the master device detects the number of multiple preset slave devices to be accessed that require device access; when the number of devices to be accessed exceeds a preset threshold, the master device divides the multiple preset slave devices into multiple preset device sets; the master device allocates a preset time period for receiving network access packets to each preset device set.

[0009] Optionally, the master device detects the number of multiple preset slave devices to be accessed that need device access, including: the master device broadcasts a query packet to the multiple preset slave devices that need device access; the master device receives a query return packet returned by the preset slave device in response to the query packet; the master device counts the number of query return packets to determine the number to be accessed.

[0010] Optionally, when the number of devices to be connected exceeds a preset threshold, the master device divides multiple preset slave devices into multiple preset device sets, including: the master device queries the target segment number corresponding to the number to be connected in the preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of the preset device set; the master device obtains the preset serial number of the preset slave device, wherein the preset serial number is the unique identifier of the preset slave device; the master device accumulates the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target accumulated value, wherein each digit is pre-set with a corresponding target constant, and different digits correspond to different target constants; the master device determines the remainder of the target accumulated value divided by the target segment number as the set number of the preset device set corresponding to the preset slave device, wherein the set number of multiple preset device sets is determined according to the target segment number.

[0011] Optionally, the target slave device determines the target time slice for returning the access packet based on the target signal strength and target characteristics of the received frequency-shift keyed FSK signal, including: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of returning the access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0012] Optionally, the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, including: the target slave device divides the return time by the preset time length and determines the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in chronological order.

[0013] According to another aspect of an embodiment of the present invention, a method for connecting a master and a slave device is also provided, including: the target slave device obtains a frequency shift keyed FSK signal broadcast by the master device, wherein the frequency shift keyed FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keyed FSK signal; the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slice.

[0014] According to another aspect of an embodiment of the present invention, a connection device for a master-slave device is also provided, including: a broadcast module, used to control the master device to broadcast a frequency shift keying (FSK) signal to at least one target slave device in a target device set, wherein the frequency shift keying (FSK) signal carries an access packet; a receiving module, used to control the master device to receive a network access packet returned by the target slave device in response to the access packet within a target time period; an access module, used to control the master device to perform device access on the target slave device that returns the access packet; an allocation module, used to control the master device to allocate a device number to the target slave device according to the target time slice of the network access packet returned by the target slave device, wherein the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, the target time slice being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being the unique identifier of the target slave device.

[0015] According to another aspect of an embodiment of the present invention, a connection device for a master-slave device is also provided, including: a receiving module, used to control the target slave device to obtain the frequency shift keying FSK signal broadcast by the master device, wherein the frequency shift keying FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; a detection module, used to control the target slave device to detect the target signal strength of the frequency shift keying FSK signal; a determination module, used to control the target slave device to determine the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device; a return module, used to control the target slave device to return the network access packet to the master device according to the target time slice.

[0016] According to another aspect of an embodiment of the present invention, a master-slave device connection system is also provided, including: a master device, configured to broadcast a frequency shift keying (FSK) signal to at least one target slave device in a target device set, wherein the frequency shift keying (FSK) signal carries an access packet; receive a network access packet returned by the target slave device in response to the access packet within a target time period; perform device access on the target slave device that returns the access packet; and assign a device number to the target slave device based on the target time slice for returning the network access packet by the target slave device; at least one of the target slave devices is configured to determine the target time slice for returning the network access packet based on the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device.

[0017] According to another aspect of an embodiment of the present invention, an electronic device is provided, including: a memory and a processor, wherein the processor is configured to run a program stored in the processor, wherein the program executes the above-mentioned master-slave device connection method when running.

[0018] In an embodiment of the present invention, a master device broadcasts a frequency-shift keyed (FSK) signal to at least one target slave device in a target device set, wherein the frequency-shift keyed (FSK) signal carries an access packet. The master device receives a network access packet returned by the target slave device in response to the access packet within a target time period. The master device performs device access on the target slave device that returns the access packet. The master device assigns a device number to the target slave device based on the target time slot of the network access packet returned by the target slave device. The target slave device determines the target time slot for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed (FSK) signal. The target time slot is the minimum time length for time synchronization between the master device and the target slave device. The target characteristic is a unique identifier of the target slave device. Since the target signal strength of the frequency-shift keyed (FSK) signal received by each target slave device and the target characteristic of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and target characteristic is also unique. This can avoid slave device access conflicts caused by multiple target slave devices simultaneously returning network access packets, thereby achieving the technical effect of improving slave device access efficiency and solving the technical problem of low access efficiency caused by slave device access conflicts in traditional slave device access methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 This is a process of a method for connecting a master and a slave device according to an embodiment of the present invention. Figure 1 ;

[0021] Figure 2 This is a process of a method for connecting a master and a slave device according to an embodiment of the present invention. Figure 2 ;

[0022] Figure 3 is a schematic diagram of a main process of slave device access according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of a slave device access process according to an embodiment of the present invention;

[0024] Figure 5 A schematic diagram of a connection device for a master and a slave device according to an embodiment of the present invention Figure 1 ;

[0025] Figure 6 A schematic diagram of a connection device for a master and a slave device according to an embodiment of the present invention Figure 2 ;

[0026] Figure 7 is a schematic diagram of a connection system of master and slave devices according to an embodiment of the present invention;

[0027] Figure 8 It is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] According to an embodiment of the present invention, an embodiment of a method for connecting a master and a slave device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0031] Figure 1 This is a process of a method for connecting a master and a slave device according to an embodiment of the present invention. Figure 1 ,like Figure 1 As shown, the method includes the following steps:

[0032] Step S102: The master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in the target device set, wherein the frequency shift keying (FSK) signal carries an access packet.

[0033] Step S104: The master device receives a network access packet returned by the target slave device in response to the access packet within the target time period;

[0034] Step S106: The master device performs device access on the target slave device that returns the access packet;

[0035] In step S108, the master device assigns a device number to the target slave device according to the target time slot of the network access packet returned by the target slave device, wherein the target slave device determines the target time slot for returning the network access packet according to the target signal strength and target characteristics of the received frequency shift keying (FSK) signal. The target time slot is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

[0036] In an embodiment of the present invention, a master device broadcasts a frequency-shift keyed (FSK) signal to at least one target slave device in a target device set, wherein the frequency-shift keyed (FSK) signal carries an access packet. The master device receives a network access packet returned by the target slave device in response to the access packet within a target time period. The master device performs device access on the target slave device that returns the access packet. The master device assigns a device number to the target slave device based on the target time slot of the network access packet returned by the target slave device. The target slave device determines the target time slot for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed (FSK) signal. The target time slot is the minimum time length for time synchronization between the master device and the target slave device. The target characteristic is a unique identifier of the target slave device. Since the target signal strength of the frequency-shift keyed (FSK) signal received by each target slave device and the target characteristic of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and target characteristic is also unique. This can avoid slave device access conflicts caused by multiple target slave devices simultaneously returning network access packets, thereby achieving the technical effect of improving slave device access efficiency and solving the technical problem of low access efficiency caused by slave device access conflicts in traditional slave device access methods.

[0037] In the above step S102, the broadcast time of the frequency shift keying (FSK) signal is within a target time period, and the target time period is used for device access to at least one target slave device in the target device set.

[0038] Optionally, a plurality of preset time periods may be preset, each of which has a corresponding preset device set, and thus at least one preset slave device in the corresponding preset device set may be accessed within the preset time period.

[0039] In the above step S104, when the target slave device receives the access packet, it can respond to the access packet and return the network access packet to the master device. Then, the master device can use the returned network access packet to access the target slave device.

[0040] In the above step S108, the target signal strength is determined based on the frequency shift keying (FSK) signal received by the target slave device. Since the signal transmission distance, signal transmission environment and other influencing factors between each target slave device and the master device are different, the target signal strength of the frequency shift keying (FSK) signal received by each target slave device is also different, so the target signal strength is unique.

[0041] In the above step S108 , the target feature may be the serial number of the target slave device.

[0042] In the above step S108, the master device assigns a device number to the target slave device according to the target time slice for the target slave device to return the network access packet, including: determining the order in which each target slave device returns the network access packet according to the target time slice; and assigning a device number to each target slave device according to the order in which the target slave device returns the network access packet.

[0043] In an embodiment of the present invention, since the target time slice for each target slave device to return the incoming packet is unique, the device number allocated to the target slave device according to the target time slice is also unique. Even if the master-slave device is disconnected and restarted, it can be ensured that the device number of the target slave device will not be confused.

[0044] Optionally, after the master device receives the network access packet returned by the target slave device in response to the access packet within the target time period, it also includes: counting whether the number of network access packets received within the target time period is consistent with the number of target slave devices in the target device set; if not, extending the target time period and broadcasting the frequency shift keying FSK signal again; until the master device receives the network access packets returned by all target slave devices in the target device set.

[0045] As an optional embodiment, before the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in a target device set, the method further includes: the master device determines the broadcast time of the frequency shift keying (FSK) signal; the master device determines in a preset device set list the preset time period in which the broadcast time is located as the target time period, wherein the preset device set list records a plurality of preset time periods and a preset device set corresponding to each preset time period, and the master device receives a network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; the master device determines the preset device set corresponding to the target time period as the target device set.

[0046] In the above embodiment of the present invention, the preset device set list records the correspondence between multiple preset time periods and preset device sets. During the device access process, the broadcast time of the frequency shift keying (FSK) signal can be determined first. The preset time period into which the broadcast time falls is the target time period, and the preset device set corresponding to the target time period is the target device set. After the master device broadcasts the frequency shift keying (FSK) signal to at least one target slave device in the target device set, the network access packet returned by the target slave device in the target device set can be received within the target time period. In this way, a large number of preset slave devices that need to be accessed can be divided into multiple preset device sets, and the access of some preset slave devices can be completed separately within the preset time period corresponding to each preset device set. In this way, the number of preset slave devices accessed within each preset time period can be kept within a reasonable range, avoiding the situation where multiple preset slave devices are accessed at the same time and causing slave device access conflicts, thereby achieving the technical effect of improving the efficiency of slave device access.

[0047] As an optional embodiment, before the master device determines the broadcast time of the frequency shift keying (FSK) signal, the method also includes: the master device detects the number of multiple preset slave devices to be connected that need to be connected; when the number of devices to be connected exceeds a preset threshold, the master device divides the multiple preset slave devices into multiple preset device sets; the master device allocates a preset time period for receiving network access packets to each preset device set.

[0048] In the above-mentioned embodiment of the present invention, when there are too many preset slave devices that need to be accessed, the multiple preset slave devices can be divided into multiple preset device sets, and the access of some preset slave devices can be completed separately within the preset time period corresponding to each preset device set. Therefore, the number of preset slave devices accessed within each preset time period can be kept within a reasonable range, avoiding the situation where multiple preset slave devices are accessed at the same time and causing slave device access conflicts, thereby achieving the technical effect of improving the efficiency of slave device access.

[0049] As an optional embodiment, the master device detects the number of multiple preset slave devices to be accessed that need device access, including: the master device broadcasts a query packet to the multiple preset slave devices that need device access; the master device receives a query reply packet returned by the preset slave device in response to the query packet; the master device counts the number of query reply packets to determine the number to be accessed.

[0050] In the above-mentioned embodiment of the present invention, the number of preset slave devices to be accessed can be determined based on the response of the preset slave devices to the query packets, wherein the preset slave devices that need to access the device will respond to the query packets broadcast by the master device and return query response packets to the master device. Then, the master device can determine the number of preset slave devices to be accessed by counting the amount of data in the received query response packets, thereby realizing rapid determination of the number of slave devices to be accessed.

[0051] Optionally, the master device may receive a query reply packet returned by a preset slave device within a preset time range after broadcasting the query packet.

[0052] As an optional embodiment, when the number of devices to be connected exceeds a preset threshold, the master device divides multiple preset slave devices into multiple preset device sets, including: the master device queries the target segment number corresponding to the number to be connected in the preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of preset device sets; the master device obtains the preset serial number of the preset slave device, wherein the preset serial number is the unique identifier of the preset slave device; the master device accumulates the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target accumulated value, wherein each digit is pre-set with a corresponding target constant, and different digits correspond to different target constants; the master device determines the remainder of the target accumulated value divided by the target segment number as the set number of the preset device set corresponding to the preset slave device, wherein the set number of multiple preset device sets is determined according to the target segment number.

[0053] In the above embodiment of the present invention, in order to ensure that the number of preset slave devices in the preset device set remains within a reasonable range, it is necessary to adjust the number of preset device sets according to the number of all preset slave devices to be connected. The more the number to be connected, the more the number of preset device sets (that is, the number of preset segments) will be. Therefore, a preset mapping relationship can be used to record multiple preset number intervals and the preset segment numbers corresponding to each preset number interval, and then a suitable preset segment number can be selected as the number of preset device sets according to the number to be connected, and multiple preset slave devices can be respectively allocated to the corresponding preset device sets.

[0054] Optionally, in the process of dividing multiple preset slave devices into multiple preset device sets, a set number can be set for the preset device set, and then the preset slave devices can be divided into each preset device set through a specific calculation method based on the unique identifier of each preset slave device.

[0055] As an optional embodiment, before accumulating the product of the numerical value of each digit in the preset serial number and the constant corresponding to each digit to obtain the target accumulated value, the method also includes: the master device obtains the preset constant; the master device uses each digit as a power of the preset constant to determine the target constant corresponding to each digit.

[0056] In the above embodiment of the present invention, each digit is treated as a power of a preset constant for operation. Since the power operation results of different preset constants are different for different digits, the power of the preset constant is used as the target constant for each digit, thereby achieving the purpose of assigning different target constants to different digits.

[0057] Optionally, the master device may determine the set number of the preset device set corresponding to each preset slave device according to the preset serial number of the preset slave device, specifically by the following formula:

[0058] n=(∑d i *X i )mod(K)

[0059] Where d is the i-th digit of the preset sequence number, K is the designed maximum number of segments (i.e., the target number of segments), n is the segment number to which the preset slave device belongs (i.e., the set number of the preset device set), X is a preset constant, and X i is the target constant and i is the digit.

[0060] As an optional embodiment, the target slave device determines the target time slice of the returned access packet based on the target signal strength and target characteristics of the received frequency shift keying FSK signal, including: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the receiving time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the receiving time of the access packet; the target slave device determines the return time of the returned access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the receiving time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0061] In the above-mentioned embodiment of the present invention, since the target signal strength of the frequency-shift keyed FSK signal received by each target slave device and the target characteristics of each target slave device are unique, the first time and the first weight determined by different target slave devices based on the target signal strength are also different, and then the second time and the second weight determined by different target slave devices based on the target characteristics are also different. Therefore, different target slave devices can obtain different target time slices for returning the network access packet based on different first times and first weights, as well as the weighted average results of the second time and the second weight, to ensure that the target time slice for the network access packet returned by the target slave device is unique, and avoid access conflicts of the slave devices caused by multiple target slave devices returning the network access packets at the same time, thereby achieving the technical effect of improving the access efficiency of the slave devices, and then solving the technical problem of low access efficiency caused by access conflicts of the slave devices in the traditional access method of the slave devices.

[0062] Optionally, the target slave device may determine the target time slice for returning the incoming packet based on the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, specifically by the following formula:

[0063] Treal =(T rssi δ rssi +T sn δ sn ) / (T s )mod(N)

[0064] Among them, T real is the actual delay time (equivalent to determining the target time slice), T rssi is the delay time (such as the first time) calculated based on the RSSI value (such as the target signal strength), δ rssi The delay time weight (such as the first weight) calculated for the RSSI value (such as the target signal strength), T sn is the delay time (such as the second time) calculated according to the SN (such as the target feature) of the target slave device, δ sn Its weight (such as the first weight), T s is the minimum interval time slice for replying packets (that is, the minimum time length for time synchronization between the master device and the target slave device), and N is the number of minimum time slices that the time the master device waits for the target slave device to reply packets can be divided into (that is, the preset number of time slices for dividing the target time period into multiple preset time slices).

[0065] As an optional embodiment, the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, including: the target slave device divides the return time by the preset time length and determines the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets the corresponding preset time number for each preset time slice in time order.

[0066] It should be noted that there will be time loss during the transmission of network access reports between the master device and the target slave device. In order to keep the master device and the slave device in time synchronization, the error caused by time loss can be accommodated by presetting time slices to achieve time synchronization.

[0067] For example, if the time loss during transmission is A, the preset time slice can be a time period greater than A, and the slave device returns the incoming packet to the master device in the target time slice, and the master device can also receive the incoming packet within the target time slice.

[0068] In the above embodiment of the present invention, in the process of determining the timing for the target slave device to return the network access packet, the calculated return time can be compared with multiple preset time slices within the target time period, and the preset time slice into which the return time falls can be determined as the target time slice. Then, when the target slave device returns the network access packet at any time within the target time slice, the master device can receive the network access packet within the synchronized target time slice, thereby ensuring time synchronization between the master device and the target slave device.

[0069] Figure 2 This is a process of a method for connecting a master and a slave device according to an embodiment of the present invention. Figure 2 ,like Figure 2 As shown, the method includes the following steps:

[0070] Step S202: The target slave device obtains a frequency shift keying (FSK) signal broadcast by the master device, wherein the frequency shift keying (FSK) signal carries an access packet, and the target slave device generates a network access packet in response to the access packet.

[0071] Step S204, the target slave device detects the target signal strength of the frequency shift keying (FSK) signal;

[0072] Step S206: The target slave device determines a target time slice for returning the incoming packet based on the target signal strength and target characteristics, where the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device.

[0073] Step S208: The target slave device returns a network access packet to the master device according to the target time slice.

[0074] In an embodiment of the present invention, a target slave device obtains a frequency shift keyed FSK signal broadcast by a master device, wherein the frequency shift keyed FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keyed FSK signal; the target slave device determines a target time slot for returning the network access packet based on the target signal strength and the target feature, wherein the target time slot is the minimum time length for time synchronization between the master device and the target slave device, and the target feature is a unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slot. Since the target signal strength of the frequency shift keyed FSK signal received by each target slave device and the target feature of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and the target feature is also unique, which can avoid access conflicts of slave devices caused by multiple target slave devices returning network access packets at the same time, thereby achieving the technical effect of improving the access efficiency of slave devices, and further solving the technical problem of low access efficiency caused by access conflicts of slave devices in traditional access methods.

[0075] As an optional embodiment, the target slave device determines the target time slice of the returned access packet based on the target signal strength and the target characteristics, including: the target slave device determines the first time and the first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines the second time and the second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of the returned access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0076] As an optional embodiment, the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, including: the target slave device divides the return time by the preset time length and determines the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets the corresponding preset time number for each preset time slice in time order.

[0077] The present invention also provides an optional embodiment, which provides an orderly access method based on slave device characteristics. For radio frequency products using FSK as a master-slave communication channel, the optional embodiment not only accelerates the access of slave devices, but also arranges the slave devices in an orderly manner. After power failure and reconnection, the numbering does not change. The specific implementation method includes the following steps:

[0078] S1, Segmenting Slaves. Slaves are divided into different segments based on their characteristics, and then connected to the devices in sequence. In other words, multiple preset slave devices are divided into corresponding preset device sets.

[0079] Optionally, the slave device segmentation includes: estimating the total number of slave devices in the current system (i.e., detecting the number of multiple preset slave devices to be connected that need to be connected), selecting an appropriate number of segments (querying the target number of segments corresponding to the number to be connected); and then dividing the slave devices into different groups (i.e., determining the set number of the preset device set corresponding to the preset slave device). The calculation formula is as follows:

[0080] n=(∑d i *X i )mod(K)

[0081] Among them, d is the i-th bit of the preset serial number, K is the designed maximum number of segments (that is, the target number of segments), and n is the segment number to which the preset slave device belongs (that is, the set number of the preset device set).

[0082] Optionally, the preset serial number may be a generated serial number of a preset slave device, such as a binary number of the preset slave device.

[0083] S2, ordered delayed access. After receiving the access packet, the target slave device will reply with an access packet after a delay (that is, it returns the access packet to the master device according to the target time slice).

[0084] Optionally, the method for calculating the delay includes: taking a weighted average of the RSSI value of the FSK of the target slave device (i.e., the target signal strength) and the preset serial number SN (i.e., the target feature), and then normalizing it to the time period that the master device waits for the slave device to return the packet (such as making the network access packet returned by the target slave device to the master device within the target time period of the master device).

[0085] Optionally, the delay calculation formula is as follows:

[0086] T real =(T rssi δ rssi +T sn δ sn ) / (T s )mod(N)

[0087] Among them, T real is the actual delay time (equivalent to determining the target time slice), T rssi is the delay time (such as the first time) calculated based on the RSSI value (such as the target signal strength), δ rssi The delay time weight (such as the first weight) calculated for the RSSI value (such as the target signal strength), T sn is the delay time (such as the second time) calculated according to the SN (such as the target feature) of the target slave device, δ sn Its weight (such as the first weight), T s is the minimum interval time slice for replying packets (that is, the minimum time length for time synchronization between the master device and the target slave device), and N is the number of minimum time slices that the time the master device waits for the target slave device to reply packets can be divided into (that is, the preset number of time slices for dividing the target time period into multiple preset time slices).

[0088] It should be noted that there will be time loss during the data transmission process between the master device and the slave device. In order to keep the master device and the slave device in time synchronization, the error caused by the time loss can be accommodated by presetting the time slice to achieve time synchronization.

[0089] For example, if the time loss during transmission is A, the preset time slice can be a time period greater than A, and the slave device returns the incoming packet to the master device in the target time slice, and the master device can also receive the incoming packet within the target time slice.

[0090] S3, reconnect. After the first connection is completed, the master device needs to check whether there are any unconnected preset slave devices in the segment, and reconnect the conflicting preset slave devices.

[0091] S4, number issuance. Asynchronously process the slave device access and the slave device number issuance. When all the target slave devices in the entire segment (such as the target time period) are connected, the master device will uniformly sort them and number them.

[0092] S5, number update. After connecting to all preset slave devices in the segment, the master device periodically broadcasts whether there are new preset devices added to the system.

[0093] Figure 3 FIG. 1 is a schematic diagram of a main process of accessing a slave device according to an embodiment of the present invention. Figure 3 As shown, the steps include:

[0094] S31. Determine the number of segments into which the slave device is divided (i.e., determine the target number of segments for dividing the preset slave device into a preset device set), estimate the number of slave devices accessed in each segment according to the system design requirements, and determine the maximum waiting time for a single access to the master device (i.e., determine the target time period).

[0095] S32. Each segment is accessed by slave devices in turn. First, the master device broadcasts a query packet to the current segment (i.e., the target device set for the target time period). If a reply packet is received, it is assumed that the current segment contains slave devices that have not yet joined the network, and it begins sending access packets. If no reply packet is received multiple times, it is assumed that all slave devices in the current segment have joined the network, and the next segment is checked.

[0096] S33, the master device broadcasts an access packet, the slave device receives the access packet, and replies with an access packet after a certain delay (i.e., the target slave device returns the access packet to the master device according to the target time slice). After completing this access, the device in the segment is checked.

[0097] S34. After all the slave devices in the segments are connected, the master device broadcasts access packets periodically to check whether there are new slave devices joining the system.

[0098] Figure 4 Schematic diagram of a slave device access process according to an embodiment of the present invention. Figure 4As shown in the figure, during the slave device access process, the slave device is always in a passive response state. The master device uses a state machine to implement the entire slave device access process according to the system process. The process includes the device network access stage, the segment check stage and the number update stage.

[0099] Optionally, the segment checking phase includes:

[0100] S410, segment inspection.

[0101] S411, obtaining a segment number (eg, obtaining a set number of a preset device set in a preset time period).

[0102] S412, sending a query packet.

[0103] S413, judging whether a reply packet is received, if a reply packet is received, it means that there is no slave device that needs to be accessed, and then proceeding to S414; if a reply packet is received, it means that there is a slave device that needs to be accessed, and then proceeding to S417.

[0104] S414: Query the count, such as counting the number of connected slave devices, then return to S412 and proceed to S415.

[0105] S415: The number is issued, such as issuing the number to the connected slave device.

[0106] S416, perform segment check again, then return to S411, and enter S431 of the number update stage.

[0107] S417, the count is reset to zero, and then the process enters the network access phase S421.

[0108] Optionally, the network entry phase includes:

[0109] S421, device accesses the network.

[0110] S422, sending input network packet.

[0111] S423, determine whether a reply packet is received, if so, execute S424, otherwise return to S411.

[0112] S424, write the SN number of the slave device into the linked list.

[0113] S425, update the slave device status, and then return to S411.

[0114] Optionally, the network entry phase includes:

[0115] S431, numbering updated.

[0116] S432, sending a query packet.

[0117] S433, determine whether the reply packet is received, if not return to S431, if yes execute S434.

[0118] S434, write the SN number of the slave device into the linked list.

[0119] S435, update the slave device number, and then return to S431.

[0120] Optionally, the segment check includes: the master device traverses each segment (ie, traverses the preset slave devices in the preset device set corresponding to each preset time period) to check whether there are any slave devices that have not been connected.

[0121] Optionally, the device joining the network includes: the master device sends an access packet to the slave devices in the interval (ie, the target device set in the target time period), and the slave devices respond to the access packet in an orderly delayed manner.

[0122] Optionally, the number update includes: after completing all segment checks, entering the number update. At this time, the master device broadcasts a network access packet to search for a new device that has accessed the system.

[0123] The above-mentioned embodiment of the present invention is based on a method of orderly access based on the characteristics of slave devices. In a single access, the characteristics of the slave devices are utilized to achieve access of most slave devices, thereby overcoming the problem of long random delay access time when the number of slave devices is large. The method of asynchronously issuing numbers by segmented access solves the problem of inconsistent device numbers of slave devices during repeated access.

[0124] As an optional example, a frequency-shifting, cost-reducing indoor coverage system using FSK communication as the master-slave communication channel will be used to illustrate the details of this patent. The frequency-shifting system includes a frequency-shifting near-end unit (FSMU), a frequency-shifting far-end unit (FSRU), and a frequency-shifting remote unit (FARU). Both the FSRU and FARU are slave devices in the system and require access to the FSMU.

[0125] Optionally, the access of slave devices can be divided into two types: FSRU and FARU. Due to the large number of FARUs, FARUs are segmented by a segmentation calculation formula. The FSMU first checks the FSRU segment to see if there are any unconnected FSRUs. If there are any unconnected FSRUs, an access packet is sent to the devices in the segment. After receiving the access packet, the delay calculation formula of the FSSI value of the FSK (such as the target signal strength) and the SN number (such as the target feature) is used to calculate the delay length (that is, calculate the target time slice for returning the network access packet), and the access packet is replied after the delay. After receiving the reply packet from the FSRU, the FSMU sends an access confirmation message. The FSMU enters the segment check phase. If it is found that there are still devices that have not been connected to the segment, the FSMU sends the access packet again. After completion, the interval is checked again (that is, whether all target slave devices in the target device set corresponding to the target time period are connected) until all devices in the interval are connected (that is, until all target slave devices in the target device set are connected in the target time period). The access process of FARU in each segment is the same as the access process of FSRU and will not be repeated here.

[0126] Optionally, after all devices in the segment have accessed the network (ie, all target slave devices in the target device set have accessed the network within the target time period), the FSMU periodically broadcasts network access packets to connect the newly added slave devices to the system.

[0127] According to an embodiment of the present invention, an embodiment of a connection device for a master-slave device is also provided. It should be noted that the connection device for the master-slave device can be used to execute the connection method for the master-slave device in the embodiment of the present invention, and the connection method for the master-slave device in the embodiment of the present invention can be executed in the connection device for the master-slave device.

[0128] Figure 5 A schematic diagram of a connection device for a master and a slave device according to an embodiment of the present invention Figure 1 ,like Figure 5 As shown, the apparatus may include: a broadcast module 52, for controlling the master device to broadcast a frequency shift keying (FSK) signal to at least one target slave device in a target device set, wherein the frequency shift keying (FSK) signal carries an access packet; a receiving module 54, for controlling the master device to receive a network access packet returned by the target slave device in response to the access packet within a target time period; an access module 56, for controlling the master device to perform device access on the target slave device that returns the access packet; an allocation module 58, for controlling the master device to allocate a device number to the target slave device according to a target time slice of the network access packet returned by the target slave device, wherein the target slave device determines the target time slice of the returned network access packet according to the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, the target time slice being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being the unique identifier of the target slave device.

[0129] It should be noted that the broadcast module 52 in this embodiment can be used to execute step S102 in the embodiment of the present application, the receiving module 54 in this embodiment can be used to execute step S104 in the embodiment of the present application, the access module 56 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the allocation module 58 in this embodiment can be used to execute step S108 in the embodiment of the present application. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.

[0130] In an embodiment of the present invention, a master device broadcasts a frequency-shift keyed (FSK) signal to at least one target slave device in a target device set, wherein the frequency-shift keyed (FSK) signal carries an access packet. The master device receives a network access packet returned by the target slave device in response to the access packet within a target time period. The master device performs device access on the target slave device that returns the access packet. The master device assigns a device number to the target slave device based on the target time slot of the network access packet returned by the target slave device. The target slave device determines the target time slot for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed (FSK) signal. The target time slot is the minimum time length for time synchronization between the master device and the target slave device. The target characteristic is a unique identifier of the target slave device. Since the target signal strength of the frequency-shift keyed (FSK) signal received by each target slave device and the target characteristic of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and target characteristic is also unique. This can avoid slave device access conflicts caused by multiple target slave devices simultaneously returning network access packets, thereby achieving the technical effect of improving slave device access efficiency and solving the technical problem of low access efficiency caused by slave device access conflicts in traditional slave device access methods.

[0131] As an optional embodiment, the device also includes: a first determination submodule, used to control the master device to determine the broadcast time of the frequency shift keying FSK signal before the master device broadcasts the frequency shift keying FSK signal to at least one target slave device in the target device set; a second determination submodule, used to control the master device to determine the preset time period in the preset device set list where the broadcast time is located as the target time period, wherein the preset device set list records multiple preset time periods and a preset device set corresponding to each preset time period, and the master device receives the network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; a third determination submodule, used to control the master device to determine the preset device set corresponding to the target time period as the target device set.

[0132] As an optional embodiment, the device also includes: a detection unit, used to control the master device to detect the number of multiple preset slave devices to be connected that need to be connected before the master device determines the broadcast time of the broadcast frequency shift keying FSK signal; a division unit, used to control the master device to divide the multiple preset slave devices into multiple preset device sets when the number of devices to be connected exceeds a preset threshold; and an allocation unit, used to control the master device to allocate a preset time period for receiving network access packets to each preset device set.

[0133] As an optional embodiment, the detection unit includes: a broadcasting unit, used to control the master device to broadcast query packets to multiple preset slave devices that need device access; a receiving unit, used to control the master device to receive query response packets returned by the preset slave devices in response to the query packets; and a statistical unit, used by the master device to count the number of query response packets and determine the number to be accessed.

[0134] As an optional embodiment, the division unit includes: a query subunit, used to control the master device to query the target segment number corresponding to the number to be connected in the preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of preset device sets; an acquisition subunit, used to control the master device to obtain the preset serial number of the preset slave device, wherein the preset serial number is a unique identifier of the preset slave device; an accumulation subunit, used to control the master device to accumulate the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target accumulated value, wherein each digit is pre-set with a corresponding target constant, and different digits correspond to different target constants; a determination subunit, used for the master device to determine the remainder of dividing the target accumulated value by the target segment number as the set number of the preset device set corresponding to the preset slave device, wherein the set number of multiple preset device sets is determined according to the target segment number.

[0135] As an optional embodiment, the apparatus further includes: an acquisition unit, configured to control the master device to acquire a preset constant before accumulating the product of the numerical value of each digit in the preset serial number and the constant corresponding to each digit to obtain a target accumulated value; and a first determination unit, configured to cause the master device to use each digit as a power of the preset constant to determine a target constant corresponding to each digit.

[0136] As an optional embodiment, the allocation module includes: a second determination unit, used to control the target slave device to determine the first time and the first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; a third determination unit, used to control the target slave device to determine the second time and the second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; a fourth determination unit, used to control the target slave device to determine the return time of the return network packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; a query unit, used to control the target slave device to query the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0137] As an optional embodiment, the query unit includes: a first query sub-unit, used to control the target slave device to determine the remainder of the return time divided by the preset time length as the target time number of the target time slice; a second query sub-unit, used to control the target slave device to query the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in time order.

[0138] Figure 6 A schematic diagram of a connection device for a master and a slave device according to an embodiment of the present invention Figure 2 ,like Figure 6 As shown, the apparatus may include: a receiving module 62, used to control the target slave device to obtain the frequency shift keying FSK signal broadcast by the master device, wherein the frequency shift keying FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; a detection module 64, used to control the target slave device to detect the target signal strength of the frequency shift keying FSK signal; a determination module 66, used to control the target slave device to determine the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device; a return module 68, used to control the target slave device to return the network access packet to the master device according to the target time slice.

[0139] It should be noted that the receiving module 62 in this embodiment can be used to execute step S202 in the embodiment of the present application, the detecting module 64 in this embodiment can be used to execute step S204 in the embodiment of the present application, the determining module 66 in this embodiment can be used to execute step S206 in the embodiment of the present application, and the returning module 68 in this embodiment can be used to execute step S208 in the embodiment of the present application. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.

[0140] In an embodiment of the present invention, a target slave device obtains a frequency shift keyed FSK signal broadcast by a master device, wherein the frequency shift keyed FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keyed FSK signal; the target slave device determines a target time slot for returning the network access packet based on the target signal strength and the target feature, wherein the target time slot is the minimum time length for time synchronization between the master device and the target slave device, and the target feature is a unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slot. Since the target signal strength of the frequency shift keyed FSK signal received by each target slave device and the target feature of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and the target feature is also unique, which can avoid access conflicts of slave devices caused by multiple target slave devices returning network access packets at the same time, thereby achieving the technical effect of improving the access efficiency of slave devices, and further solving the technical problem of low access efficiency caused by access conflicts of slave devices in traditional access methods.

[0141] As an optional embodiment, the determination module includes: a second determination unit, used to control the target slave device to determine the first time and the first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; a third determination unit, used to control the target slave device to determine the second time and the second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; a fourth determination unit, used to control the target slave device to determine the return time of the return network packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; a query unit, used to query the preset time slice corresponding to the return time of the target slave device in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0142] As an optional embodiment, the query unit includes: a first query sub-unit, used to control the target slave device to determine the remainder of the return time divided by the preset time length as the target time number of the target time slice; a second query sub-unit, used to control the target slave device to query the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in time order.

[0143] Figure 7 FIG. 1 is a schematic diagram of a connection system of a master and slave devices according to an embodiment of the present invention. Figure 7 As shown, it includes: a master device 72, which is used to broadcast a frequency shift keying FSK signal to at least one target slave device in the target device set, wherein the frequency shift keying FSK signal carries an access packet; receive a network access packet returned by the target slave device in response to the access packet within a target time period; perform device access on the target slave device that returns the access packet; and assign a device number to the target slave device according to the target time slice of the network access packet returned by the target slave device; at least one target slave device 74, which is used to determine the target time slice of the returned network access packet according to the target signal strength and target characteristics of the received frequency shift keying FSK signal, the target time slice being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being the unique identifier of the target slave device.

[0144] In an embodiment of the present invention, a master device broadcasts a frequency-shift keyed (FSK) signal to at least one target slave device in a target device set, wherein the frequency-shift keyed (FSK) signal carries an access packet. The master device receives a network access packet returned by the target slave device in response to the access packet within a target time period. The master device performs device access on the target slave device that returns the access packet. The master device assigns a device number to the target slave device based on the target time slot of the network access packet returned by the target slave device. The target slave device determines the target time slot for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed (FSK) signal. The target time slot is the minimum time length for time synchronization between the master device and the target slave device. The target characteristic is a unique identifier of the target slave device. Since the target signal strength of the frequency-shift keyed (FSK) signal received by each target slave device and the target characteristic of each target slave device are unique, the target time slot for returning the network access packet determined based on the target signal strength and target characteristic is also unique. This can avoid slave device access conflicts caused by multiple target slave devices simultaneously returning network access packets, thereby achieving the technical effect of improving slave device access efficiency and solving the technical problem of low access efficiency caused by slave device access conflicts in traditional slave device access methods.

[0145] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.

[0146] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of a computer network.

[0147] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the master-slave device connection method: the master device broadcasts a frequency shift keying FSK signal to at least one target slave device in the target device set, wherein the frequency shift keying FSK signal carries an access packet; the master device receives the network access packet returned by the target slave device in response to the access packet within the target time period; the master device performs device access on the target slave device that returns the access packet; the master device assigns a device number to the target slave device according to the target time slice of the network access packet returned by the target slave device, wherein the target slave device determines the target time slice of the returned network access packet based on the target signal strength and target characteristics of the received frequency shift keying FSK signal, the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

[0148] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the master-slave device connection method: the target slave device obtains the frequency shift keying FSK signal broadcast by the master device, wherein the frequency shift keying FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keying FSK signal; the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slice.

[0149] Optionally, Figure 8 1 is a block diagram of a computer terminal according to an embodiment of the present invention. Figure 8 As shown, the computer terminal 80 may include: one or more (only one is shown in the figure) processors 82 and a memory 84.

[0150] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the master-slave device connection method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implementing the master-slave device connection method described above. The memory may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely located relative to the processor, and these remote memories may be connected to the terminal 80 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0151] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the master device broadcasts a frequency shift keying FSK signal to at least one target slave device in the target device set, wherein the frequency shift keying FSK signal carries an access packet; the master device receives the network access packet returned by the target slave device in response to the access packet within the target time period; the master device performs device access on the target slave device that returns the access packet; the master device assigns a device number to the target slave device according to the target time slice of the network access packet returned by the target slave device, wherein the target slave device determines the target time slice of the returned network access packet based on the target signal strength and target characteristics of the received frequency shift keying FSK signal, the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

[0152] Optionally, the processor may also execute the program code of the following steps: before the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in the target device set, the master device determines the broadcast time of the frequency shift keying (FSK) signal; the master device determines in the preset device set list the preset time period in which the broadcast time is located as the target time period, wherein the preset device set list records a plurality of preset time periods and a preset device set corresponding to each preset time period, and the master device receives a network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; the master device determines the preset device set corresponding to the target time period as the target device set.

[0153] Optionally, the above-mentioned processor can also execute the program code of the following steps: before the master device determines the broadcast time of the broadcast frequency shift keying FSK signal, the master device detects the number of multiple preset slave devices to be connected that need to be connected; when the number of devices to be connected exceeds a preset threshold, the master device divides the multiple preset slave devices into multiple preset device sets; the master device allocates a preset time period for receiving network access packets to each preset device set.

[0154] Optionally, the processor may also execute the program code of the following steps: the master device broadcasts a query packet to multiple preset slave devices that require device access; the master device receives a query reply packet returned by the preset slave device in response to the query packet; the master device counts the number of query reply packets to determine the number to be accessed.

[0155] Optionally, the processor may also execute the program code of the following steps: the master device queries the target segment number corresponding to the number to be connected in the preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of preset device sets; the master device obtains the preset serial number of the preset slave device, wherein the preset serial number is the unique identifier of the preset slave device; the master device accumulates the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target cumulative value, wherein each digit is pre-set with a corresponding target constant, and different digits correspond to different target constants; the master device divides the target cumulative value by the remainder of the target segment number to determine the set number of the preset device set corresponding to the preset slave device, wherein the set number of multiple preset device sets is determined according to the target segment number.

[0156] Optionally, the processor may also execute the program code of the following steps: before accumulating the product of the numerical value of each digit in the preset serial number and the constant corresponding to each digit to obtain the target accumulated value, the master device obtains the preset constant; the master device uses each digit as the power of the preset constant to determine the target constant corresponding to each digit.

[0157] Optionally, the processor may also execute the program code of the following steps: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of the return access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0158] Optionally, the processor may also execute the program code of the following steps: the target slave device divides the return time by the preset time length to determine the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in chronological order.

[0159] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the target slave device obtains the frequency shift keying FSK signal broadcast by the master device, wherein the frequency shift keying FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keying FSK signal; the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slice.

[0160] Optionally, the processor may also execute the program code of the following steps: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of the return access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0161] Optionally, the processor may also execute the program code of the following steps: the target slave device divides the return time by the preset time length to determine the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in chronological order.

[0162] By adopting the embodiment of the present invention, a connection scheme for master and slave devices is provided. Since the target signal strength of the frequency shift keying (FSK) signal received by each target slave device and the target characteristics of each target slave device are unique, the target time slice for returning the network access packet determined based on the target signal strength and the target characteristics is also unique. Access conflicts of slave devices caused by multiple target slave devices returning network access packets at the same time can be avoided, thereby achieving the technical effect of improving the access efficiency of slave devices, and further solving the technical problem of low access efficiency caused by access conflicts of slave devices in traditional access methods.

[0163] It can be understood by those skilled in the art that Figure 8The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (MID), a PAD, or other terminal devices. Figure 8 It does not limit the structure of the above electronic device. For example, the computer terminal 80 may also include Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Figure 8 Different configurations shown.

[0164] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile medium. The non-volatile storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0165] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the master-slave device connection method provided in the embodiment.

[0166] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0167] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the master device broadcasts a frequency shift keyed FSK signal to at least one target slave device in the target device set, wherein the frequency shift keyed FSK signal carries an access packet; the master device receives the network access packet returned by the target slave device in response to the access packet within a target time period; the master device performs device access on the target slave device that returns the access packet; the master device assigns a device number to the target slave device based on the target time slice of the network access packet returned by the target slave device, wherein the target slave device determines the target time slice of the returned network access packet based on the target signal strength and target characteristics of the received frequency shift keyed FSK signal, the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

[0168] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in a target device set, the master device determines the broadcast time of the frequency shift keying (FSK) signal; the master device determines in a preset device set list a preset time period in which the broadcast time is located as a target time period, wherein the preset device set list records a plurality of preset time periods and a preset device set corresponding to each preset time period, and the master device receives a network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; the master device determines the preset device set corresponding to the target time period as the target device set.

[0169] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before the master device determines the broadcast time of the broadcast frequency-shift keying (FSK) signal, the master device detects the number of multiple preset slave devices to be connected that require device access; when the number of devices to be connected exceeds a preset threshold, the master device divides the multiple preset slave devices into multiple preset device sets; the master device allocates a preset time period for receiving network access packets to each preset device set.

[0170] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the master device broadcasts a query packet to multiple preset slave devices that require device access; the master device receives a query return packet returned by the preset slave device in response to the query packet; the master device counts the number of query return packets to determine the number to be accessed.

[0171] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the master device queries the target segment number corresponding to the number to be connected in the preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of preset device sets; the master device obtains the preset serial number of the preset slave device, wherein the preset serial number is the unique identifier of the preset slave device; the master device accumulates the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target accumulated value, wherein each digit is pre-set with a corresponding target constant, and different digits correspond to different target constants; the master device determines the remainder of dividing the target accumulated value by the target segment number as the set number of the preset device set corresponding to the preset slave device, wherein the set number of multiple preset device sets is determined according to the target segment number.

[0172] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: before accumulating the product of the numerical value of each digit in the preset serial number and the constant corresponding to each digit to obtain the target accumulated value, the master device obtains the preset constant; the master device uses each digit as a power of the preset constant to determine the target constant corresponding to each digit.

[0173] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of the returned access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0174] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the target slave device divides the return time by the preset time length and determines the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in chronological order.

[0175] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the target slave device obtains the frequency shift keyed FSK signal broadcast by the master device, wherein the frequency shift keyed FSK signal carries an access packet, and the target slave device is used to generate a network access packet in response to the access packet; the target slave device detects the target signal strength of the frequency shift keyed FSK signal; the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics, wherein the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device; the target slave device returns the network access packet to the master device according to the target time slice.

[0176] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: the target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is the relative duration of the reception time of the access packet; the target slave device determines a second time and a second weight based on the target characteristics, wherein the second time is the relative duration of the reception time of the access packet; the target slave device determines the return time of the returned access packet based on the product of the first duration and the first weight, and the product of the second duration and the second weight, wherein the return time is the relative duration of the reception time of the access packet; the target slave device queries the preset time slice corresponding to the return time in the preset time slice set as the target time slice, wherein the preset time slice set includes multiple continuous preset time slices divided according to preset time lengths.

[0177] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: the target slave device divides the return time by the preset time length and determines the remainder as the target time number of the target time slice; the target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in chronological order.

[0178] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0179] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0180] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0181] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0182] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0183] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a non-volatile storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code.

[0184] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A method for connecting a master and a slave device, characterized in that: include: The master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in the target device set, wherein the frequency shift keying (FSK) signal carries an access packet; The master device receives the network access packet returned by the target slave device in response to the access packet within a target time period; The master device performs device access on the target slave device that returns the access packet; The master device assigns a device number to the target slave device according to the target time slice for returning the network access packet from the target slave device, wherein the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed FSK signal, the target time slice being the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic being the unique identifier of the target slave device.

2. The method according to claim 1, characterized in that Before the master device broadcasts a frequency shift keying (FSK) signal to at least one target slave device in the target device set, the method further includes: The master device determines a broadcast time for broadcasting the frequency shift keying (FSK) signal; The master device determines, from a preset device set list, a preset time period in which the broadcast time falls as the target time period, wherein the preset device set list records a plurality of preset time periods and a preset device set corresponding to each preset time period, and the master device receives a network access packet returned by at least one preset slave device in the corresponding preset device set within the preset time period; The master device determines the preset device set corresponding to the target time period as the target device set.

3. The method according to claim 2, characterized in that Before the master device determines the broadcast time of broadcasting the frequency shift keying (FSK) signal, the method further includes: The master device detects the number of multiple preset slave devices to be connected that need to be connected; When the number of the waiting slave devices exceeds a preset threshold, the master device divides the plurality of preset slave devices into a plurality of preset device sets; The master device allocates a preset time period for receiving network-incoming packets to each of the preset device sets.

4. The method according to claim 3, characterized in that The master device detects the number of multiple preset slave devices to be connected that need to be connected, including: The master device broadcasts a query packet to a plurality of preset slave devices that need device access; The master device receives a query response packet returned by the preset slave device in response to the query packet; The master device counts the number of query response packets to determine the number of pending accesses.

5. The method according to claim 3, characterized in that When the number of the waiting slave devices exceeds a preset threshold, the master device divides the plurality of preset slave devices into a plurality of preset device sets, including: The master device queries the target segment number corresponding to the number to be connected in a preset mapping relationship, wherein the preset mapping relationship is used to record multiple preset number intervals and the preset segment number corresponding to each preset number interval, and the preset segment number is used to represent the number of the preset device set; The master device obtains a preset serial number of the preset slave device, wherein the preset serial number is a unique identifier of the preset slave device; The master device accumulates the product of the value of each digit in the preset serial number and the target constant corresponding to each digit to obtain a target accumulated value, wherein each digit is preset with a corresponding target constant, and different digits correspond to different target constants; The master device determines the remainder of dividing the target accumulated value by the target number of segments as the set number of the preset device set corresponding to the preset slave device, wherein the set number is determined by multiple preset device sets according to the target number of segments.

6. The method according to claim 1, characterized in that The target slave device determines the target time slice for returning the incoming packet according to the target signal strength and target characteristics of the received frequency shift keying (FSK) signal, including: The target slave device determines a first time and a first weight based on the target signal strength, wherein the first time is a relative duration of a reception time of the access packet; The target slave device determines a second time and a second weight based on the target feature, wherein the second time is a relative duration of a reception time of the access packet; The target slave device determines, based on a product of the first time and the first weight, a product of the second time and the second weight, a return time for returning the access packet, wherein the return time is a relative duration to a reception time of the access packet; The target slave device queries a preset time slice corresponding to the return time in a preset time slice set as the target time slice, wherein the preset time slice set is a plurality of continuous preset time slices obtained by dividing the target time period into preset time lengths.

7. The method according to claim 6, characterized in that The target slave device searches for the preset time slice corresponding to the return time in the preset time slice set as the target time slice, including: The target slave device determines the remainder of dividing the return time by the preset number of time slices as the target time number of the target time slice, wherein the preset number of time slices is the number of the preset time slices in the preset time slice set; The target slave device queries the preset time slice indicated by the target time number in the preset time slice set as the target time slice, wherein the preset time slice set pre-sets a corresponding preset time number for each preset time slice in time sequence.

8. A method for connecting a master and a slave device, characterized in that: include: The target slave device obtains a frequency shift keying (FSK) signal broadcast by the master device, wherein the frequency shift keying (FSK) signal carries an access packet, and the target slave device is configured to generate a network access packet in response to the access packet; The target slave device detects the target signal strength of the frequency shift keying FSK signal; The target slave device determines a target time slice for returning the incoming packet based on the target signal strength and the target characteristic, wherein the target time slice is a minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device; The target slave device returns the network-entry packet to the master device according to the target time slice.

9. A master device, characterized in that: include: A broadcast module, configured to broadcast a frequency shift keying (FSK) signal to at least one target slave device in the target device set, wherein the frequency shift keying (FSK) signal carries an access packet; A receiving module, configured to receive a network access packet returned by the target slave device in response to the access packet within a target time period; An access module, configured to perform device access on the target slave device that returns the access packet; An allocation module is used to allocate a device number to the target slave device according to the target time slice for returning the network access packet from the target slave device, wherein the target slave device determines the target time slice for returning the network access packet based on the target signal strength and target characteristics of the received frequency-shift keyed FSK signal, the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

10. A slave device, characterized in that: include: an acquisition module, configured to acquire a frequency shift keying (FSK) signal broadcast by a master device, wherein the frequency shift keying (FSK) signal carries an access packet, and the target slave device is configured to generate a network access packet in response to the access packet; A detection module, configured to detect a target signal strength of the frequency shift keying (FSK) signal; a determination module, configured to determine a target time slice for returning the incoming packet based on the target signal strength and the target characteristic, wherein the target time slice is a minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is a unique identifier of the target slave device; The return module is used to return the network access packet to the master device according to the target time slice.

11. A master-slave device connection system, characterized in that: include: The master device is configured to broadcast a frequency shift keying (FSK) signal to at least one target slave device in a target device set, wherein the frequency shift keying (FSK) signal carries an access packet; receive a network access packet returned by the target slave device in response to the access packet within a target time period; perform device access on the target slave device that returns the access packet; and assign a device number to the target slave device according to a target time slice in which the target slave device returns the network access packet; At least one of the target slave devices is used to determine the target time slice for returning the access packet based on the target signal strength and target characteristics of the received frequency-shift keyed FSK signal, where the target time slice is the minimum time length for time synchronization between the master device and the target slave device, and the target characteristic is the unique identifier of the target slave device.

12. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the processor, wherein the method for connecting a master and a slave device according to any one of claims 1 to 8 is executed when the program is run.

Citation Information

Patent Citations

  • Layered networking method based on master-slave node communication network

    CN103475524A

  • Method and system for master device to automatically number slave devices

    CN105099562A