Method and device for configuring number

The method automates the assignment of device identifiers using wireless parameters, addressing inefficiencies in manual reprogramming and reducing hardware costs for device configuration.

CN120315731APending Publication Date: 2025-07-15NUVOTON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411883522.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-12
Filing Date
2024-12-19
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

The prior art requires re-firing when updating slave device numbers, resulting in increased hardware costs and inability to update instantly.

Method used

By wirelessly utilizing wireless related parameters between master and slave devices, such as RSSI and geographical location, the slave device number is automatically allocated to achieve rapid deployment and reduce hardware costs.

Benefits of technology

A fast configuration of slave device numbers is achieved, reducing hardware costs and improving update immediacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120315731A_ABST
    Figure CN120315731A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and a device for configuring a serial number, the method is used in a slave device, and the method comprises the following steps: when the slave device judges that the slave device does not have a serial number, receiving a master pairing packet from a master device; transmitting a slave pairing packet to the master device according to the master pairing packet, the slave pairing packet at least comprising a serial number of the slave device and a received signal strength indication (RSSI); receiving a master device number packet transmitted by the master device, wherein the master device number packet at least comprises a slave device identifier; and configuring the slave device identifier as the number of the slave device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to a method for deploying devices, and particularly to a method and device for configuring numbers. Background Art

[0002] Before a host or master device transmits data wirelessly to several geographically dispersed slave devices, different numbers must be programmed for each slave device, or a dip switch is used to set the number of each slave device.

[0003] However, when the number needs to be updated, the number must be reprogrammed for each slave device, which increases the hardware cost and has the disadvantage of being unable to update immediately.

[0004] Therefore, how to develop a method for more quickly configuring the numbers of slave devices to achieve the purpose of quickly deploying devices is a topic that those skilled in the art are working on. Summary of the Invention

[0005] The content disclosed below is only exemplary and is not intended to be limiting in any way. In addition to the aspects, embodiments, and features described, other aspects, embodiments, and features will also be apparent by reference to the accompanying drawings and the following detailed embodiments. That is, the content disclosed below is provided to introduce concepts, highlights, benefits, and novel and non-obvious technical advantages described herein. The selected, not all, embodiments will be described in further detail below. Therefore, the content disclosed below is not intended to be a necessary feature of the claimed subject matter, nor is it intended to be used in determining the scope of the claimed subject matter.

[0006] Therefore, the main objective of this application is to provide a method and device for configuring numbers, which adopt wireless-related parameters during pairing settings to automatically assign numbers to each slave device, so as to achieve the purpose of quickly deploying devices and reducing hardware costs.

[0007] This application proposes a method for configuring numbers, which is used in a slave device and includes: when the slave device determines that the slave device does not have a number, receiving a master pairing packet from a master device; transmitting a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication (RSSI); receiving a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and configuring the slave device identifier as the number of the slave device.

[0008] In some embodiments, the master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, where the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing.

[0009] In some embodiments, before transmitting the slave pairing packet to the master device, the method further includes: obtaining a distance between the slave device and the master device according to the master device location; generating a time delay according to the distance; and transmitting the slave pairing packet to the master device after the time delay.

[0010] The present application proposes a method for configuring numbers, which is used in a master device and includes: broadcasting a master pairing packet to a plurality of slave devices; receiving slave pairing packets transmitted by the slave devices, where each slave pairing packet includes at least a serial number of each slave device and radio frequency parameter information, and the radio frequency parameter information includes a location and / or a received signal strength indication (RSSI) of each slave device; obtaining a distance between each slave device and the master device according to the radio frequency parameter information of each slave device; sorting the slave devices according to the distance between each slave device and the master device and the received signal strength indication; configuring a corresponding slave device identifier for each slave device according to the sorting; and transmitting a master device number packet to each slave device, where the master device number packet includes the corresponding slave device identifier of each slave device.

[0011] In some embodiments, in the step of broadcasting the master pairing packet to the slave devices, the method further includes: starting a timer to count a time interval; and sorting the slave devices corresponding to the slave pairing packets received within the time interval when the timer expires.

[0012] In some embodiments, the master device number packet further includes: a master device identifier, a master device time, the serial number of the slave device, and a number packet type, where the master device time indicates the time when the master device transmits the master device number packet, and the number packet type indicates that the master device number packet is used to perform the allocation of the numbers.

