Device control method and apparatus, electronic device, and storage medium

CN115828217BActive Publication Date: 2026-10-16BEIJING AIRDOC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211467748.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2026-10-16
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种设备控制方法、装置、电子设备及存储介质,以解决相关技术中移动终端无法通过扫码实现对设备的控制,导致移动终端无法控制设备的智能化运行的问题

Benefits of technology

[0054] In this embodiment, a predefined QR code link is sent to the mobile terminal based on an established session connection. In response to the mobile terminal clicking the QR code link, a scanning page is displayed on the mobile terminal's screen. In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the mobile terminal's screen, allowing the mobile terminal to control the target device through the device control page. This embodiment, by predefining a QR code link, can send the predefined link to the mobile terminal after establishing a session connection. The mobile terminal can then click the link to navigate to the scanning page, scan the QR code on the target device (such as medical equipment, mechanical equipment, etc.), and enter the corresponding device control page for intelligent control of the target device. Therefore, it is possible to achieve the goal of enabling the mobile terminal to access the device control page via QR code scanning for intelligent device operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115828217B_ABST
    Figure CN115828217B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a device control method and device, an electronic device and a storage medium. The method comprises: sending a predefined code scanning link to a mobile terminal based on an established session connection with the mobile terminal; displaying a code scanning page on a screen of the mobile terminal in response to the mobile terminal clicking the code scanning link; and displaying a device control page corresponding to a target device on the screen of the mobile terminal in response to the mobile terminal touching a code scanning control on the code scanning page to scan a two-dimensional code on the target device, so that the mobile terminal controls the target device through the device control page. Embodiments of the present application can achieve the purpose of the mobile terminal entering a device control page through code scanning to control the intelligent operation of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment control technology, and in particular to an equipment control method, apparatus, electronic device and storage medium. Background Technology

[0002] With the continuous development of science and technology, equipment control is becoming increasingly intelligent. Many enterprises and manufacturers can control equipment (such as medical equipment and mechanical equipment) through mobile phone apps to achieve intelligent operation of the equipment.

[0003] Currently, device control typically involves scanning a QR code on the device using WeChat and logging into a mini-program or official account to access the device control page. However, some users (such as overseas users) do not have the WeChat app installed on their mobile devices (such as smartphones). Therefore, they cannot control the device by scanning the code, resulting in the mobile terminal being unable to control the device's intelligent operation. Summary of the Invention

[0004] This application provides a device control method, apparatus, electronic device, and storage medium to solve the problem in related technologies where mobile terminals cannot control devices by scanning codes, resulting in mobile terminals being unable to control the intelligent operation of devices.

[0005] To solve the above-mentioned technical problems, the embodiments of this application are implemented as follows:

[0006] In a first aspect, embodiments of this application provide a device control method, the method comprising: sending a predefined QR code link to the mobile terminal based on an established session connection with the mobile terminal;

[0007] In response to the mobile terminal clicking the QR code link, the QR code scanning page is displayed on the screen of the mobile terminal;

[0008] In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the screen of the mobile terminal, so that the mobile terminal can control the target device through the device control page.

[0009] Optionally, sending a predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal includes:

[0010] In response to the mobile terminal scanning the QR code of the customer service robot, a session connection is established between the customer service robot and the mobile terminal;

[0011] The customer service robot sends the QR code link to the mobile terminal.

[0012] Optionally, the QR code scanning page further includes: a language selection control.

[0013] The step of responding to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device and displaying the device control page corresponding to the target device on the screen of the mobile terminal includes:

[0014] In response to the mobile terminal touching the language selection control to select a target language and touching the scanning control to scan the QR code on the target device, a device control page in the target language corresponding to the target device is generated based on the target language.

[0015] The device control page in the target language is displayed on the screen of the mobile terminal.

[0016] Optionally, after displaying the QR code scanning page on the screen of the mobile terminal, the method further includes:

