Electronic device, terminal device and device network configuration method
Patent Information
- Application Number
- CN202311016639.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-08-14
AI Technical Summary
[0004]为了解决控制端和Matter设备之间配网交互困难的问题,第一方面,本申请的部分实施例提供一种电子设备,所述电子设备包括第一通信接口、第二通信接口和控制器,其中,所述第一通信接口被配置为与终端设备建立第一通信通道,所述第二通信接口被配置为与待配网设备建立第二通信通道,所述控制器被配置为:
[0022]由以上技术方案可知,本申请提供一种电子设备、终端设备及设备配网方法,通过响应用户输入的配网指令,将待配网设备的设备信息发送至终端设备,然后通过第一通信通道获取终端设备扫描设备信息对应的配对码所生成的鉴别码信息,并根据鉴别码信息对第一预设范围内的配网设备执行无线通信扫描,从而在生成第一扫描结果时,与待配网设备建立第二通信通道,并完成对待配网设备的配网。本申请通过电子设备与终端设备连接,并通过终端设备对待配网设备扫码,以通过待配网设备的鉴别码信息在电子设备的无线通信范围扫描,从而便于电子设备与待配网设备建立连接,提高电子设备与待配网设备之间的配网效率。
Smart Images

Figure CN117614758B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of home appliance network distribution technology, and in particular to an electronic device, a terminal device, and a network distribution method for such devices. Background Technology
[0002] The Matter protocol is an open-source smart home connectivity protocol that supports interconnection between smart home devices and control platforms. The control platform can then control the operational status of smart home devices. Matter devices are smart home hardware products with Matter protocol functionality that can connect to and be controlled by a Matter controller. Examples include light bulbs, switches, sensors, thermostats, blind motors, door locks, bridging devices, and media playback devices.
[0003] Matter devices require network pairing via a control terminal to function properly. This control terminal can be other home appliances, such as smart TVs or computers. The control terminal can connect via Bluetooth or scan the QR code on the Matter device to pair it with the network. However, due to varying home layouts, if the control terminal is far from the Matter device, it may be unable to connect via Bluetooth and scanning the QR code may be inconvenient, leading to difficulties in the pairing process between the control terminal and the Matter device. Summary of the Invention
[0004] To address the difficulty of network configuration interaction between the control terminal and Matter devices, in a first aspect, some embodiments of this application provide an electronic device, comprising a first communication interface, a second communication interface, and a controller, wherein the first communication interface is configured to establish a first communication channel with a terminal device, the second communication interface is configured to establish a second communication channel with a device to be configured for network configuration, and the controller is configured to:
[0005] In response to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device, wherein the terminal device and the electronic device are in the same network environment;
[0006] The authentication code information is obtained through the first communication channel. The authentication code information is generated by the terminal device scanning the pairing code corresponding to the device information.
[0007] Wireless communication scanning is performed on the distribution network equipment within the first preset range based on the identification code information;
[0008] If a first scan result is generated, a second communication channel is established with the device to be configured, and network configuration is performed on the device through the second communication channel.
[0009] Secondly, some embodiments of this application provide a terminal device, including a display, a communicator, and a processor, wherein the communicator is configured to establish a first communication channel with an electronic device, and the processor is configured to:
[0010] In response to a user-input network configuration command, the terminal device receives device information of the device to be configured via the first communication channel sent by the electronic device. The terminal device and the electronic device are in the same network environment.
[0011] The electronic device sends an authentication code to the electronic device through the first communication channel, so that the electronic device performs wireless communication scanning on the distribution network devices within a first preset range according to the authentication code. The authentication code is generated according to the pairing code corresponding to the scanned device information. When the electronic device generates a first scan result, the electronic device establishes a second communication channel with the device to be distributed and performs distribution on the device to be distributed through the second communication channel.
[0012] Thirdly, some embodiments of this application provide a server, including a communication module and a processing module, wherein the communication module is configured to establish a communication connection with a terminal device, and the processing module is configured to:
[0013] The terminal device receives device information of the device to be configured on the network sent by the electronic device, and the terminal device and the electronic device are in the same network environment;
[0014] Send the device information to the terminal device;
[0015] Obtain the authentication code information returned by the terminal device, which is obtained by the terminal device scanning the pairing code corresponding to the device information;
[0016] The authentication code is sent to the electronic device so that the electronic device performs wireless communication scanning on the distribution network devices within a first preset range based on the authentication code information. When the electronic device generates a first scanning result, the electronic device establishes a second communication channel with the device to be distributed and performs distribution network operation on the device to be distributed through the second communication channel.
[0017] Fourthly, some embodiments of this application provide a device network configuration method applied to an electronic device. The electronic device includes a first communication interface, a second communication interface, and a controller. The first communication interface is configured to establish a first communication channel with a terminal device, and the second communication interface is configured to establish a second communication channel with a device to be network configured. The method includes:
[0018] In response to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device, wherein the terminal device and the electronic device are in the same network environment;
[0019] The authentication code information is obtained through the first communication channel. The authentication code information is generated by the terminal device scanning the pairing code corresponding to the device information.
[0020] Wireless communication scanning is performed on the distribution network equipment within the first preset range based on the identification code information;
[0021] If a first scan result is generated, a second communication channel is established with the device to be configured, and network configuration is performed on the device through the second communication channel.
[0022] As can be seen from the above technical solutions, this application provides an electronic device, a terminal device, and a device network configuration method. By responding to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device. Then, through a first communication channel, the terminal device obtains the authentication code information generated by scanning the pairing code corresponding to the device information. Based on the authentication code information, wireless communication scanning is performed on network configuration devices within a first preset range. Thus, while generating the first scan result, a second communication channel is established with the device to be configured, and network configuration of the device to be configured is completed. This application connects the electronic device to the terminal device and uses the terminal device to scan the authentication code information of the device to be configured within the wireless communication range of the electronic device, thereby facilitating the establishment of a connection between the electronic device and the device to be configured and improving the network configuration efficiency between the electronic device and the device to be configured. Attached Figure Description
[0023] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This describes the use scenario of the electronic device in the embodiments of this application;
[0025] Figure 2 This is a hardware configuration diagram of the electronic device in the embodiments of this application;
[0026] Figure 3 A flowchart illustrating a device network configuration method provided in this application embodiment;
[0027] Figure 4 This is a flowchart illustrating the generation of power distribution equipment information via voice recognition, as described in an embodiment of this application.
[0028] Figure 5This is a schematic diagram illustrating the process of a terminal device scanning a pairing code in an embodiment of this application;
[0029] Figure 6 This is a flowchart illustrating the pairing process based on distribution network equipment information within a first preset range, as described in this application embodiment.
[0030] Figure 7 This is a flowchart illustrating the process of determining pairing failure based on the first pairing duration in an embodiment of this application.
[0031] Figure 8 This is a flowchart illustrating how the first pairing duration is refreshed based on the added network distribution equipment information in this embodiment of the application.
[0032] Figure 9 This is a flowchart illustrating the pairing process based on distribution network equipment information within a second preset range, as described in this application embodiment.
[0033] Figure 10 This is a flowchart illustrating the pairing process based on distribution network feedback information in this embodiment. Detailed Implementation
[0034] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.
[0035] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0036] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0037] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0038] The terminal device provided in this application can have various implementation forms, such as a television, laser projection equipment, monitor, electronic bulletin board, electronic table, etc.
[0039] Figure 1 This is a schematic diagram illustrating the operational scenario between the terminal device and the control device according to the embodiment. Figure 1 As shown, the user can operate the electronic device 200 through the terminal device 300 or the control device 100.
[0040] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the electronic device 200 includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the electronic device 200 wirelessly or via wired means. Users can control the electronic device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0041] In some embodiments, a terminal device 300 (such as a mobile phone, tablet computer, computer, laptop computer, etc.) may also be used to control the electronic device 200. For example, an application running on the terminal device 300 may be used to control the electronic device 200.
[0042] In some embodiments, the electronic device 200 may receive instructions not through the terminal device 300 or control device 100 described above, but through touch or gestures.
[0043] In some embodiments, the electronic device 200 may also be controlled in ways other than the control device 100 and the terminal device 300. For example, it may be controlled by directly receiving the user's voice commands through a module configured inside the electronic device 200 for acquiring voice commands, or it may be controlled by receiving the user's voice commands through a voice terminal device set outside the electronic device 200.
[0044] In some embodiments, the electronic device 200 also communicates with the server 400. The electronic device 200 may be allowed to communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the electronic device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0045] like Figure 2 As shown, the electronic device 200 may include at least one of the following: a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0046] In some embodiments, controller 250 may include a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to an nth interface for input / output.
[0047] The display 260 may include the following components: a display screen component for displaying images; a driving component for driving image display; a component for receiving image signals output from the controller 250 and displaying video content, image content, and a menu control interface, as well as a user control UI interface, etc.
[0048] The display 260 can be an LCD display, an OLED display, or a projection display, and can also be a projection device and a projection screen.
[0049] The communicator 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. For example, the communicator may include at least one of the following: a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The electronic device 200 can establish the transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0050] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote control).
[0051] Detector 230 is used to collect signals from the external environment or to interact with the external environment. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds or voice commands issued by the user.
[0052] The external device interface 240 may include, but is not limited to, one or more of the following: High Definition Multimedia Interface (HDMI), analog or high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. It may also be a composite input / output interface formed by multiple interfaces mentioned above.
[0053] The tuner / demodulator 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. In some embodiments, the controller 250 and the tuner / demodulator 210 may be located in different separate devices, that is, the tuner / demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0054] The controller 250 controls the operation of the terminal device 300 and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the electronic device 200. For example, in response to receiving a user command to select a UI object to display on the display 260, the controller 250 can execute operations related to the object selected by the user command.
[0055] In some embodiments, the controller 250 includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (RandomAccess Memory), a ROM (Read-Only Memory), a first to an nth interface for input / output, a communication bus, etc.
[0056] Users can input commands through a graphical user interface (GUI) displayed on the monitor 260, and the user input interface receives the user input commands through the GUI. Alternatively, users can input commands by entering specific sounds or gestures, and the user input interface receives the user input commands by recognizing the sounds or gestures through sensors.
[0057] A user interface (GUI) is the medium through which an application or operating system interacts and exchanges information with the user. It converts information from its internal form to a form that the user can accept. A common form of GUI is the graphical user interface (GUI), which is a user interface related to computer operation displayed graphically. It can be an icon, window, control, or other interface element displayed on the screen of an electronic device. Controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0058] In some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the Android runtime and system library layer (referred to as the "System Runtime Layer"), and the kernel layer.
[0059] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0060] In some embodiments, the electronic device 200 can integrate a Matter application at the application layer. The Matter application assists the electronic device 200 in establishing an interactive connection with Matter devices, enabling the electronic device 200 to perform home control on the Matter devices according to the Matter protocol. The Matter protocol is an open-source smart home connectivity protocol that supports interconnection between smart home devices and a control platform, allowing the control platform to control the operating status of smart home devices. In this embodiment, the electronic device 200 can be installed indoors as a control terminal to control Matter devices within the same area according to control commands issued by the user.
[0061] Matter devices are smart home hardware products with Matter protocol functionality. They can act as control terminals for electronic devices 200 and be controlled by electronic devices 200. Matter devices can be home appliances located in the same area as electronic devices 200, such as light bulbs, switches, sensors, thermostats, blind motors, door locks, bridging devices, and media playback devices. Matter devices can be equipped with sensors or sensor switches to control the startup and operation of other Matter devices.
[0062] In some embodiments, the electronic device 200 can be wirelessly connected to the Matter device to control the Matter device remotely. For example, if a user sends a voice command to the electronic device 200, "Please turn on the bedroom light," the controller 250 of the electronic device 200 can convert the voice command into a control command and send the control command to the bedroom light bulb through a wireless connection channel to turn on the bedroom light.
[0063] In the above embodiment, the electronic device 200 needs to send control commands to the sensors of the Matter device via a wireless network. The sensors will then start or stop the Matter device according to the control commands. Therefore, before the electronic device 200 controls the operation of the Matter device, Matter network configuration needs to be performed on the Matter device.
[0064] In some embodiments, the electronic device 200 can perform network configuration on the Matter device via wireless communication. For example, the electronic device 200 can activate its Bluetooth module and search for the device to be configured, thus completing the pairing connection and network configuration. The electronic device 200 may also be equipped with an image acquisition interface and connected to a camera. The camera scans the authentication code on the Matter device. The authentication code contains the network signal that establishes a network configuration connection with the Matter device, thereby completing the pairing connection between the electronic device 200 and the Matter device, enabling the control terminal to configure the Matter device via network configuration.
[0065] However, due to different home layouts, electronic device 200 may be some distance away from the Matter device to be networked. When electronic device 200 is far from the Matter device, it cannot connect to the Matter device's Bluetooth. Furthermore, due to the large footprint of electronic device 200, it is inconvenient to scan the QR code on the Matter device, resulting in inconvenient network configuration interaction between the electronic device 200 (the control terminal) and the Matter device.
[0066] To address the difficulty of network distribution interaction between the control terminal and Matter devices, some embodiments of this application provide an electronic device 200, which includes a first communication interface and a second communication interface. The first communication interface is used to establish a first communication connection with a terminal device 300, and the second communication interface is used to establish a second communication connection with the device to be distributed to the network.
[0067] The first communication connection can be established via WiFi or the same hotspot network. The terminal device 300 can be a mobile device such as a smartphone or smartwatch, so that after the electronic device 200 is connected to the terminal device 300, the terminal device 300 can scan the authentication code of the device to be configured on the network.
[0068] In some embodiments, electronic device 200 and terminal device 300 may have applications for Matter connection installed. Electronic device 200 and terminal device 300 can simultaneously launch these applications to establish a first communication channel through identity information pairing. In this embodiment, to ensure the stability of the network environment for the first communication channel, electronic device 200 and terminal device 300 can be in the same network environment.
[0069] like Figure 3 As shown, the electronic device 200 also includes a controller 250, which is configured to perform the following methods:
[0070] S100: In response to the network configuration command input by the user, it sends the device information of the device to be configured to the terminal device.
[0071] In some embodiments, users can input network configuration commands to the electronic device 200 through various input methods such as voice, gestures, touchpad, and remote control. The network configuration commands may include device information of the device to be configured, such as device name, device model, device installation location, and device readiness status. Figure 4 As shown, when the user inputs the network configuration command "Please turn on the lights in the master bedroom" into the electronic device 200, the controller 250 will perform voice recognition on the network configuration command, thereby obtaining that the location of the device to be configured is "master bedroom" and the device type is "lights", and then send the above network configuration information to the terminal device 300 through the first communication channel.
[0072] The vicinity of electronic device 200 may include one or more devices with Matter protocol functionality, wherein the device to be networked is the Matter device specified in the network distribution instruction.
[0073] In some embodiments, before receiving the power distribution instruction, the controller 250 may also establish a communication connection with the power system of the area where the electronic device 200 is located. The area can be a home interior, an office area, a home showroom area, etc. The controller 250 can determine the readiness status of the device to be distributed through the power system based on the device information of the device to be distributed, such as the power level of the device to be distributed, whether the device to be distributed is faulty, etc., and send the device information to the terminal device 300 according to the readiness status.
[0074] S200: Obtain the authentication code information through the first communication channel.
[0075] The identification code information is generated by the terminal device 300 scanning the pairing code corresponding to the device information. After the terminal device 300 obtains the device information of the device to be configured on the network sent by the electronic device 200, the user can activate the camera of the terminal device 300 and retrieve the scanning frame to perform a scan on the pairing code of the device to be configured on the network through the terminal device 300.
[0076] Terminal device 300 can display device information of the device to be configured on its display via an application for Matter connection. This prompts the user to hold terminal device 300 close to the device and scan the pairing code on the device. Terminal device 300 can then parse the pairing code to obtain authentication code information. The authentication code information is the identification information for the device to be configured; each Matter device has a unique authentication code used to identify the corresponding Matter device.
[0077] Terminal device 300 can return authentication code information to electronic device 200 through the first communication channel, so that controller 250 can search for the device to be configured on the network based on the authentication code information.
[0078] In some embodiments, such as Figure 5 As shown, while sending the device information of the device to be configured to the network to the terminal device 300, the controller 250 can also send a scanning command to the terminal device 300 through the first communication channel. After receiving the device information and the scanning command, the terminal device 300 can create a scanning task based on the device information to prompt the user to scan the pairing code corresponding to the device information through the terminal device 300. After generating the scanning task, the controller 250 can send a prompt message to the terminal device 300 at first intervals to remind the user to complete the scanning task through the terminal device 300 as soon as possible. After the terminal device 300 completes the scan, the scanning task can be verified.
[0079] In some embodiments, in order to prevent non-network-configuration devices from performing network configuration on devices to be configured, the pairing code can also be set with a decoding key. After the terminal device 300 scans the pairing code, it can obtain the scanned information obtained by scanning the pairing code, and perform a decoding operation on the scanned information through the pre-stored decoding key to obtain the identification code information, thereby improving the security of the device to be configured.
[0080] In some embodiments, the terminal device 300 can convert the pairing code into a digital signal using optical recognition technology and extract the identification code information from the digital signal. In the above process, the terminal device 300 can acquire the pairing code through an image acquisition interface and identify the type of the pairing code, such as a QR code or a barcode. Then, it can use an image processing recognition algorithm to identify the shape of the pairing code and the black and white bars in the pairing code, and convert them into digital signals based on the positions of these black and white bars to extract the identification code information.
[0081] S300: Perform wireless communication scanning on the distribution network equipment within the first preset range according to the authentication code information.
[0082] After receiving the authentication code information, the electronic device 200 needs to search for the device to be distributed to based on the authentication code information, and establish a second communication channel with the device to be distributed to through the second communication interface, thereby completing the distribution to the device. In this embodiment, the controller 250 can perform the scan of the distribution device through wireless communication.
[0083] In some embodiments, wireless communication may include technologies such as Bluetooth modules, infrared scanning, radio waves, or electromagnetic waves. However, different wireless communication technologies have different coverage ranges. Therefore, the controller 250 can perform wireless communication scanning on the distribution network equipment within a first preset range, where the first preset range is the coverage range of the communication method with the largest wireless communication coverage.
[0084] Since different wireless communication technologies cover different scanning ranges, for distribution network devices that are less than the first distance from electronic device 200, infrared scanning, electromagnetic wave and other technologies can be used to perform scanning. For distribution network devices that are more than the first distance from electronic device 200, wireless communication technologies such as Bluetooth module and radio can be used to perform scanning. By scanning, the distribution network devices around electronic device 200 are paired one by one to determine the device to be distributed.
[0085] It should be noted that all distribution network devices are Matter devices. Each Matter device is equipped with a communication device for being scanned by the electronic device 200. When the Matter device is in working or standby mode, the communication device can continuously send communication signals to the outside so that the electronic device 200 can perform scanning and pairing.
[0086] In some embodiments, the controller 250 can detect the wireless communication operation status of the electronic device 200 based on the authentication code information sent by the terminal device 300. If the wireless communication operation status is not started, the controller 250 can switch the wireless communication operation status to the started status.
[0087] When the controller 250 detects that the wireless communication operation is in the activated state, it begins to perform wireless communication scanning on the distribution network devices within a first preset range and acquires the distribution network device information of the scanned distribution network devices. In order to filter the distribution network devices to be distributed, the controller 250 can perform pairing of the distribution network information through authentication code information.
[0088] In order to facilitate pairing, such as Figure 6 As shown, the controller 250 can generate a device information table based on the scanned distribution network device information. When the first distribution network device information appears in the device information table, the controller 250 can start pairing through the authentication code information. During the pairing process, the controller 250 continuously performs wireless communication scanning on the distribution network devices around the electronic device 200 and adds their distribution network device information to the device information table one by one to save the pairing time and improve the distribution network efficiency.
[0089] The distribution network equipment information may include the identification code information of the distribution network equipment. The controller 250 can compare the identification code information of the equipment to be distributed with the identification code information of other distribution network equipment. If the identification code information of other distribution network equipment is the same as the identification code information of the equipment to be distributed, it means that the pairing is successful.
[0090] In some embodiments, when the electronic device 200 performs a wireless communication device scan on the distribution network device, the controller 250 may record the first pairing duration of the electronic device 200, and the controller 250 may pair the distribution network device information according to the authentication code information within the first pairing duration.
[0091] In order to determine whether the electronic device 200 has failed to pair, in this embodiment, such as Figure 7 As shown, a first time threshold can be set to assist in determining the pairing result. When the first pairing time exceeds the first time threshold, it indicates that within the first time threshold, the controller 250 has not paired with a distribution network device with the same authentication code information.
[0092] In some embodiments, since the controller 250 is also scanning the distribution network devices and adding distribution network device information during the pairing process, the first pairing time also includes the waiting time for the controller 250 to scan. Therefore, as... Figure 8 As shown, the controller 250 can also start recording the first pairing duration when pairing newly added distribution network equipment information, and restart the timing of the first pairing duration when adding new distribution network equipment information.
[0093] S400: If a first scan result is generated, a second communication channel is established with the device to be configured, and network configuration is performed on the device through the second communication channel.
[0094] When the controller 250 generates the first scan result, it indicates that the network configuration information of the device to be configured has been obtained within the scanning range of the electronic device 200. Therefore, the controller 250 can directly establish a second communication channel with the device to be configured. The wireless communication method of the second communication channel can be different from that of the first communication channel. For example, the first communication channel may be a wireless network connection, while the second communication channel may be a Bluetooth communication connection. After the controller 250 establishes the second communication channel with the device to be configured, network configuration can be performed on the device through the second communication channel.
[0095] In some embodiments, the electronic device 200 can also obtain authentication code information by inputting an authentication code. The user can control the electronic device 200 to display an authentication code input box through the control device 100, and input authentication code information through the keyboard on the control device 100, so that the electronic device 200 can obtain authentication code information.
[0096] When the controller 250 does not generate the first scan result, it indicates that the electronic device 200 has failed to pair with the network device to be distributed. At this time, the controller 250 generates the second scan result.
[0097] The second scan result indicates that the electronic device 200 has not detected any other network devices paired with the device to be networked. This means that other network devices located around the electronic device 200 are not the device to be networked. In some embodiments, to expand the scanning range for searching for the device to be networked, after generating the second scan result, the controller 250 can send the second scan result to the terminal device 300. After receiving the second scan result, the terminal device 300 will activate its wireless communication operation module, such as activating its Bluetooth module, based on the second scan result.
[0098] When the terminal device 300 activates its Bluetooth module, it also gains the ability to scan network devices. At this time, the terminal device 300 can scan other network devices in the second preset area via Bluetooth communication and obtain their device information. The second preset area represents the maximum wireless communication scanning coverage range of the terminal device 300.
[0099] In some embodiments, the controller 250 may also generate a terminal scanning instruction based on the second scan result. The terminal scanning instruction is used to instruct the terminal device 300 to start the wireless communication operation module. The controller 250 may send the terminal scanning instruction to the terminal device 300. In response to the terminal scanning instruction, the terminal device 300 starts the wireless communication operation module and begins to perform wireless communication scanning on the coverage area where the terminal device 300 is located.
[0100] Because the terminal device 300 and the electronic device 200 are separated by a certain distance, the terminal device 300 can scan areas that the electronic device 200 cannot scan, thus expanding the scanning range for devices to be configured on the network. Therefore, if... Figure 9 As shown, the terminal device 300 can obtain information about distribution network equipment outside the scanning range of the electronic device 200, and return this information as distribution network feedback information corresponding to the terminal scanning command to the electronic device 200.
[0101] After receiving the device information sent by the terminal device 300, the controller 250 can continue to add the device information sent by the terminal device 300 to the existing device information table and continue to perform pairing on this device information.
[0102] In some embodiments, the first preset range and the second preset range may have overlapping scanning areas. When a distribution network device is in the overlapping scanning area, for ease of description, this embodiment defines the distribution network device located in the overlapping scanning area as an overlapping device. Both the electronic device 200 and the terminal device 300 can scan and obtain the distribution network device information of the overlapping device, thereby causing multiple acquisitions of the distribution network device information of the overlapping device and reducing distribution network efficiency.
[0103] Therefore, such as Figure 10 As shown, after receiving distribution network feedback information, the controller 250 can filter the feedback information based on the distribution network equipment information in the equipment information table. The feedback information may include one or more pieces of distribution network equipment information. The controller 250 can obtain the distribution network equipment information in the current equipment information table and iterate through the feedback information based on this information. If the feedback information includes existing distribution network equipment information in the equipment information table, it indicates that the corresponding distribution network equipment is a duplicate device. In this case, the controller 250 retains the existing distribution network equipment information in the equipment information table and deletes the duplicate device information from the feedback information.
[0104] After the screening is completed, the controller 250 adds the distribution network equipment information that is not overlapping equipment in the distribution network feedback information to the equipment information table. At the same time, the controller 250 performs pairing on the distribution network equipment information in the distribution network feedback information according to the identification code information. When there is successfully paired distribution network equipment information in the distribution network feedback information, the controller 250 can mark the distribution network equipment corresponding to the successfully paired distribution network equipment information as the equipment to be distributed.
[0105] In some embodiments, the terminal device 300 can also perform pairing on the distribution network feedback information. Since the terminal device 300 has already scanned the pairing code of the distribution network equipment, the terminal device 300 also includes the authentication code information. Therefore, the terminal device 300 can also perform the above-mentioned step of filtering out the distribution network equipment information of overlapping equipment in the distribution network feedback information, and perform pairing on the distribution network equipment information in the distribution network feedback information through the authentication code information.
[0106] After the terminal device 300 successfully pairs with the network distribution device information using the authentication code information, the controller 250 can send a network distribution command to the terminal device 300, thereby establishing a wireless communication connection between the terminal device 300 and the device to be distributed. This wireless communication connection may include a Bluetooth communication connection. The terminal device 300 has already enabled its Bluetooth communication module when scanning the network distribution device information; therefore, the terminal device 300 can directly send a Bluetooth connection request to the device to be distributed and wait for the device to respond to the Bluetooth connection request.
[0107] Upon receiving a Bluetooth connection request, the device to be configured automatically determines its connection status. If the device is already establishing a Bluetooth communication connection with another device, it cannot establish a Bluetooth communication connection with the terminal device 300. In this case, the device can send a busy signal to the terminal device 300. This busy signal indicates that the device is connecting to another device and the Bluetooth communication connection is busy. The busy signal may also include device information of the device being connected to, as well as the duration of the connection establishment, to help the user obtain the current status of the device to be configured.
[0108] In some embodiments, since the terminal device 300 is smaller in size than the electronic device 200, the user can hold the terminal device 300 and move it. Therefore, after the controller 250 generates the second scan result, the movement information can be sent to the terminal device 300 through the first communication channel. The movement information can be displayed on the display of the terminal device 300 to prompt the user to move the terminal device 300 toward the device to be configured, so that the terminal device 300 can be paired with the device to be configured.
[0109] In some embodiments, the controller 250 can also obtain the location information of the terminal device 300 and the distance between the terminal device 300 and the device to be configured on the network through the first communication channel. During the above process, the terminal device 300 can send a GPS positioning request to the server 400 to obtain the positioning information of the terminal device 300 fed back by the server 400, and send the positioning information to the controller 250. The controller 250 can generate corresponding motion information based on the positioning information of the terminal device 300 and the location of the device to be configured on the network, thereby guiding the user to move the terminal device 300 according to the corresponding motion information.
[0110] In some embodiments, as the user moves the mobile terminal device 300, the scanning range of the terminal device 300 changes. Therefore, the controller 250 can generate a movement trajectory of the terminal device 300 based on the positioning information of the terminal device 300 fed back by the server 400, and define a second preset range based on the movement trajectory. The second preset range is the maximum range scanned by the terminal device 300 as it moves along the movement trajectory. The controller 250 can then control the terminal device 300 to obtain network equipment information within the second preset range based on the authentication code information.
[0111] In some embodiments, the controller 250 may also time the pairing time of the terminal device 300 and record the second pairing duration of the terminal device 300 through the first communication channel. Since the device model of the terminal device 300 is different from that of the electronic device 200, the controller may set a second duration threshold to determine the pairing status of the terminal device 300. When the second pairing duration exceeds the second time threshold, it indicates that the terminal device 300 has not paired with the distribution network device within the second preset range. At this time, the terminal device 300 may generate a prompt message. The prompt message is used to indicate that the terminal device 300 failed to pair within the second time threshold. The content of the prompt message may be in text or voice form, for example, "Pairing failed, please try again later!" After generating the prompt message, the terminal device 300 may send the prompt message to the electronic device 200. After receiving the prompt message, the electronic device 200 may re-perform pairing according to the prompt message.
[0112] In some embodiments, this application provides a terminal device 300, the terminal device 300 including a display, a communicator, and a processor, wherein the communicator is used to establish a first communication channel with an electronic device 200, and the processor is configured to:
[0113] In response to a user-input network configuration command, the terminal device 300 receives device information of the device to be configured via the first communication channel sent by the electronic device 200, wherein the terminal device 300 and the electronic device 200 are in the same network environment.
[0114] The electronic device 200 sends an authentication code to the electronic device 200 through the first communication channel, so that the electronic device 200 performs wireless communication scanning on the distribution network devices within a first preset range according to the authentication code. The authentication code is generated according to the pairing code corresponding to the scanned device information. When the electronic device 200 generates a first scan result, the electronic device 200 establishes a second communication channel with the device to be distributed and performs distribution on the device to be distributed through the second communication channel.
[0115] Understandably, in some embodiments, after the terminal device 300 receives device information sent by the device to be configured to the network from the electronic device 200, the user can use the keyboard keys or touch functions set on the terminal device 300. The processor can listen to the user's key presses or touch events and generate corresponding network configuration commands based on the key presses or touch events. In response to the network configuration commands, the processor can control the display of the terminal device 300 to show the scanning frame. At this time, the user can manually adjust the position and angle of the terminal device 300 to align the scanning frame with the pairing code, thereby improving the accuracy of the terminal device 300 in recognizing the pairing code.
[0116] In some embodiments, the terminal device 300 may also receive a network distribution command sent by the electronic device 200, and the processor may respond to the network distribution command and execute the above-described method steps.
[0117] In some embodiments, the terminal device 300 may send a GPS positioning request to the server 400 to obtain the positioning information of the terminal device 300 fed back by the server 400, and send the positioning information to the controller 250. The controller 250 can generate corresponding mobility information based on the positioning information of the terminal device 300 and the location of the device to be configured on the network, thereby guiding the user to move the terminal device 300 according to the corresponding mobility information.
[0118] Some embodiments of this application also provide a server 400, including a communication module and a processing module. The communication module is used to establish a communication connection with a terminal device 300, and the processing module is configured to:
[0119] The terminal device 300 receives device information of the network-connected device sent by the electronic device 200, and the terminal device 300 is in the same network environment as the electronic device 200.
[0120] The device information is sent to the terminal device 300.
[0121] The terminal device 300 returns an authentication code, which is obtained by scanning the pairing code corresponding to the device information.
[0122] The authentication code is sent to the electronic device 200 so that the electronic device 200 performs wireless communication scanning on the distribution network equipment within the first preset range according to the authentication code information. When the electronic device 200 generates the first scanning result, the electronic device 200 establishes a second communication channel with the device to be distributed and performs distribution network operation on the device to be distributed through the second communication channel.
[0123] It is understood that the electronic device 200 can use the server 400 to perform the step of obtaining network distribution equipment information from the terminal device 300. In this embodiment, the terminal device 300 and the electronic device 200 may not establish a first communication channel with each other, but only interact through the server 400.
[0124] Some embodiments of this application also provide a device network configuration method, the method comprising:
[0125] S100: In response to the network configuration command input by the user, it sends the device information of the device to be configured to the terminal device.
[0126] The terminal device and the electronic device are in the same network environment.
[0127] S200: Obtain the authentication code information through the first communication channel.
[0128] The identification code information is generated by the terminal device scanning the pairing code corresponding to the device information.
[0129] S300: Perform wireless communication scanning on the distribution network equipment within the first preset range according to the authentication code information.
[0130] S400: If a first scan result is generated, a second communication channel is established with the device to be configured, and network configuration is performed on the device through the second communication channel.
[0131] As can be seen from the above technical solutions, this application provides an electronic device, a terminal device, and a device network configuration method. By responding to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device. Then, through a first communication channel, the terminal device obtains the authentication code information generated by scanning the pairing code corresponding to the device information. Based on the authentication code information, wireless communication scanning is performed on network configuration devices within a first preset range. Thus, while generating the first scan result, a second communication channel is established with the device to be configured, and network configuration of the device to be configured is completed. This application connects the electronic device to the terminal device and uses the terminal device to scan the authentication code information of the device to be configured within the wireless communication range of the electronic device, thereby facilitating the establishment of a connection between the electronic device and the device to be configured and improving the network configuration efficiency between the electronic device and the device to be configured.
[0132] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product, which can be stored in a computer-readable storage medium.
[0133] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them; for ease of explanation, the above description has been combined with specific implementation methods. However, the above exemplary discussion is not intended to be exhaustive or to limit the implementation methods to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the content of this disclosure, thereby enabling those skilled in the art to better use the described embodiments.
Claims
1. An electronic device, characterized in that, include: The first communication interface is configured to establish a first communication channel with the terminal device; The second communication interface is configured to establish a second communication channel with the device to be networked. The controller is configured as follows: In response to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device, wherein the terminal device and the electronic device are in the same network environment; The authentication code information is obtained through the first communication channel. The authentication code information is generated by the terminal device scanning the pairing code corresponding to the device information. Wireless communication scanning is performed on the distribution network equipment within the first preset range based on the identification code information; Generate an equipment information table based on the distribution network equipment information obtained from the scan; If a first scan result is generated, a second communication channel is established with the device to be networked, and network distribution is performed on the device through the second communication channel; Record the first pairing duration of the electronic device; If the first pairing time exceeds the first time threshold and the first scan result is not generated, then the second scan result is generated; A terminal scanning command is sent to the terminal device based on the second scan result; Obtain the distribution network feedback information sent by the terminal device, wherein the distribution network feedback information is the distribution network device information obtained by the terminal device within a second preset range after responding to the terminal scanning command; After receiving the distribution network feedback information, the feedback information can be filtered according to the distribution network equipment information in the equipment information table. If the distribution network feedback information includes distribution network equipment information that already exists in the equipment information table, then the distribution network equipment information in the equipment information table is retained, and the distribution network equipment information of overlapping devices in the distribution network feedback information is deleted. The overlapping devices are the distribution network equipment to be distributed located in the overlapping scanning area of the first preset range and the second preset range.
2. The electronic device according to claim 1, characterized in that, The controller is configured to obtain authentication code information through the first communication channel as follows: A scanning command is sent to the terminal device through the first communication channel; Obtain the scanning information obtained by the terminal device scanning the pairing code; The scanned information is decoded to obtain the authentication code information.
3. The electronic device according to claim 1, characterized in that, The controller is configured to perform wireless communication scanning on distribution network devices within a first preset range based on the authentication code information. The wireless communication operation state of the electronic device is switched to the start state based on the authentication code information; Wireless communication scanning is performed on the distribution network equipment within the first preset range to obtain distribution network equipment information; The network equipment information is paired according to the authentication code information; If there is successfully paired distribution network device information, the first scan result is generated, and the distribution network device corresponding to the distribution network device information is marked as a device to be distributed.
4. The electronic device according to claim 3, characterized in that, The controller is further configured to: Based on the second scan result, the wireless communication operation state of the terminal device is switched to the start state; The terminal device performs a wireless communication scan of the distribution network equipment within a second preset range.
5. The electronic device according to claim 4, characterized in that, The controller is configured to perform wireless communication scanning of distribution network devices within a second preset range via the terminal device. A terminal scanning command is sent to the terminal device based on the second scan result; If the distribution network feedback information contains successfully paired distribution network equipment information, then the distribution network equipment corresponding to the distribution network equipment information is marked as a device to be distributed; Send a network configuration command to the terminal device, the network configuration command being used to instruct the terminal device to establish a wireless communication connection with the device to be configured.
6. The electronic device according to claim 5, characterized in that, The controller is configured to acquire the network distribution feedback information sent by the terminal device. Obtain the movement trajectory of the terminal device; The second preset range is defined based on the movement trajectory; Based on the authentication code information, the terminal device obtains information about the distribution network equipment within the second preset range.
7. The electronic device according to claim 5, characterized in that, The controller is further configured to: The second pairing duration of the terminal device is recorded through the first communication channel; If the second pairing time exceeds the second time threshold, a search failure message generated by the terminal device is obtained.
8. A terminal device, characterized in that, include: monitor; The communicator is configured to establish a primary communication channel with an electronic device; The processor is configured as follows: In response to a user-input network configuration command, the terminal device receives device information of the device to be configured via the first communication channel sent by the electronic device. The terminal device and the electronic device are in the same network environment. The electronic device sends an authentication code to the electronic device through the first communication channel, so that the electronic device performs a wireless communication scan of the distribution network devices within a first preset range according to the authentication code, and generates a device information table based on the distribution network device information obtained from the scan; the authentication code is generated according to the pairing code corresponding to the scanned device information, and when the electronic device generates the first scan result, the electronic device establishes a second communication channel with the device to be distributed, and performs distribution network on the device to be distributed through the second communication channel; Wherein, when the first pairing time of the electronic device exceeds the first time threshold and the first scan result is not generated, the terminal scan instruction sent by the electronic device according to the second scan result is obtained; The electronic device sends distribution network feedback information, which is distribution network equipment information obtained by the terminal device within a second preset range after responding to the terminal scanning command. This allows the electronic device to filter the distribution network feedback information based on the distribution network equipment information in the device information table after receiving it. If the distribution network feedback information includes existing distribution network equipment information from the device information table, then the distribution network equipment information in the device information table is retained, and the distribution network equipment information of overlapping devices in the distribution network feedback information is deleted. The overlapping devices are the devices to be distributed that are located in the overlapping scanning areas of the first preset range and the second preset range.
9. A server, characterized in that, include: The communication module is configured to establish a communication connection with the terminal device; The processing module is configured as follows: The terminal device receives device information of the device to be configured on the network sent by the electronic device, and the terminal device and the electronic device are in the same network environment; Send the device information to the terminal device; Obtain the authentication code information returned by the terminal device, which is obtained by the terminal device scanning the pairing code corresponding to the device information; The authentication code is sent to the electronic device, enabling the electronic device to perform wireless communication scanning on the distribution network devices within a first preset range based on the authentication code information. When the electronic device generates a first scan result, the electronic device establishes a second communication channel with the device to be distributed and performs distribution network operation on the device to be distributed through the second communication channel. When the first pairing time of the electronic device exceeds a first time threshold and the first scan result is not generated, a second scan result is generated, and a terminal scan command is sent to the terminal device based on the second scan result. Distribution network feedback information sent by the terminal device is obtained, which is the distribution network device information obtained by the terminal device within a second preset range after responding to the terminal scan command. After receiving the distribution network feedback information, the distribution network feedback information can be filtered according to the distribution network device information in the device information table. If the distribution network feedback information includes distribution network device information that already exists in the device information table, the distribution network device information in the device information table is retained, and the distribution network device information of overlapping devices in the distribution network feedback information is deleted. The overlapping devices are the devices to be distributed located in the overlapping scanning areas of the first preset range and the second preset range.
10. A method for equipment network distribution, characterized in that, The method is applied to an electronic device, the electronic device including a first communication interface, a second communication interface, and a controller, wherein the first communication interface is configured to establish a first communication channel with a terminal device, and the second communication interface is configured to establish a second communication channel with a device to be networked, the method comprising: In response to a user-input network configuration command, the device information of the device to be configured is sent to the terminal device, wherein the terminal device and the electronic device are in the same network environment; The authentication code information is obtained through the first communication channel. The authentication code information is generated by the terminal device scanning the pairing code corresponding to the device information. Wireless communication scanning is performed on the distribution network equipment within the first preset range based on the identification code information; Generate an equipment information table based on the distribution network equipment information obtained from the scan; If a first scan result is generated, a second communication channel is established with the device to be networked, and network distribution is performed on the device through the second communication channel; Record the first pairing duration of the electronic device; If the first pairing time exceeds the first time threshold and the first scan result is not generated, then the second scan result is generated; A terminal scanning command is sent to the terminal device based on the second scan result; Obtain the distribution network feedback information sent by the terminal device, wherein the distribution network feedback information is the distribution network device information obtained by the terminal device within a second preset range after responding to the terminal scanning command; After receiving the distribution network feedback information, the feedback information can be filtered according to the distribution network equipment information in the equipment information table. If the distribution network feedback information includes distribution network equipment information that already exists in the equipment information table, then the distribution network equipment information in the equipment information table is retained, and the distribution network equipment information of overlapping devices in the distribution network feedback information is deleted. The overlapping devices are the distribution network equipment to be distributed located in the overlapping scanning area of the first preset range and the second preset range.
Citation Information
Patent Citations
Graphic code interaction method, electronic device and storage device
CN109858580A
Remote controller control method and device, storage medium and remote controller
CN111415504A