[0013] The present application provides an apparatus for configuring numbers, where the apparatus is a slave device, including: one or more processors; and one or more computer storage media storing computer-readable instructions, where the processors use the computer storage media to execute: when the slave device determines that it does not have a number, receive a master pairing packet from a master device; transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication (RSSI); receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and configure the slave device identifier as the number of the slave device.

[0014] The present application provides an apparatus for configuring numbers, where the apparatus is a master device, including: one or more processors; and one or more computer storage media storing computer-readable instructions, where the processors use the computer storage media to execute: broadcast a master pairing packet to a plurality of slave devices; receive slave pairing packets transmitted by the slave devices, where each slave pairing packet at least includes a serial number of each slave device and radio frequency parameter information, and the radio frequency parameter information includes a location and / or a received signal strength indication (RSSI) of each slave device; obtain a distance between each slave device and the master device according to the radio frequency parameter information of each slave device; sort the slave devices according to the distance between each slave device and the master device and the received signal strength indication; respectively configure a corresponding slave device identifier for each slave device according to the sorting; and transmit a master device number packet to each slave device, where the master device number packet includes the corresponding slave device identifier of each slave device.

[0015] The present application provides a method for configuring numbers, which is used in a slave device and includes: when the slave device determines that it does not have a number, receive a master pairing packet from a master device; transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a location; receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and configure the slave device identifier as the number of the slave device.

[0016] The present application provides an apparatus for configuring a number, where the apparatus is a slave device, including: one or more processors; and one or more computer storage media storing computer-readable instructions, where the processors use the computer storage media to execute: when the slave device determines that it does not have a number, receive a master pairing packet from a master device; transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number and a location of the slave device; receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and configure the slave device identifier as the number of the slave device. Description of the Drawings

[0017] Figure 1 FIG. is a system for configuring a number according to an embodiment of the present application.

[0018] Figure 2 FIG. is a timing diagram of a method for configuring a number according to an embodiment of the present application.

[0019] Figure 3 FIG. is a flowchart of a method for configuring a number according to an embodiment of the present application.

[0020] Figure 4 FIG. is a flowchart of a method for configuring a number according to an embodiment of the present application.

[0021] Figure 5 FIG. is a flowchart of a method for configuring a number according to an embodiment of the present application.

[0022] Figure 6 FIG. is an exemplary operating environment for implementing an embodiment of the present invention.

[0023] [Symbol Description]

[0024] 100: System

[0025] 110: Master device

[0026] 121 - 124: Slave devices

[0027] 200: Timing diagram

[0028] T0, T1, T2: Timers

[0029] S205, S210, S215, S220, S225, S230, S235, S240: Steps 300: Method

[0030] S305, S310, S315, S320: Steps 400: Method

[0031] S405, S410, S415, S420: Step 500: Method

[0032] S505, S510, S515, S520, S525, S530: Step 600: Electronic device

[0033] 610: Bus

[0034] 612: Memory

[0035] 614: Processor

[0036] 616: Display component

[0037] 618: I / O port

[0038] 620: I / O component

[0039] 622: Power supply. Detailed implementation manners

[0040] In the following, various aspects of the present application will be described more fully with reference to the accompanying drawings. However, the present application can be embodied in many different forms and should not be construed as limited to any specific structure or function presented throughout the present application. On the contrary, providing these aspects will make the present application thorough and complete, and the present application will fully convey the scope of the present application to those skilled in the art. Based on the teachings herein, those skilled in the art should realize that the scope of the present application, whether implemented alone or in combination with any other aspect of the present application, is intended to cover any aspect disclosed herein. For example, any number of the devices or methods proposed herein can be used to implement it. Additionally, in addition to the various aspects of the present application proposed herein, the scope of the present application is more intended to cover devices or methods implemented using other structures, functions, or a combination of structures and functions. It should be understood that any aspect disclosed herein can be embodied by one or more elements of the claims.

[0041] The term "exemplary" is used herein to mean "serving as an example, instance, or illustration". Any aspect of the present application or a design described as "exemplary" herein is not necessarily construed as being preferred over or superior to other aspects of the present application or design. Additionally, the same numerals indicate the same elements in all several figures, and unless otherwise specified in the description, the articles "a" and "the" include plural references.

[0042] It will be appreciated that when an element is referred to as being "connected" or "coupled" to another element, the element can be directly connected to or coupled to the other element or an intermediate element may be present. Conversely, when the element is referred to as being "directly connected" or "directly coupled" to another element, there is no intermediate element. Other words used to describe the relationship between elements should be interpreted in a similar manner (e.g., "between" and "directly between", "adjacent" and "directly adjacent", etc.).