[0017] In response to the mobile terminal touching the language selection control to select a target language and touching the scanning control to scan a QR code on the target device, a language switching instruction corresponding to the target device is generated based on the target language.

[0018] The language switching command is sent to the target device to control the target device to output voice information in the target language.

[0019] Optionally, the step of responding to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device and displaying the device control page corresponding to the target device on the screen of the mobile terminal includes:

[0020] In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, a login code verification page corresponding to the mobile terminal is generated;

[0021] The login code verification page is displayed on the screen of the mobile terminal;

[0022] Obtain and save the login verification code entered by the mobile terminal;

[0023] The device control page corresponding to the target device is displayed on the screen of the mobile terminal.

[0024] Optionally, after displaying the QR code scanning page on the screen of the mobile terminal, the method further includes:

[0025] In response to the mobile terminal touching the scanning control on the scanning page, a camera permission request information is generated;

[0026] After obtaining camera permissions from the mobile terminal, a scanning interface is displayed on the screen of the mobile terminal, so that the mobile terminal can scan the QR code on the target device through the scanning interface.

[0027] Optionally, the target device is a medical device.

[0028] Secondly, embodiments of this application provide a device control apparatus, the apparatus comprising:

[0029] The QR code link sending module is used to send a predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal;

[0030] A QR code page display module is used to display the QR code page on the screen of the mobile terminal in response to the mobile terminal clicking the QR code link;

[0031] The device control page display module is used to respond to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, and to display the device control page corresponding to the target device on the screen of the mobile terminal so that the mobile terminal can control the target device through the device control page.

[0032] Optionally, the QR code link sending module includes:

[0033] A session connection establishment unit is used to establish a session connection between the customer service robot and the mobile terminal in response to the mobile terminal scanning the QR code of the customer service robot.

[0034] A QR code link sending unit is used to send the QR code link to the mobile terminal based on the customer service robot.

[0035] Optionally, the QR code scanning page further includes: a language selection control.

[0036] The device control page display module includes:

[0037] The device control page generation unit is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a device control page in the target language corresponding to the target device based on the target language;

[0038] The first control page display unit is used to display the device control page in the target language on the screen of the mobile terminal.

[0039] Optionally, the device further includes:

[0040] The language switching instruction generation module is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a language switching instruction corresponding to the target device based on the target language;

[0041] A voice switching instruction sending unit is used to send the language switching instruction to the target device to control the target device to output voice information in the target language.

[0042] Optionally, the device control page display module includes:

[0043] The verification page generation unit is used to generate a login code verification page corresponding to the mobile terminal in response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device.

[0044] A verification page sending unit is used to display the login code verification page on the screen of the mobile terminal;

[0045] A login verification code acquisition unit is used to acquire and save the login verification code input by the mobile terminal;

[0046] The second control page display unit is used to display the device control page corresponding to the target device on the screen of the mobile terminal.

[0047] Optionally, the device further includes:

[0048] The permission request generation module is used to generate camera permission request information in response to the mobile terminal touching the scanning control on the scanning page.

[0049] The QR code scanning interface display module is used to display the QR code scanning interface on the screen of the mobile terminal after obtaining camera permissions, so that the mobile terminal can scan the QR code on the target device through the QR code scanning interface.

[0050] Optionally, the target device is a medical device.

[0051] Thirdly, embodiments of this application provide an electronic device, including:

[0052] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the device control method described in any of the preceding claims.

[0053] Fourthly, embodiments of this application provide a readable storage medium that, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform any of the device control methods described above.

[0054] In this embodiment, a predefined QR code link is sent to the mobile terminal based on an established session connection. In response to the mobile terminal clicking the QR code link, a scanning page is displayed on the mobile terminal's screen. In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the mobile terminal's screen, allowing the mobile terminal to control the target device through the device control page. This embodiment, by predefining a QR code link, can send the predefined link to the mobile terminal after establishing a session connection. The mobile terminal can then click the link to navigate to the scanning page, scan the QR code on the target device (such as medical equipment, mechanical equipment, etc.), and enter the corresponding device control page for intelligent control of the target device. Therefore, it is possible to achieve the goal of enabling the mobile terminal to access the device control page via QR code scanning for intelligent device operation.

