A method, device, electronic device and storage medium for configuring device parameters
By detecting peripheral equipment, establishing connections, obtaining parameter information, and sending configuration parameters, the problem of high cost and low efficiency in parameter configuration of elevator IoT equipment is solved, and efficient equipment parameter configuration is achieved.
Patent Information
- Application Number
- CN202111387941.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In the existing technology, the parameter configuration of elevator IoT equipment is costly and inefficient. A method is needed to reduce costs and improve configuration efficiency.
By detecting peripheral devices, sending connection request messages and establishing connections, obtaining device parameter information, determining and sending configuration parameters, the device can configure itself and realize the elevator ride function.
It effectively reduces the cost of equipment parameter configuration, improves configuration efficiency, and simplifies the parameter configuration process of elevator IoT equipment.
Smart Images

Figure CN114090123B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, apparatus, electronic device and storage medium for configuring device parameters. Background Art
[0002] With the development of science and technology, robot services are becoming more and more popular. Usually, when robots provide services, they need to take the elevator, so the parameters of the elevator IoT devices need to be configured.
[0003] Under the prior art, when configuring the parameters of an elevator IoT device, a special interactive interface or transfer device is usually set in the elevator IoT device to configure the parameters of the elevator IoT device.
[0004] However, this method requires a large cost and the equipment parameter configuration efficiency is low.
[0005] Therefore, when configuring device parameters, how to reduce the cost of device parameter configuration and improve the efficiency of device parameter configuration is a technical problem that needs to be solved. Summary of the invention
[0006] The purpose of the present application is to provide a method, apparatus, electronic device and storage medium for configuring device parameters, which can effectively reduce the cost of device parameter configuration and improve the efficiency of device parameter configuration when configuring device parameters.
[0007] In one aspect, a method for configuring device parameters is provided, comprising:
[0008] Detect surrounding devices, and if it is determined that there is a device to be connected, send a connection request message to the device to be connected;
[0009] When determining that a connection response message returned by the device to be connected based on the connection request message is received, establishing a connection with the device to be connected according to the connection response message;
[0010] Get device parameter information of the device to be connected;
[0011] Determine device configuration parameters based on device parameter information;
[0012] The device configuration parameters are sent to the device to be connected, so that the device to be connected performs parameter configuration according to the device configuration parameters.
[0013] In the above implementation process, the user terminal detects the surrounding devices, and if it is determined that there is a device to be connected, a connection request message is sent to the device to be connected, and when it is determined that a connection response message is received from the device to be connected based on the connection request message, a connection is established with the device to be connected according to the connection response message, and after the connection, the device parameter information of the device to be connected is obtained, and the device configuration parameters are determined according to the device parameter information, and the device configuration parameters are sent to the device to be connected, so that the device to be connected performs parameter configuration through the device configuration parameters. In this way, when configuring the device parameters, the cost of device parameter configuration can be effectively reduced and the efficiency of device parameter configuration can be improved.
[0014] In one implementation, obtaining device parameter information of a device to be connected includes:
[0015] Get the device parameter information of the device to be connected stored locally.
[0016] In the above implementation process, the device parameter information of the device to be connected can be directly obtained from the locally stored device parameter information, thereby improving the efficiency of obtaining the device parameter information of the device to be connected.
[0017] In one implementation, before acquiring the device parameter information of the device to be connected stored locally, the method further includes:
[0018] In response to the user's device configuration instruction, display a device parameter configuration interface;
[0019] In response to a user input operation on a device parameter configuration interface, obtaining device parameter information input by the user;
[0020] Storage device parameter information.
[0021] In the above implementation process, the device parameters input by the user based on the parameter configuration interface are stored, so that when the device parameter information is subsequently obtained, it can be directly obtained from the stored device parameter information, saving the time cost of obtaining the device parameter information.
[0022] In one implementation, obtaining device parameter information of a device to be connected includes:
[0023] Send a parameter request message to the device to be connected;
[0024] Receiving a parameter response message returned by the device to be connected based on the parameter request message;
[0025] Get the device parameter information contained in the parameter response message.
[0026] In the above implementation process, the device parameter information can be directly obtained from the parameter response message returned by the device to be connected, so there is no need to store the device parameter information, which improves the efficiency of obtaining the device parameter information.
[0027] In one implementation, after sending the device configuration parameters to the device to be connected, the method further includes:
[0028] Determine the status of the device to be connected;
[0029] Based on the state, sending an elevator ride request message including a target floor number to the device to be connected, so that the device to be connected performs an elevator key operation for the target floor number based on the elevator ride request message;
[0030] An elevator ride response message returned by the device to be connected is received. The elevator ride response message is sent when the device to be connected determines that it has reached a target floor corresponding to the target floor number.
[0031] In the above implementation process, after the device parameters in the device to be connected are configured, an elevator ride request message containing the target floor number is sent to the device to be connected according to the status of the device, and an elevator ride response message returned to the device to be connected is received, so that the robot can take the elevator.
[0032] In one aspect, a method for configuring device parameters is provided, comprising:
[0033] Establishing a connection with the user terminal when determining that a connection request message sent by the user terminal is received;
[0034] Receiving device configuration parameter information sent by a user terminal;
[0035] Configure parameters according to the device configuration parameter information.
[0036] In the above implementation process, the device to be connected configures parameters according to the device configuration parameter information sent by the user terminal.
[0037] In one implementation, after configuring the parameters according to the device configuration parameter information, the method further includes:
[0038] Receiving an elevator ride request message including a target floor number sent by a user terminal;
[0039] Based on the elevator ride request message, perform the elevator button operation for the target floor number;
[0040] An elevator ride response message is returned to the user terminal.
[0041] In the above implementation process, the device to be connected performs the elevator key operation according to the elevator ride request message of the target floor number sent by the received user terminal, and returns the elevator ride response message to the user terminal.
[0042] In one aspect, a device for configuring device parameters is provided, comprising:
[0043] Detection unit: used to detect surrounding devices, and if it is determined that there is a device to be connected, send a connection request message to the device to be connected;
[0044] A first determining unit: configured to determine, when receiving a connection response message returned by the device to be connected based on the connection request message, to establish a connection with the device to be connected according to the connection response message;
[0045] Acquisition unit: used to acquire device parameter information of the device to be connected;
[0046] A second determining unit: used to determine device configuration parameters according to device parameter information;
[0047] Configuration unit: used to send device configuration parameters to the device to be connected, so that the device to be connected performs parameter configuration through the device configuration parameters.
[0048] In one implementation, the acquisition unit is used to:
[0049] Get the device parameter information of the device to be connected stored locally.
[0050] In one implementation, the acquisition unit is further configured to:
[0051] In response to the user's device configuration instruction, display a device parameter configuration interface;
[0052] In response to a user input operation on a device parameter configuration interface, obtaining device parameter information input by the user;
[0053] Storage device parameter information.
[0054] In one implementation, the acquisition unit is used to:
[0055] Send a parameter request message to the device to be connected;
[0056] Receiving a parameter response message returned by the device to be connected based on the parameter request message;
[0057] Acquire the device parameter information contained in the parameter response message.
[0058] In one implementation, the configuration unit is further configured to:
[0059] Determine the status of the device to be connected;
[0060] Based on the state, an elevator ride request message including a target floor number is sent to the device to be connected, so that the device to be connected performs an elevator key operation for the target floor number based on the elevator ride request message;
[0061] An elevator ride response message returned by the device to be connected is received. The elevator ride response message is sent when the device to be connected determines that it has reached a target floor corresponding to the target floor number.
[0062] In one aspect, a device for configuring device parameters is provided, comprising:
[0063] A first receiving unit: configured to establish a connection with a user terminal when a connection request message sent by a user terminal is received;
[0064] A second receiving unit: configured to receive device configuration parameter information sent by a user terminal;
[0065] Configuration unit: used to configure parameters according to device configuration parameter information.
[0066] In one implementation, the configuration unit is further configured to:
[0067] Receiving an elevator ride request message including a target floor number sent by a user terminal;
[0068] Based on the elevator ride request message, perform the elevator button operation for the target floor number;
[0069] An elevator ride response message is returned to the user terminal.
[0070] On the one hand, an electronic device is provided, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps of the method provided in various optional implementations of any of the above-mentioned device parameter configurations are executed.
[0071] On the one hand, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method provided in any of the various optional implementations of the device parameter configuration described above are executed.
[0072] On the one hand, a computer program product is provided. When the computer program product is run on a computer, it enables the computer to execute the steps of the method provided in any of the various optional implementations of the device parameter configuration described above.
[0073] In the embodiment of the present application, the user terminal detects the surrounding devices, and if it is determined that there is a device to be connected, a connection request message is sent to the device to be connected, and when it is determined that a connection response message is received from the device to be connected based on the connection request message, a connection is established with the device to be connected according to the connection response message, and after the connection, the device parameter information of the device to be connected is obtained, and the device configuration parameters are determined according to the device parameter information, and the device configuration parameters are sent to the device to be connected, so that the device to be connected is configured with the device configuration parameters, and after the parameter configuration is completed, the state of the device to be connected is determined, and according to the state, an elevator ride request message containing the target floor number is sent to the device to be connected, and an elevator ride response message is returned according to the device to be connected. In this way, when configuring the device parameters, the device parameters can be configured according to the acquired device parameter information, which effectively reduces the cost of device parameter configuration and improves the efficiency of device parameter configuration.
[0074] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0076] Figure 1 A schematic diagram of the architecture of a device parameter configuration system provided in an embodiment of the present application;
[0077] Figure 2 A flowchart of a method for configuring device parameters provided in an embodiment of the present application;
[0078] Figure 3 An example of a connection request interface provided in an embodiment of the present application Figure 1 ;
[0079] Figure 4 An example of a connection request interface provided in an embodiment of the present application Figure 2 ;
[0080] Figure 5 A schematic diagram of an elevator parameter interface to be connected provided in an embodiment of the present application;
[0081] Figure 6A schematic diagram of an elevator equipment configuration interface provided in an embodiment of the present application;
[0082] Figure 7 An interactive flow chart of a method for configuring device parameters provided in an embodiment of the present application;
[0083] Figure 8 A schematic diagram of a device configuration apparatus for device parameters provided in an embodiment of the present application Figure 1 ;
[0084] Fig. 9 A schematic diagram of a device configuration apparatus for device parameters provided in an embodiment of the present application Figure 2 ;
[0085] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0086] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0087] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0088] First, some terms involved in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0089] Terminal device: can be a mobile terminal, a fixed terminal or a portable terminal, such as a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communication system device, a personal navigation device, a personal digital assistant, an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. It is also foreseeable that the terminal device can support any type of interface for the user (such as a wearable device), etc.
[0090] Server: It can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms.
[0091] Application (APP): mainly refers to the software installed on smartphones, which is the main means to improve the deficiencies and personalization of the original system, improve the functions of the mobile phone, and provide users with a richer user experience.
[0092] In order to effectively reduce the cost of device parameter configuration and improve the efficiency of device parameter configuration when configuring device parameters, the embodiments of the present application provide a method, apparatus, electronic device and storage medium for device parameter configuration.
[0093] See also Figure 1 , which is a schematic diagram of the architecture of a device parameter configuration system according to an embodiment of the present application, the device parameter configuration system includes a user terminal and device 1, ..., device n, where n is a positive integer.
[0094] User terminal: It can be a robot, terminal device or server, used to detect peripheral devices. If it is determined that there is a device to be connected, a request connection message is sent to the device to be connected. When it is determined that a connection response message returned by the device to be connected based on the request connection message is received, a connection is established with the device to be connected according to the connection response message, and device parameter information in the device to be connected is obtained. According to the device parameter information, the device configuration parameters are determined, and the device configuration parameters are sent to the device to be connected.
[0095] Device: used to receive a connection request message sent by a user terminal, establish a connection with the user terminal, receive device configuration parameter information sent by the user terminal, and configure parameters according to the device configuration parameter information.
[0096] In one embodiment, the device can be an elevator, which is used to receive an elevator ride request message containing a target floor number sent by a user terminal, and based on the elevator ride request message, perform elevator button operations for the target floor number, and return an elevator ride response message to the user terminal.
[0097] In the embodiment of the present application, the execution subject can be Figure 1 The user terminal in the device parameter configuration system shown in the figure can be a robot, a terminal device, a server or other electronic device in actual application, and is not limited here.
[0098] See also Figure 2 As shown, it is a flowchart of a method for configuring device parameters provided in an embodiment of the present application, combined with Figure 1 The user terminal shown in the figure, the specific implementation process of the method is as follows:
[0099] Step 200: Detect surrounding devices, and if it is determined that there is a device to be connected, send a connection request message to the device to be connected.
[0100] Specifically, the user terminal detects surrounding devices, and if it is determined that there is a device to be connected, the user terminal sends a connection request message to the device to be connected.
[0101] For example, see Figure 3 As shown, an example of a connection request interface provided in an embodiment of the present application is shown. Figure 1 . Figure 3 The predefined Bluetooth account zhangsan@111.ai and the verification password abc12345 corresponding to the predefined Bluetooth account are displayed. The user terminal has an elevator ride APP installed. The elevator ride APP performs Bluetooth detection on the surrounding elevators. If a Bluetooth Figure 3 If the Bluetooth account is zhangsan@111.ai, enter the verification password abc12345 and click Login to send a connection request message to the elevator.
[0102] For example, see Figure 4 As shown, an example of a connection request interface provided in an embodiment of the present application is shown. Figure 2 The search box (i.e. the APP installed on the user terminal) detects the wireless devices in the IoT devices of the surrounding elevators. The detection results are as follows: Figure 4 As shown, the nearby box loT-Relay-04:9C:A5:25:D8:4B:7E is detected. Search the box to confirm that it is detected Figure 4 After the nearby box (loT-Relay-04:9C:A5:25:D8:4B:7E) is shown, a connection request message is sent to the wireless device in the elevator's IoT device.
[0103] It should be noted that the connection request message sent includes but is not limited to one or more of a verification password, a certificate credential, and the like.
[0104] In this way, the user terminal can determine the device to be connected by detecting the surrounding devices, and then send a connection request message to the device to be connected, thereby narrowing the range of the devices requested to be connected.
[0105] Step 201: when it is determined that a connection response message returned by a device to be connected based on a connection request message is received, a connection is established with the device to be connected according to the connection response message.
[0106] Specifically, the user terminal establishes a connection with the device to be connected according to the response message, and may perform the following steps in a loop:
[0107] S2011: Receive a connection response message returned by the device to be connected based on the connection request message.
[0108] S2012: Determine whether the connection response message representation has passed the verification, if so, execute S2013, otherwise execute S2014.
[0109] S2013: Establishing a connection with the device to be connected.
[0110] S2014: Send a connection request message to the device to be connected, and execute S2011.
[0111] In one implementation, a mobile phone sends a verification request message to a Bluetooth device in an elevator IoT device via a Bluetooth device. When the mobile phone receives a verification message returned by the Bluetooth device in the elevator IoT device, the verification message is judged. If the verification message indicates that the verification is successful, the mobile phone establishes a connection with the elevator IoT device. If the verification indication fails, the mobile phone continues to send a verification request message to the Bluetooth device in the elevator IoT device via the Bluetooth device again. When the mobile phone receives a verification message returned by the Bluetooth device in the elevator IoT device again, the verification message is judged. If the verification message indicates that the verification is successful, the mobile phone establishes a connection with the elevator IoT device. If the verification indication fails, the verification is continued in a loop.
[0112] In this way, even if the device to be connected is in operation, a connection can be established with the device to be connected according to the connection response message returned by the device to be connected. When a connection fails, the operation of the device to be connected needs to be interrupted to establish a connection, thereby improving connection efficiency.
[0113] Step 202: Obtain device parameter information of the device to be connected.
[0114] It should be noted that the device parameter information includes but is not limited to one or more of the device type, channel, and board sequence.
[0115] Specifically, the device information of the device to be connected can be obtained in the following ways:
[0116] Method 1: Acquire the device parameter information of the device to be connected stored locally.
[0117] Specifically, before adopting method 1 to obtain the device parameter information of the device to be connected stored locally, the following steps are specifically performed:
[0118] Step 1: In response to the user's device configuration instruction, display the device parameter configuration interface.
[0119] See also Figure 5 As shown, it is a schematic diagram of an elevator parameter interface to be connected provided in an embodiment of the present application. Figure 5 The device type is Elevator V7, the channel is 01, and the board sequence is 10000.
[0120] It should be noted that the selection of device type, channel and board sequence parameters can be set according to the actual application scenario and is not limited here.
[0121] See also Figure 6 FIG. 1 is a schematic diagram of an elevator equipment configuration interface provided in an embodiment of the present application. Figure 6 It includes: configuration and testing function module, other function modules and fault diagnosis module.
[0122] Among them, the configuration and testing function modules include: functional testing, calibration relationship and mapping relationship; other function modules include: basic information, restart, light reading setting, query unique code, debugging monitoring and card swiping shielding; fault diagnosis modules include: no heartbeat package, car top equipment upgrade, ladder shaft top upgrade and floor authority.
[0123] Step 2: In response to the user's input operation on the device parameter configuration interface, the device parameter information input by the user is obtained.
[0124] Step 3: Store device parameter information.
[0125] Method 2: Get the device parameter information contained in the parameter response message.
[0126] Specifically, when using method 2 to obtain device parameter information, the following steps can be performed:
[0127] Step 1: Send a parameter request message to the device to be connected.
[0128] Step 2: Receive a parameter response message returned by the device to be connected based on the parameter request message.
[0129] Step 3: Get the device parameter information contained in the parameter response message.
[0130] Step 203: Determine device configuration parameters according to the device parameter information.
[0131] Step 204: Send device configuration parameters to the device to be connected, so that the device to be connected performs parameter configuration through the device configuration parameters.
[0132] Furthermore, after executing step 204, the following steps may be performed:
[0133] S2041: Determine the status of the device to be connected.
[0134] S2042: Based on the state of the device to be connected, an elevator ride request message including a target floor number is sent to the device to be connected, so that the device to be connected performs an elevator button operation for the target floor number based on the elevator ride request message.
[0135] S2043: Receive an elevator ride response message returned by the device to be connected.
[0136] It should be noted that the elevator ride response message is sent when the device to be connected determines that it has reached the target floor corresponding to the target floor number.
[0137] See also Figure 7 As shown, it is an interactive flow chart of a method for configuring device parameters provided in an embodiment of the present application. The specific implementation process of the method is as follows:
[0138] Step 700: The user terminal detects surrounding devices.
[0139] Step 701: If it is determined that there is a device to be connected, a connection request message is sent to the device to be connected.
[0140] Step 702: The device to be connected returns a connection response message to the user terminal.
[0141] Step 703: The user terminal establishes a connection with the device to be connected according to the response message.
[0142] Step 704: The user terminal sends a parameter request message to the device to be connected.
[0143] Step 705: Return a parameter response message to the user terminal.
[0144] Step 706: The user terminal obtains the device parameter information included in the parameter response message.
[0145] Step 707: The user terminal determines the device configuration parameters according to the device parameter information.
[0146] Step 708: The user terminal sends device configuration parameters to the device to be connected.
[0147] Step 709: The device to be connected performs parameter configuration according to the device configuration parameters.
[0148] Specifically, when executing step 700 to step 709, the specific steps refer to the above-mentioned step 200 to step 204, which will not be repeated here.
[0149] See also Figure 8 FIG. 1 is a schematic diagram of a device parameter configuration apparatus provided in an embodiment of the present application. Figure 1 ,include:
[0150] Detection unit 801: used to detect surrounding devices, and if it is determined that there is a device to be connected, send a connection request message to the device to be connected;
[0151] The first determining unit 802 is configured to determine that when a connection response message returned by the device to be connected based on the connection request message is received, a connection is established with the device to be connected according to the connection response message;
[0152] Acquisition unit 803: used to acquire device parameter information of the device to be connected;
[0153] The second determining unit 804 is used to determine the device configuration parameters according to the device parameter information;
[0154] Configuration unit 805: configured to send device configuration parameters to the device to be connected, so that the device to be connected performs parameter configuration according to the device configuration parameters.
[0155] In one implementation, the acquisition unit 803 is used to:
[0156] Get the device parameter information of the device to be connected stored locally.
[0157] In one implementation, the acquisition unit 803 is further configured to:
[0158] In response to the user's device configuration instruction, display a device parameter configuration interface;
[0159] In response to a user input operation on a device parameter configuration interface, obtaining device parameter information input by the user;
[0160] Storage device parameter information.
[0161] In one implementation, the acquisition unit 803 is used to:
[0162] Send a parameter request message to the device to be connected;
[0163] Receiving a parameter response message returned by the device to be connected based on the parameter request message;
[0164] Acquire the device parameter information contained in the parameter response message.
[0165] In one implementation, the configuration unit 805 is further configured to:
[0166] Determine the status of the device to be connected;
[0167] Based on the state, an elevator ride request message including a target floor number is sent to the device to be connected, so that the device to be connected performs an elevator key operation for the target floor number based on the elevator ride request message;
[0168] An elevator ride response message returned by the device to be connected is received. The elevator ride response message is sent when the device to be connected determines that it has reached a target floor corresponding to the target floor number.
[0169] participate Fig. 9 FIG. 1 is a schematic diagram of a device parameter configuration apparatus provided in an embodiment of the present application. Figure 2 ,include:
[0170] The first receiving unit 901 is configured to establish a connection with the user terminal upon receiving a connection request message sent by the user terminal;
[0171] The second receiving unit 902 is used to receive device configuration parameter information sent by the user terminal;
[0172] Configuration unit 903: configured to configure parameters according to device configuration parameter information.
[0173] In one implementation, the configuration unit 903 is further configured to:
[0174] Receiving an elevator ride request message including a target floor number sent by a user terminal;
[0175] Based on the elevator ride request message, perform the elevator button operation for the target floor number;
[0176] An elevator ride response message is returned to the user terminal.
[0177] In the embodiment of the present application, the user terminal detects the surrounding devices, and if it is determined that there is a device to be connected, a connection request message is sent to the device to be connected, and when it is determined that a connection response message is received from the device to be connected based on the connection request message, a connection is established with the device to be connected according to the connection response message, and after the connection, the device parameter information of the device to be connected is obtained, and the device configuration parameters are determined according to the device parameter information, and the device configuration parameters are sent to the device to be connected, so that the device to be connected is configured with the device configuration parameters, and after the parameter configuration is completed, the state of the device to be connected is determined, and according to the state, an elevator ride request message containing the target floor number is sent to the device to be connected, and an elevator ride response message is returned according to the device to be connected. In this way, when configuring the device parameters, the device parameters can be configured according to the acquired device parameter information, which effectively reduces the cost of device parameter configuration and improves the efficiency of device parameter configuration.
[0178] See also Fig.10 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0179] The electronic device 1000 includes: a processor 1010 and a memory 1020 , and optionally, may also include a power supply 1030 , a display unit 1040 , and an input unit 1050 .
[0180] The processor 1010 is the control center of the electronic device 1000. It connects various components using various interfaces and lines, and performs various functions of the electronic device 1000 by running or executing software programs and / or data stored in the memory 1020, thereby monitoring the electronic device 1000 as a whole.
[0181] In the embodiment of the present application, the processor 1010 executes the following when calling the computer program stored in the memory 1020: Figure 2 The embodiment shown in provides a method for configuring device parameters.
[0182] Optionally, the processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips.
[0183] The memory 1020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, etc.; the data storage area may store data created according to the use of the electronic device 1000, etc. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices, etc.
[0184] The electronic device 1000 also includes a power source 1030 (such as a battery) for supplying power to various components. The power source can be logically connected to the processor 1010 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0185] The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the electronic device 1000, and in the embodiment of the present invention, is mainly used to display the display interface of each application in the electronic device 1000 and objects such as text and pictures displayed in the display interface. The display unit 1040 may include a display panel 1041. The display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
[0186] The input unit 1050 may be used to receive information such as numbers or characters input by the user. The input unit 1050 may include a touch panel 1051 and other input devices 1052. The touch panel 1051, also known as a touch screen, may collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any other suitable object or accessory on or near the touch panel 1051).
[0187] Specifically, the touch panel 1051 can detect the user's touch operation, detect the signal brought by the touch operation, convert these signals into touch point coordinates, send them to the processor 1010, and receive and execute the command sent by the processor 1010. In addition, the touch panel 1051 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 1052 can include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, power on / off keys, etc.), a trackball, a mouse, a joystick, etc.
[0188] Of course, the touch panel 1051 can cover the display panel 1041. When the touch panel 1051 detects a touch operation on or near it, it transmits it to the processor 1010 to determine the type of touch event, and then the processor 1010 provides corresponding visual output on the display panel 1041 according to the type of touch event. Fig.10 In the embodiment, the touch panel 1051 and the display panel 1041 are two independent components to realize the input and output functions of the electronic device 1000, but in some embodiments, the touch panel 1051 and the display panel 1041 can be integrated to realize the input and output functions of the electronic device 1000.
[0189] The electronic device 1000 may also include one or more sensors, such as a pressure sensor, a gravity acceleration sensor, a proximity light sensor, etc. Of course, according to the needs of specific applications, the electronic device 1000 may also include other components such as a camera. Since these components are not the key components used in the embodiments of the present application, Fig.10 It is not shown and will not be described in detail.
[0190] Those skilled in the art will understand that Fig.10 The electronic device is merely an example and does not limit the electronic device, and may include more or less components than those shown in the figure, or may combine certain components, or may include different components.
[0191] In an embodiment of the present application, a readable storage medium stores a computer program, and when the computer program is executed by a processor, a communication device can perform each step in the above embodiment.
[0192] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
[0193] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0194] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0197] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0198] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for configuring device parameters, characterized in that: include: Detecting surrounding devices, and if it is determined that there is a device to be connected, sending a connection request message to the device to be connected; When determining that a connection response message returned by the device to be connected based on the connection request message is received, establishing a connection with the device to be connected according to the connection response message; Acquire device parameter information of the device to be connected stored locally; Determine device configuration parameters according to the device parameter information; Sending the device configuration parameters to the device to be connected, so that the device to be connected performs parameter configuration according to the device configuration parameters; Determine the status of the device to be connected; Based on the state, sending an elevator ride request message including a target floor number to the device to be connected, so that the device to be connected performs an elevator key operation for the target floor number based on the elevator ride request message; receiving an elevator ride response message returned by the device to be connected, wherein the elevator ride response message is sent when the device to be connected determines that it has reached the target floor corresponding to the target floor number; According to the connection response message, a connection is established with the device to be connected, and the following steps are performed in a loop: S2011: receiving a connection response message returned by the device to be connected based on the connection request message; S2012: Determine whether the connection response message representation has passed the verification, if so, execute S2013, otherwise execute S2014; S2013: Establishing a connection with the device to be connected; S2014: Send a connection request message to the device to be connected, and execute S2011; Before acquiring the device parameter information of the device to be connected stored locally, the method further includes: In response to the user's device configuration instruction, display a device parameter configuration interface; In response to a user input operation on a device parameter configuration interface, acquiring device parameter information input by the user; The device parameter information is stored.
2. The method according to claim 1, characterized in that: The acquiring device parameter information of the device to be connected includes: Send a parameter request message to the device to be connected; Receiving a parameter response message returned by the device to be connected based on the parameter request message; Acquire the device parameter information contained in the parameter response message.
3. A device for configuring equipment parameters, characterized in that: include: A detection unit, configured to detect surrounding devices, and if it is determined that there is a device to be connected, send a connection request message to the device to be connected; A first determining unit, configured to determine, upon receiving a connection response message returned by the device to be connected based on the connection request message, to establish a connection with the device to be connected according to the connection response message; An acquiring unit, configured to acquire device parameter information of the device to be connected stored locally; A second determining unit, configured to determine a device configuration parameter according to the device parameter information; A configuration unit, configured to send the device configuration parameters to the device to be connected, so that the device to be connected performs parameter configuration according to the device configuration parameters; The configuration unit is further used for: Determine the status of the device to be connected; Based on the state, sending an elevator ride request message including a target floor number to the device to be connected, so that the device to be connected performs an elevator key operation for the target floor number based on the elevator ride request message; receiving an elevator ride response message returned by the device to be connected, wherein the elevator ride response message is sent when the device to be connected determines that it has reached the target floor corresponding to the target floor number; The first determining unit is specifically configured to execute the following steps in a loop: S2011: receiving a connection response message returned by the device to be connected based on the connection request message; S2012: Determine whether the connection response message representation has passed the verification, if so, execute S2013, otherwise execute S2014; S2013: Establishing a connection with the device to be connected; S2014: Send a connection request message to the device to be connected, and execute S2011; The acquisition unit is also used for: In response to the user's device configuration instruction, display a device parameter configuration interface; In response to a user input operation on a device parameter configuration interface, acquiring device parameter information input by the user; The device parameter information is stored.
4. The device according to claim 3, characterized in that The acquisition unit is specifically used for: Send a parameter request message to the device to be connected; Receiving a parameter response message returned by the device to be connected based on the parameter request message; Acquire the device parameter information contained in the parameter response message.
5. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 2 is executed.
6. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 2 is executed.