[0043] Embodiments of the present application provide a method and apparatus for configuring numbers. When performing pairing settings, wireless-related parameters are used to automatically assign numbers to each slave device, so as to achieve the purpose of quickly deploying devices and reducing hardware costs.

[0044] Figure 1 FIG. 7 shows a system 100 for configuring numbers according to an embodiment of the present application. In Figure 1 FIG. 7, the system 100 may be formed by at least one master device 110 and a plurality of slave devices 121-124.

[0045] The master device 110 may range in type from a small host device (e.g., a gateway, a Wi-Fi server) to a large host system (e.g., a large server). The slave devices 121-124 are mainly used for monitoring objects and collecting status data, and may be, but are not limited to, various detection devices such as water meters, gas meters, electricity meters, heat meters, smoke alarms, pet trackers, etc.

[0046] The master device 110 may be connected to the slave devices 121-124 through a network. The network may be any type of network familiar to those skilled in the art, and any one of various communication available protocols may be used to support data communication, including but not limited to TCP / IP, etc. For example, the network may be a local area network (LAN), such as an Ethernet network, etc., a virtual network, including but not limited to a virtual private network (VPN), the Internet, a wireless network, and / or any combination of these and / or other networks.

[0047] It should be understood that Figure 1 the master device 110 and the slave devices 121-124 shown in FIG. 7 are examples of the architecture of the system 100 for configuring numbers. Figure 1 Each device shown may be implemented by any type of electronic device, such as the electronic device 600 described with reference to Figure 6 FIG. 24, as Figure 6 shown in FIG. 26.

[0048] Figure 2 FIG. 30 is a timing diagram 200 showing the method for configuring numbers according to an embodiment of the present application.

[0049] For ease of explanation, the number of slave devices is Figure 2 illustrated by two slave devices in Figure 2 the following description. However, those of ordinary skill in the art may have more than two slave devices, and thus the present application is not limited to

[0050] First, in step S205, the master device broadcasts a master pairing packet to the first slave device and the second slave device. In this step, the master device may start a timer T0 to count a time interval. In an embodiment, the master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, where the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing.

[0051] In steps S210 and S215, the first slave device and the second slave device respectively transmit a first slave pairing packet and a second slave pairing packet to the master device according to the master pairing packet. The first slave pairing packet includes a serial number of the first slave device, radio frequency (RF) parameter information, and a pairing packet type, and the second slave pairing packet includes a serial number of the second slave device, RF parameter information, and a pairing packet type. In an embodiment, the RF parameter information includes the location of the device itself and / or a received signal strength indication (RSSI). The pairing packet type indicates that the first slave pairing packet and the second slave pairing packet are used to perform pairing. In this step, the first slave device and the second slave device may respectively start their own timers T1 and T2 when starting to transmit the slave pairing packets to determine whether the first slave device and the second slave device receive the master device number packets transmitted from the master device when the timers T1 and T2 expire.

[0052] When the timer T0 expires, in step S220, the master device sorts the first slave device and the second slave device corresponding to the first slave pairing packet and the second slave pairing packet received within the time interval, and respectively configures a first slave device identifier and a second slave device identifier corresponding to the first slave device and the second slave device according to the sorting.

[0053] More specifically, the master device obtains the positions of the first slave device and the second slave device according to the received signal strength indications of the first slave device and the second slave device respectively. Then, the master device obtains a first distance between the first slave device and the master device and a second distance between the second slave device and the master device according to the positions of the first slave device and the second slave device respectively. The master device sorts the first slave device and the second slave device according to the first distance, the second distance, the received signal strength indication in the first slave pairing packet, and the received signal strength indication in the second slave pairing packet. For example, when the received signal strength indication in the first slave pairing packet is greater than the received signal strength indication in the second slave pairing packet, the master device may configure the slave device identifier of the first slave device as 1 and the slave device identifier of the second slave device as 2 in the order of the magnitude of the signal strength indication. Another example is that when the received signal strength indication in the first slave pairing packet is equal to the received signal strength indication in the second slave pairing packet, the master device may then sort the first slave device and the second slave device with reference to the first distance and the second distance. When the second distance is less than the first distance, the master device may configure the slave device identifier of the second slave device as 1 and the slave device identifier of the first slave device as 2 in the order from near to far. In another example, the master device may also first sort the slave device and the second slave device according to the distance from near to far, and then sort them with reference to the magnitude of the signal strength indication. Those of ordinary skill in the art can make appropriate replacements or adjustments according to this embodiment.