[0055] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0056] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 A flowchart illustrating the steps of a device control method provided in this application embodiment;

[0058] Figure 2 A flowchart illustrating the steps of a method for sending a QR code link, as provided in this application embodiment;

[0059] Figure 3 A flowchart illustrating the steps of a device control page display method provided in this application embodiment;

[0060] Figure 4 A flowchart illustrating the steps of a language switching instruction sending method provided in this application embodiment;

[0061] Figure 5 A flowchart illustrating the steps of another device control page display method provided in this application embodiment;

[0062] Figure 6 A flowchart illustrating the steps of a QR code scanning interface display method provided in this application embodiment;

[0063] Figure 7 This is a schematic diagram of the structure of a device control apparatus provided in an embodiment of this application;

[0064] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0065] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0066] Reference Figure 1 The diagram illustrates a flowchart of a device control method according to an embodiment of this application. Figure 1 As shown, the device control method may include steps 101, 102 and 103.

[0067] Step 101: Based on the established session connection with the mobile terminal, send the predefined QR code link to the mobile terminal.

[0068] In this embodiment of the application, the QR code link can be an H5 link, that is, a pre-developed HTML5 page link.

[0069] A session connection refers to a connection established with a mobile terminal for sending session messages.

[0070] In the specific implementation, a session connection can be established with the mobile terminal. Through this session connection, a predefined QR code link can be sent to the mobile terminal. In this example, an online customer service robot can be pre-registered and operated on a mainstream platform (including but not limited to major overseas platforms), and equipped with a corresponding QR code. After a user (including but not limited to overseas users) scans the QR code with their mobile terminal, a session connection can be established with the customer service robot, which can then send the QR code link to the mobile terminal. This implementation process can be combined with... Figure 2 The following is a detailed description.

[0071] Reference Figure 2The flowchart illustrates the steps of a QR code link scanning method provided in an embodiment of this application, as follows: Figure 2 As shown, the method for sending the QR code link may include steps 201 and 202.

[0072] Step 201: In response to the mobile terminal scanning the QR code of the customer service robot, establish a session connection between the customer service robot and the mobile terminal.

[0073] In this embodiment, an online customer service robot is pre-approved for operation on a mainstream platform. The customer service robot can be equipped with QR codes corresponding to different systems, such as QR codes corresponding to Apple systems. Mobile terminals can scan the corresponding QR codes according to their own systems.

[0074] After scanning the customer service robot's QR code on a mobile device, a conversation link can be established between the customer service robot and the mobile device. Through this conversation link, the customer service robot can establish a conversational connection with the mobile device.

[0075] After establishing a session connection between the customer service robot and the mobile terminal, proceed to step 202.

[0076] Step 202: Send the QR code link to the mobile terminal based on the customer service robot.

[0077] After establishing a session connection between the customer service robot and the mobile terminal, a predefined QR code link can be sent to the mobile terminal based on the customer service robot.

[0078] This application embodiment utilizes a customer service robot that is already in operation on a mainstream platform and is configured with QR codes corresponding to various systems (including but not limited to overseas systems). Mobile terminals can establish a session connection by scanning the QR code, thereby enabling the sending of the scanned link.

[0079] After sending the predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal, step 102 is executed.

[0080] Step 102: In response to the mobile terminal clicking the QR code link, the QR code scanning page is displayed on the screen of the mobile terminal.

[0081] A QR code scanning page is a page used to instruct mobile terminal users to scan the QR code on their device. This page displays scanning controls and language selection controls. The scanning controls indicate whether to enable the scanning function, and the language selection controls indicate whether to switch languages. Of course, it's not limited to these; a back button or other controls may also be displayed on the scanning page.

[0082] After a predefined QR code link is sent to the mobile terminal based on the established session connection, if the mobile terminal user wants to control the device through the mobile terminal, the mobile terminal user can click on the QR code link.