[0054] Another example is that the master device can obtain a first distance between the first slave device and the master device and a second distance between the second slave device and the master device according to the positions of the first slave device and the second slave device. The master device then sorts the first slave device and the second slave device according to the first distance and the second distance. When the second distance is less than the first distance, the master device may configure the slave device identifier of the second slave device as 1 and the slave device identifier of the first slave device as 2 in the order from near to far.

[0055] In steps S225 and S230, the master device transmits a first master device ID packet and a second master device ID packet to the first slave device and the second slave device respectively. The first master device ID packet includes a master device identifier, a master device time, the serial number of the first slave device, a first slave device identifier, and a packet type. The master device time indicates the time when the master device transmits the first master device ID packet, and the packet type indicates that the first master device ID packet is used to perform number allocation. The second master device ID packet includes a master device identifier, a master device time, the serial number of the second slave device, a second slave device identifier, and a packet type. The master device time indicates the time when the master device transmits the second master device ID packet, and the packet type indicates that the second master device ID packet is used to perform number allocation. In some embodiments, the master device may also first transmit the second master device ID packet to the second slave device and then transmit the first master device ID packet to the first slave device, not limited to Figure 2 the sequence shown. In other words, the master device sends the master device ID packets to the slave devices one by one and does not send them simultaneously.

[0056] In step S235, the first slave device configures the first slave device identifier as the number of the first slave device.

[0057] In step S240, the second slave device configures the second slave device identifier as the number of the second slave device.

[0058] In one embodiment, before steps S210 and S215, the first slave device and the second slave device may respectively generate random time delays according to the distances between themselves and the master device, and only after passing the time delays do they respectively transmit their slave pairing packets to the master device. The main reason for generating the time delays is to prevent the first slave device and the second slave device from replying with the slave pairing packets at the same time, so as to avoid the situation where the master device receives a large number of slave pairing packets at the same time.

[0059] In another embodiment, after transmitting the master device ID packets, the master device will restart to perform coding updates. Similarly, when the first slave device and the second slave device have configured their respective numbers, they will also restart to perform coding updates.

[0060] In still some other embodiments, the master device can broadcast master pairing packets at a fixed period to detect whether there are new slave devices. When a new slave device wants to enter the system of the master device, the new slave device and the master device will repeat the execution of Figure 2The steps of S210 to S240. However, since the master device has already configured the numbers of the first slave device and the second slave device, the newly detected slave devices will be assigned subsequent numbers to avoid duplication with the previous numbers.

[0061] Figure 3 is a flowchart showing a method 300 for configuring numbers according to an embodiment of the present application. This method 300 is executed by one of the slave devices 121 to 124 as shown. Figure 1 shown.

[0062] In step S305, when the slave device determines that it does not have a number, it receives a master pairing packet from a master device, where the master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, where the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing.

[0063] In another embodiment, when the slave device determines that it already has a number, it will execute according to normal operation and will not execute the subsequent process.

[0064] Next, in step S310, the slave device transmits a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication (RSSI). In one embodiment, the slave pairing packet may further include a pairing packet type, where the pairing packet type indicates that this slave pairing packet is used to perform pairing.

[0065] In another embodiment, before transmitting the slave pairing packet to the master device, the slave device may obtain a distance between the slave device and the master device according to the master device location, and generate a time delay according to the distance. The slave device transmits the slave pairing packet to the master device after the time delay to avoid the master device receiving a large number of slave pairing packets at the same time.

[0066] Then, in step S315, the slave device receives a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier. In one embodiment, the master device number packet may further include: a master device identifier, a master device time, the serial number of the slave device, a number packet type, where the master device time indicates the time when the master device transmits the master device number packet, and the number packet type indicates that the master device number packet is used to perform the number assignment.

[0067] In step S320, the slave device configures the slave device identifier as the number of the slave device.

[0068] In another embodiment, the slave device may start a timer in step S310. When the timer expires and the slave device does not receive a master device number packet transmitted by the master device, it may return to step S305 to wait for a master pairing packet transmitted by the master device.