[0083] After receiving a request from a mobile terminal to click on a QR code link, the system can respond by displaying the QR code scanning page on the mobile terminal's screen.

[0084] After displaying the QR code scanning page on the mobile terminal's screen, proceed to step 103.

[0085] Step 103: In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the screen of the mobile terminal, so that the mobile terminal can control the target device through the device control page.

[0086] In this example, the target device can be a medical device, but it is not limited to this. In specific implementations, the target device can also be mechanical equipment, vehicle-mounted equipment, home appliances, etc.

[0087] In practice, a corresponding QR code is affixed to the target device. Users can control the target device by scanning the QR code with their terminal. Understandably, different devices have different QR codes. Each device's QR code is unique and can be pre-set at the factory to indicate the identity of different devices and the control methods of different devices.

[0088] The device control page is a page for controlling the target device. Multiple function controls (such as power on, power off, reagent replacement, etc.) can be set on the device control page. Intelligent control of the target device can be achieved by touching multiple function controls.

[0089] The scanning page displays a scanning control. After the scanning page is displayed on the screen of the mobile terminal, if the mobile terminal user wants to scan the QR code of the target device to achieve intelligent control of the target device, the mobile terminal user can click the scanning control on the scanning page to open the electronic camera on the mobile terminal to enter the scanning interface and scan the QR code on the target device.

[0090] After receiving the operation of scanning the QR code on the target device using the scanning control on the mobile terminal's touch scanning page, the device control page corresponding to the target device can be displayed on the screen of the mobile terminal, so that the mobile terminal can control the target device through the device control page.

[0091] In this embodiment, after the mobile terminal user clicks the scan control on the scan page, they can also request camera permission from the mobile terminal. Only after the mobile terminal user grants camera permission can the subsequent operation of scanning the QR code on the target device be performed. This implementation process can be combined with... Figure 6 The following is a detailed description.

[0092] Reference Figure 6 The flowchart illustrates the steps of a QR code scanning interface display method provided in an embodiment of this application, as follows: Figure 6 As shown, the method for displaying the QR code scanning interface may include steps 601 and 602.

[0093] Step 601: In response to the mobile terminal touching the scanning control on the scanning page, generate camera permission request information.

[0094] In this embodiment, after the scanning page is displayed on the screen of the mobile terminal, if the mobile terminal touches the scanning control on the scanning page, a camera permission request message can be generated in response to the mobile terminal touching the scanning control on the scanning page, so as to request the mobile terminal's camera permission.

[0095] After generating the camera permission request information, proceed to step 602.

[0096] Step 602: After obtaining camera permission from the mobile terminal, display the scanning interface on the screen of the mobile terminal so that the mobile terminal can scan the QR code on the target device through the scanning interface.

[0097] After generating the camera permission request information, it can be sent to the mobile terminal to request camera permission. At this point, the mobile terminal user can choose whether to grant camera permission.

[0098] If the mobile device user chooses to grant camera permissions, then camera access will be granted to the mobile device. After obtaining camera access, a QR code scanning interface can be displayed on the mobile device's screen, allowing the mobile device to scan the QR code on the target device.

[0099] This application embodiment can display the scanning interface to scan the QR code of the target device only after the mobile terminal has authorized camera permissions, which can improve the security of the mobile terminal.

[0100] In this embodiment, a language selection control is also displayed on the QR code scanning page. Mobile terminal users can touch this language selection control to select the corresponding language, thereby displaying the device control page for the selected language on the mobile terminal's screen. This implementation process can be combined with... Figure 3The following is a detailed description.

[0101] Reference Figure 3 The diagram illustrates a flowchart of a device control page display method according to an embodiment of this application. Figure 3 As shown, the device control page display method may include steps 301 and 302.

[0102] Step 301: In response to the mobile terminal touching the language selection control to select the target language and touching the scanning control to scan the QR code on the target device, generate a device control page in the target language corresponding to the target device.