[0069] Figure 4 is a flowchart showing a method 400 for configuring numbers according to an embodiment of the present application. This method 400 is executed by one of the slave devices 121-124 as shown in Figure 1 shown. Different from Figure 3 in Figure 3 the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication, while in Figure 4 the slave pairing packet at least includes a serial number of the slave device and a location.

[0070] In step S405, when the slave device determines that the slave device does not have a number, it receives a master pairing packet from a master device, where the master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, where the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing.

[0071] In another embodiment, when the slave device determines that the slave device itself already has a number, it will execute according to normal operation and will not execute the subsequent process.

[0072] Next, in step S410, the slave device transmits a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a location. In one embodiment, the slave pairing packet may further include a pairing packet type, where the pairing packet type indicates that this slave pairing packet is used to perform pairing.

[0073] In another embodiment, before transmitting the slave pairing packet to the master device, the slave device may obtain a distance between the slave device and the master device according to the master device location, and generate a time delay according to the distance. The slave device transmits the slave pairing packet to the master device after the time delay to avoid the master device receiving a large number of slave pairing packets at the same time.

[0074] Next, in step S415, the slave device receives a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier. In one embodiment, the master device number packet may further include: a master device identifier, a master device time, the serial number of the slave device, and a number packet type, where the master device time indicates the time when the master device transmits the master device number packet, and the number packet type indicates that the master device number packet is used to perform the allocation of the number.

[0075] In step S420, the slave device configures the slave device identifier as the number of the slave device.

[0076] In another embodiment, the slave device may start a timer in step S410. When the timer expires and the slave device does not receive a master device number packet transmitted by the master device, it may return to step S405 to wait for a master pairing packet transmitted by the master device.

[0077] Figure 5 is a flowchart showing a method 500 for configuring numbers according to an embodiment of the present application. This method 500 is executed by the master device 110 as shown in Figure 1 shown.

[0078] In step S505, the master device broadcasts a master pairing packet to a plurality of slave devices, where the master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, where the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing. In one embodiment, in this step S505, the master device starts a timer to count a time interval. Subsequently, when waiting for the timer to expire, the master device sorts the slave devices corresponding to the received slave pairing packets within the time interval.

[0079] In step S510, the master device receives the slave pairing packets transmitted by the slave devices, where each of the slave pairing packets at least includes a serial number of each of the slave devices and radio frequency parameter information, and the radio frequency parameter information includes a location of each of the slave devices and / or a Received Signal Strength Indication (RSSI). In one embodiment, each of the slave pairing packets may further include a pairing packet type, where this pairing packet type indicates that this slave pairing packet is used to perform pairing.

[0080] In step S515, the master device obtains a distance between each of the slave devices and the master device according to the radio frequency parameter information of each of the slave devices. More specifically, when the radio frequency parameter information includes a received signal strength indication, the master device can obtain the respective positions of each of the slave devices according to the received signal strength indication of each of the slave devices. Then, the master device obtains the distance between each of the slave devices and the master device according to the respective positions of each of the slave devices. Take another example, when the radio frequency parameter information includes the position of each of the slave devices, the master device can obtain the distance between each of the slave devices and the master device according to the position of each of the slave devices.

[0081] Then, in step S520, the master device sorts the slave devices according to the distance between each of the slave devices and the master device and the received signal strength indication.

[0082] Next, in step S525, the master device configures a corresponding slave device identifier for each of the slave devices according to the sorting.

[0083] In step S530, the master device transmits a master device number packet to each of the slave devices, where the master device number packet includes the slave device identifier corresponding to each of the slave devices. In one embodiment, the master device number packet further includes: a master device identifier, a master device time, the serial number of the slave device, and a number packet type, where the master device time indicates the time when the master device transmits the master device number packet, and the number packet type indicates that the master device number packet is used to perform the allocation of the numbers.

[0084] As described above, the method and device for configuring numbers proposed in the present application automatically allocate numbers for each slave device using wireless related parameters (such as RSSI and geographical location information, etc.) during the pairing setting to achieve the purpose of quickly deploying the slave devices.

[0085] Specifically refer to Figure 6 , Figure 6 which shows an exemplary operating environment for implementing the embodiments of the present application, generally regarded as the electronic device 600. The electronic device 600 is only an example of a suitable computing environment and is not intended to imply any limitation on the scope of use or function of the present invention. The electronic device 600 should not be construed as having any dependencies or requirements related to any one or combination of the shown elements.