[0103] In this embodiment, a language selection control is also displayed on the scanning page. After the scanning page is displayed on the mobile terminal screen, if the mobile terminal user switches languages, they can touch the language selection control on the scanning page to select the target language, such as German, English, or French. After the mobile terminal user selects the target language using the language selection control, they can touch the scanning control on the scanning page to enter the scanning interface and scan the QR code of the target device.

[0104] Upon receiving the target language selected by the mobile terminal's touch language selection control and the operation of the touch scanning control to scan the QR code on the target device, the system can respond to the target language selection and the scanned QR code by generating a device control page in the target language corresponding to the target device. For example, if the original language text of the device control page is Chinese and the mobile terminal user selects German as the target language, a mature API (Application Programming Interface) can be used to translate the original language text of the device control page to obtain a device control page in German.

[0105] It is understood that the above examples are merely examples listed to better understand the technical solutions of the embodiments of this application, and are not intended to be the only limitation on the embodiments.

[0106] After generating the device control page in the target language corresponding to the target device based on the target language, proceed to step 302.

[0107] Step 302: Display the device control page in the target language on the screen of the mobile terminal.

[0108] After generating a device control page in the target language corresponding to the target device, the device control page in the target language can be displayed on the screen of the mobile terminal.

[0109] This application embodiment can meet the user's language selection needs and improve the user experience by displaying a language selection control on the QR code scanning page.

[0110] In this embodiment, after the mobile terminal user selects a target language, the language of the audio output by the target device can be switched according to the target language selected by the mobile terminal user. This implementation process can be combined with... Figure 4 The following is a detailed description.

[0111] Reference Figure 4 The flowchart illustrates the steps of a language switching instruction sending method provided in an embodiment of this application, as shown below. Figure 4 As shown, the language switching instruction sending method may include steps 401 and 402.

[0112] Step 401: In response to the mobile terminal touching the language selection control to select the target language and touching the scanning control to scan the QR code on the target device, a language switching instruction corresponding to the target device is generated based on the target language.

[0113] In this embodiment, the language switching instruction refers to an instruction used to instruct the target device to switch the language of the output audio.

[0114] Upon receiving the target language selected by the mobile terminal's touch language selection control and the operation of the touch scanning control scanning the QR code on the target device, the system can respond to the target language selection by the mobile terminal's touch language selection control and the operation of the touch scanning control scanning the QR code on the target device, and generate a language switching instruction corresponding to the target device based on the target language. The language switching instruction includes an instruction to the target device to switch to the target language.

[0115] After generating the corresponding language switching instruction for the target device based on the target language, step 402 is executed.

[0116] Step 402: Send the language switching instruction to the target device to control the target device to output the voice information of the target language.

[0117] After generating the corresponding language switching command for the target device based on the target language, the language switching command can be sent to the target device to control the target device to output voice information in the target language. For example, when the target language is German, a language switching command can be generated based on German to control the target device to output German audio, etc.

[0118] This application embodiment controls the target device to switch the language of the output audio by combining the target language selected by the mobile terminal user, which can meet the needs of the mobile terminal user.

[0119] In this embodiment, when the mobile terminal scans the QR code on the target device, a login code verification page can also be generated. After the mobile terminal enters the login verification code, the device control page is then displayed on the mobile terminal's screen. This implementation process can be combined with... Figure 5 The following is a detailed description.

[0120] Reference Figure 5 This illustrates a flowchart of another device control page display method provided in an embodiment of this application, such as... Figure 5 As shown, the device control page display method may include steps 501, 502, 503, and 504.

[0121] Step 501: In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, a login code verification page corresponding to the mobile terminal is generated.

[0122] In this embodiment of the application, after the scanning page is displayed on the screen of the mobile terminal, when the mobile terminal user selects the scanning control on the scanning page to scan the QR code on the target device, the mobile terminal can respond to the scanning control on the scanning page to scan the QR code on the target device and generate a login code verification page corresponding to the mobile terminal. This login code verification page can be used to instruct the mobile terminal to enter the login verification code.