[0086] The present invention can be implemented in computer program code or machine-usable instructions for executing the present invention. The instructions can be computer-executable instructions of program modules, and the program modules are executed by a computer or other machines, such as personal digital assistants or other portable devices. Generally, program modules include routines, programs, objects, components, data structures, etc. Program modules refer to program code for performing specific tasks or implementing specific abstract data types. The present invention can be implemented in various system configurations, including portable devices, consumer electronics products, general-purpose computers, more professional computing devices, etc. The present invention can also be implemented in a distributed computing environment, processing devices connected by a communication network.

[0087] Reference Figure 6 。The electronic device 600 includes a bus 610 directly or indirectly coupled to the following devices, a memory 612, one or more processors 614, one or more display elements 616, an input / output (I / O) port 618, an input / output (I / O) element 620, and an illustrative power supply 622. The bus 610 represents an element (e.g., an address bus, a data bus, or a combination thereof) that can be one or more buses. Although Figure 6 each block of is shown briefly as a line for simplicity, in fact, the demarcation of each element is not specific. For example, the rendering element of a display device can be regarded as an I / O element; a processor can have a memory.

[0088] The electronic device 600 generally includes various computer-readable media. The computer-readable media can be any available media that can be accessed by the electronic device 600, which includes both volatile and non-volatile media, removable and non-removable media. By way of example and not limitation, the computer-readable media can include computer storage media and communication media. The computer-readable media also includes volatile and non-volatile media, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage devices, magnetic disks, magnetic tapes, magnetic tape storage devices or other magnetic storage devices, or any other media that can be used to store the desired information and can be accessed by the electronic device 600. Computer storage media does not include signals per se.

[0089] Communication media generally includes computer-readable instructions, data structures, program modules, or other data in the form of a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery media. The term "modulated data signal" refers to a signal that has one or more characteristics set or changed in a manner that encodes information in the signal. By way of example and not limitation, communication media includes wired media such as a wired network or direct wired connection, and wireless media such as audio, radio frequency, infrared, and other wireless media. Combinations of the aforementioned media are included within the scope of computer-readable media.

[0090] The memory 612 includes computer storage media in the form of volatile and non-volatile memory. The memory can be removable, non-removable, or can be a combination of both. Exemplary hardware devices include solid state memory, hard disk drives, optical disc drives, etc. The electronic device 600 includes one or more processors that read data from various entities such as the memory 612 or the I / O element 620. The display element 616 displays data indications to the user or other devices. Exemplary display elements include display devices, speakers, printing elements, vibrating elements, etc.

[0091] The I / O port 618 allows the electronic device 600 to be logically connected to other devices including the I / O element 620, and some such devices are built-in devices. Exemplary elements include microphones, rockers, game tables, dish satellite signal receivers, scanners, printers, wireless devices, etc. The I / O element 620 can provide a natural user interface for processing user-generated gestures, sounds, or other physiological inputs. In some examples, these inputs can be transmitted to a suitable network element for further processing. The electronic device 600 can be equipped with a depth camera, such as a stereo camera system, an infrared camera system, an RGB camera system, and combinations of these systems, to detect and identify objects. In addition, the electronic device 600 can be equipped with sensors (e.g., radar, lidar) to periodically sense the surrounding environment within a sensing range, generating sensor information representing its association with the surrounding environment. Furthermore, the electronic device 600 can be equipped with an accelerometer or gyroscope for detecting motion. The output of the accelerometer or gyroscope can be provided for display by the electronic device 600.

[0092] In addition, the processor 614 in the electronic device 600 can also execute the programs and instructions in the memory 612 to present the actions and steps described in the embodiments, or other descriptions of the content in the specification.

[0093] Any specific order or hierarchical steps of the procedures disclosed herein are purely by way of example. Based on design preferences, it must be understood that any specific order or hierarchical steps of the procedures can be rearranged within the scope disclosed in this document. The accompanying method claims present the elements of the various steps in an example order and should not, therefore, be limited by the specific order or hierarchy shown.

[0094] The use of ordinal numbers such as "first", "second", "third", etc. to modify elements in the claims for patent applications does not in itself imply any priority, precedence, order among the elements, or order of the steps performed by the method, but is only used as an identifier to distinguish different elements with the same name (with different ordinal numbers).

[0095] Although this application has been disclosed above with examples, it is not intended to limit this application. Any person skilled in the art can make some modifications and refinements without departing from the spirit and scope of this application. Therefore, the protection scope of this application shall be subject to what is defined by the claims.