[0123] After generating the login code verification page for the mobile terminal, proceed to step 502.

[0124] Step 502: Display the login code verification page on the screen of the mobile terminal.

[0125] After generating the login code verification page for the mobile terminal, the login code verification page can be displayed on the mobile terminal screen.

[0126] After displaying the login code verification page on the mobile device's screen, proceed to step 503.

[0127] Step 503: Obtain and save the login verification code entered by the mobile terminal.

[0128] After the login code verification page is displayed on the mobile terminal screen, the mobile terminal user can enter the login verification code in the verification code input box on the login code verification page.

[0129] After obtaining the login verification code entered by the mobile terminal on the login code verification page, the login verification code entered by the mobile terminal can be saved.

[0130] After obtaining and saving the login verification code entered by the mobile terminal, proceed to step 504.

[0131] Step 504: Display the device control page corresponding to the target device on the screen of the mobile terminal.

[0132] After obtaining and saving the login verification code entered by the mobile terminal, the device control page corresponding to the target device can be displayed on the screen of the mobile terminal.

[0133] In this example, the login verification code entered by the mobile terminal user on the login code verification page can be a mobile phone number. In subsequent processes, the information associated with the target device can be sent to the mobile terminal via SMS or other means.

[0134] In the specific implementation, after a mobile terminal user enters a login verification code on the login code verification page and the device control page is displayed on the mobile terminal's screen, the login time of the mobile terminal user logging into the device control page can be recorded. Subsequently, after receiving a scan of the QR code on the target device from another mobile terminal, the scanning time of that other mobile terminal can be recorded. Then, it can be determined whether the time between the login time and the scanning time reaches a preset duration. If the preset duration is not reached, the login of other mobile terminals to the target device's device control page is denied. Otherwise, the login of other mobile terminals to the target device's device control page can be allowed.

[0135] This application embodiment verifies the mobile terminal by requiring a login verification code when logging into the device control page, thus preventing unauthorized control of the target device. Simultaneously, setting a preset time duration prevents multiple users from controlling the target device simultaneously, which could lead to device malfunctions.

[0136] This application provides a device control method that sends a predefined QR code link to a mobile terminal based on an established session connection. In response to the mobile terminal clicking the QR code link, a scanning page is displayed on the mobile terminal's screen. In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, a device control page corresponding to the target device is displayed on the mobile terminal's screen, allowing the mobile terminal to control the target device through the device control page. This application embodiment, by predefining a QR code link, can send the predefined QR code link to the mobile terminal after establishing a session connection. The mobile terminal can click the QR code link to jump to the scanning page, scan the QR code on the target device (such as medical equipment, mechanical equipment, etc.), and enter the corresponding device control page for intelligent control of the target device. Therefore, it can achieve the goal of enabling the mobile terminal to control the intelligent operation of the device by scanning a QR code to access the device control page.

[0137] Reference Figure 7 The diagram shows a structural schematic of a device control apparatus provided in an embodiment of this application, such as... Figure 7 As shown, the device control unit 700 may include the following modules:

[0138] The QR code link sending module 710 is used to send a predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal;

[0139] The QR code page display module 720 is used to display the QR code page on the screen of the mobile terminal in response to the mobile terminal clicking the QR code link;

[0140] The device control page display module 730 is used to respond to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, and to display the device control page corresponding to the target device on the screen of the mobile terminal so that the mobile terminal can control the target device through the device control page.

[0141] Optionally, the QR code link sending module 710 includes:

[0142] A session connection establishment unit is used to establish a session connection between the customer service robot and the mobile terminal in response to the mobile terminal scanning the QR code of the customer service robot.

[0143] A QR code link sending unit is used to send the QR code link to the mobile terminal based on the customer service robot.

[0144] Optionally, the QR code scanning page further includes: a language selection control.

[0145] The device control page display module 730 includes:

[0146] The device control page generation unit is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a device control page in the target language corresponding to the target device based on the target language;

[0147] The first control page display unit is used to display the device control page in the target language on the screen of the mobile terminal.

[0148] Optionally, the device further includes:

[0149] The language switching instruction generation module is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a language switching instruction corresponding to the target device based on the target language;

[0150] A voice switching instruction sending unit is used to send the language switching instruction to the target device to control the target device to output voice information in the target language.

[0151] Optionally, the device control page display module 730 includes:

[0152] The verification page generation unit is used to generate a login code verification page corresponding to the mobile terminal in response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device.

[0153] A verification page sending unit is used to display the login code verification page on the screen of the mobile terminal;

[0154] A login verification code acquisition unit is used to acquire and save the login verification code input by the mobile terminal;

[0155] The second control page display unit is used to display the device control page corresponding to the target device on the screen of the mobile terminal.

[0156] Optionally, the device further includes:

[0157] The permission request generation module is used to generate camera permission request information in response to the mobile terminal touching the scanning control on the scanning page.

[0158] The QR code scanning interface display module is used to display the QR code scanning interface on the screen of the mobile terminal after obtaining camera permissions, so that the mobile terminal can scan the QR code on the target device through the QR code scanning interface.

[0159] Optionally, the target device is a medical device.

[0160] The device control device provided in this application embodiment sends a predefined QR code link to the mobile terminal based on an established session connection with the mobile terminal. In response to the mobile terminal clicking the QR code link, a scanning page is displayed on the mobile terminal's screen. In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the mobile terminal's screen, allowing the mobile terminal to control the target device through the device control page. This application embodiment, by predefining the QR code link, can send the predefined QR code link to the mobile terminal after establishing a session connection. The mobile terminal can click the QR code link to jump to the scanning page, scan the QR code on the target device (such as medical equipment, mechanical equipment, etc.), and enter the device control page corresponding to the target device for intelligent control of the target device. Therefore, it can achieve the purpose of the mobile terminal accessing the device control page by scanning a QR code to control the intelligent operation of the device.

[0161] Additionally, this application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the above-described device control method.

[0162] Figure 8 A schematic diagram of the structure of an electronic device 800 according to an embodiment of the present invention is shown. Figure 8 As shown, the electronic device 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 802 or loaded from storage unit 808 into random access memory (RAM) 803. The RAM 803 may also store various programs and data required for the operation of the electronic device 800. The CPU 801, ROM 802, and RAM 803 are interconnected via bus 804. An input / output (I / O) interface 805 is also connected to bus 804.

[0163] Multiple components in electronic device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, microphone, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows electronic device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0164] The various processes and handling described above can be executed by processing unit 801. For example, the methods of any of the above embodiments can be implemented as computer software programs tangibly contained in a computer-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by CPU 801, one or more actions of the methods described above can be performed.

[0165] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described device control method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0166] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0168] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0169] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0170] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0171] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

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

[0173] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0174] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0175] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A device control method, characterized in that, The method includes: Based on the established session connection with the mobile terminal, a predefined QR code link is sent to the mobile terminal; In response to the mobile terminal clicking the QR code link, the QR code scanning page is displayed on the screen of the mobile terminal; In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, the device control page corresponding to the target device is displayed on the screen of the mobile terminal, so that the mobile terminal can control the target device through the device control page; The step of sending a predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal includes: In response to the mobile terminal scanning the QR code of the customer service robot, a session connection is established between the customer service robot and the mobile terminal; The customer service robot sends the QR code link to the mobile terminal. The scanning page refers to the page used to instruct the mobile terminal user to scan the QR code on the device.

2. The method according to claim 1, characterized in that, The QR code scanning page also includes: a language selection control. The step of responding to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device and displaying the device control page corresponding to the target device on the screen of the mobile terminal includes: In response to the mobile terminal touching the language selection control to select a target language and touching the scanning control to scan the QR code on the target device, a device control page in the target language corresponding to the target device is generated based on the target language. The device control page in the target language is displayed on the screen of the mobile terminal.

3. The method according to claim 2, characterized in that, After displaying the QR code scanning page on the screen of the mobile terminal, the method further includes: In response to the mobile terminal touching the language selection control to select a target language and touching the scanning control to scan a QR code on the target device, a language switching instruction corresponding to the target device is generated based on the target language. The language switching command is sent to the target device to control the target device to output voice information in the target language.

4. The method according to claim 1, characterized in that, The step of responding to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device and displaying the device control page corresponding to the target device on the screen of the mobile terminal includes: In response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, a login code verification page corresponding to the mobile terminal is generated; The login code verification page is displayed on the screen of the mobile terminal; Obtain and save the login verification code entered by the mobile terminal; The device control page corresponding to the target device is displayed on the screen of the mobile terminal.

5. The method according to claim 1, characterized in that, After displaying the QR code scanning page on the screen of the mobile terminal, the method further includes: In response to the mobile terminal touching the scanning control on the scanning page, a camera permission request information is generated; After obtaining camera permissions from the mobile terminal, a scanning interface is displayed on the screen of the mobile terminal, so that the mobile terminal can scan the QR code on the target device through the scanning interface.

6. The method according to any one of claims 1 to 5, characterized in that, The target device is a medical device.

7. A device control apparatus, characterized in that, The device includes: The QR code link sending module is used to send a predefined QR code link to the mobile terminal based on the established session connection with the mobile terminal; A QR code page display module is used to display the QR code page on the screen of the mobile terminal in response to the mobile terminal clicking the QR code link; The device control page display module is used to respond to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device, and to display the device control page corresponding to the target device on the screen of the mobile terminal so that the mobile terminal can control the target device through the device control page; The QR code link sending module includes: A session connection establishment unit is used to establish a session connection between the customer service robot and the mobile terminal in response to the mobile terminal scanning the QR code of the customer service robot. A QR code link sending unit is used to send the QR code link to the mobile terminal based on the customer service robot; The scanning page refers to the page used to instruct the mobile terminal user to scan the QR code on the device.

8. The apparatus according to claim 7, characterized in that, The QR code scanning page also includes: a language selection control. The device control page display module includes: The device control page generation unit is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a device control page in the target language corresponding to the target device based on the target language; The first control page display unit is used to display the device control page in the target language on the screen of the mobile terminal.

9. The apparatus according to claim 8, characterized in that, The device further includes: The language switching instruction generation module is used to respond to the target language selected by the mobile terminal by touching the language selection control and to touch the scanning control to scan the QR code on the target device, and to generate a language switching instruction corresponding to the target device based on the target language; A voice switching instruction sending unit is used to send the language switching instruction to the target device to control the target device to output voice information in the target language.

10. The apparatus according to claim 7, characterized in that, The device control page display module includes: The verification page generation unit is used to generate a login code verification page corresponding to the mobile terminal in response to the mobile terminal touching the scanning control on the scanning page to scan the QR code on the target device. A verification page sending unit is used to display the login code verification page on the screen of the mobile terminal; A login verification code acquisition unit is used to acquire and save the login verification code input by the mobile terminal; The second control page display unit is used to display the device control page corresponding to the target device on the screen of the mobile terminal.

11. The apparatus according to claim 7, characterized in that, The device further includes: The permission request generation module is used to generate camera permission request information in response to the mobile terminal touching the scanning control on the scanning page. The QR code scanning interface display module is used to display the QR code scanning interface on the screen of the mobile terminal after obtaining camera permissions, so that the mobile terminal can scan the QR code on the target device through the QR code scanning interface.

12. The apparatus according to any one of claims 7 to 11, characterized in that, The target device is a medical device.

13. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the device control method as described in any one of claims 1 to 6.

14. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the device control method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for sharing mobile terminal content and apparatus thereof

    CN107295035A

  • Intelligent equipment control method, related equipment and system

    CN110611708A