Claims

1. A method for configuring numbers, which is used in a slave device, characterized in that, Comprising: When the slave device determines that the slave device does not have an identification number, receiving a master pairing packet from a master device; Transmitting a slave pairing packet to the master device according to the master pairing packet, wherein the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication; Receiving a master device identification number packet transmitted by the master device, wherein the master device identification number packet at least includes a slave device identifier; And Configuring the slave device identifier as the identification number of the slave device.

2. The method for configuring number according to claim 1, characterized in that, The master pairing packet includes: a master device identifier, a master device location, a master device time, and a pairing packet type, wherein the master device time indicates the time when the master device transmits the master pairing packet, and the pairing packet type indicates that the master pairing packet is used to perform pairing.

3. The method for configuring numbers according to claim 2, characterized in that Before transmitting the slave pairing packet to the master device, the method further includes: Obtaining a distance between the slave device and the master device according to the master device location; Generating a time delay according to the distance; and Transmitting the slave pairing packet to the master device after the time delay.

4. A method for configuring numbers, which is used in a master device, characterized in that, Comprising: Broadcasting a master pairing packet to a plurality of slave devices; Receiving slave pairing packets transmitted by the slave devices, wherein each slave pairing packet at least includes a serial number of each slave device and radio frequency parameter information, and the radio frequency parameter information includes a location and / or a received signal strength indication of each slave device; Obtaining a distance between each slave device and the master device according to the radio frequency parameter information of each slave device; Sorting the slave devices according to the distance between each slave device and the master device and the received signal strength indication; Configuring a corresponding slave device identifier for each slave device according to the sorting; And Transmitting a master device identification number packet to each slave device, wherein the master device identification number packet includes the corresponding slave device identifier of each slave device.

5. The method for configuring numbers according to claim 4, characterized in that, In the step of broadcasting the master pairing packet to the slave devices, the method further includes: Starting a timer to count a time interval; and When the timer expires, sorting the slave devices corresponding to the slave pairing packets received within the time interval.

6. The method for configuring numbers according to claim 4, wherein, The master device identification number packet further includes: a master device identifier, a master device time, the serial number of the slave device, and an identification number packet type, wherein the master device time indicates the time when the master device transmits the master device identification number packet, and the identification number packet type indicates that the master device identification number packet is used to perform the allocation of the identification number.

7. An apparatus for configuring numbers, wherein the apparatus is a slave apparatus, characterized in that, Comprising: One or more processors; And One or more computer storage media storing computer-readable instructions, wherein the processor uses the computer storage media to execute: When the slave device determines that the slave device does not have an identification number, receiving a master pairing packet from a master device; Transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a received signal strength indication; Receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and Configure the slave device identifier as the number of the slave device.

8. An apparatus for configuring numbers, wherein the apparatus is a master apparatus, characterized in that, Comprising: One or more processors; and One or more computer storage media storing computer-readable instructions, where the processor uses the computer storage media to execute: Broadcast a master pairing packet to a plurality of slave devices; Receive slave pairing packets transmitted by the slave devices, where each slave pairing packet at least includes a serial number of each slave device and radio frequency parameter information, and the radio frequency parameter information includes a location and / or a received signal strength indication of each slave device; Obtain a distance between each slave device and the master device according to the radio frequency parameter information of each slave device; Sort the slave devices according to the distance between each slave device and the master device and the received signal strength indication; Configure corresponding slave device identifiers for each slave device according to the sorting; and Transmit a master device number packet to each slave device, where the master device number packet includes the slave device identifier corresponding to each slave device.

9. A method for configuring numbers, which is used in a slave device, characterized in that, Comprising: When the slave device determines that the slave device does not have a number, receive a master pairing packet from a master device; Transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a location; Receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and Configure the slave device identifier as the number of the slave device.

10. An apparatus for configuring numbers, wherein the apparatus is a slave device, characterized in that, Comprising: One or more processors; and One or more computer storage media storing computer-readable instructions, where the processor uses the computer storage media to execute: When the slave device determines that the slave device does not have a number, receive a master pairing packet from a master device; Transmit a slave pairing packet to the master device according to the master pairing packet, where the slave pairing packet at least includes a serial number of the slave device and a location; Receive a master device number packet transmitted by the master device, where the master device number packet at least includes a slave device identifier; and Configure the slave device identifier as the number of the slave device.