Connection switching method and device and storage medium
By detecting the charging signal and address information, the display device is automatically disconnected and re-paired, solving the problem that the smart pen cannot automatically switch and connect between multiple large-screen devices, realizing the smooth switching of the smart pen between different devices, and enhancing users Experience and flexibility.
Patent Information
- Application Number
- CN202411325040.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2024-12-27
AI Technical Summary
The smart pen cannot automatically switch and connect between multiple adjacent large-screen devices, resulting in teachers needing to manually disconnect and re-pair when using it between different classrooms, affecting user experience and flexibility.
By detecting the charging signal and address information, the display device automatically disconnects the existing pairing connection with the smart pen, and initiates a pairing request based on the address information received by the charging assist communication to establish a new pairing connection to ensure that the smart pen is between different display devices Smooth switching.
It realizes seamless switching between smart pens between different display devices, improves user experience and flexibility of smart pens, and ensures usability and connection smoothness in multi-device scenarios.
Smart Images

Figure CN119212120A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device and storage medium for switching connections. Background Art
[0002] With the advent of the digital age, the information interaction methods and data processing methods in industries such as education, business and medical care are also being updated, and the interactive technology of smart pens and large-screen whiteboards has emerged. Through this technology, users can communicate and create in a more intuitive and interactive way. Whether in classroom teaching interaction, collaborative discussion in the conference room, or professional communication in the medical field, the combination of smart pens and large-screen whiteboards provides users with great convenience and enhanced experience.
[0003] However, when the distance between multiple large-screen whiteboards is relatively close, the smart pen often cannot automatically switch the connection with the large-screen whiteboard. For example, in teaching scenarios, teachers usually need to carry one or more smart pens to write and operate on the large screens in different classrooms. However, a smart pen can usually only store the information of a paired large screen. When a teacher needs to use the same smart pen on the large screens in two or more adjacent classrooms, the smart pen cannot automatically switch the connection target because the large screens in the adjacent classrooms are relatively close. After the teacher moves to a new classroom, because the large screen in the previous classroom is still paired with the smart pen, it cannot automatically disconnect the paired connection with the smart pen, which results in the large screen in the new classroom being unable to connect to the teacher's smart pen.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a method for switching connections, aiming to solve the technical problem of how to enable a single smart pen to automatically switch between different large-screen devices.
[0006] To achieve the above object, the present application proposes a method for switching connections, which is applied to a display device, and the method includes:
[0007] If a power signal sent by a paired smart pen is received, it is determined whether the charging device has established a charging connection with the charging device;
[0008] If the charging connection with the charging device is not established, the pairing connection with the smart pen is disconnected.
[0009] In one embodiment, the method further comprises:
[0010] If a charging connection has been established with the charging device, determining whether the charging device is the smart pen;
[0011] If not, the step of disconnecting the pairing connection with the smart pen is performed.
[0012] In one embodiment, if a charging connection has been established with a charging device, the step of determining whether the charging device is the smart pen comprises:
[0013] receiving first address information of the charging device based on charging auxiliary communication;
[0014] If the first address information matches the second address information of the smart pen, determining that the charging device is the smart pen;
[0015] If the first address information does not match the second address information of the smart pen, it is determined that the charging device is not the smart pen.
[0016] In addition, to achieve the above purpose, the present application also proposes a method for switching connections, which is applied to a display device, and the method includes:
[0017] If it is detected that the charging device has established a charging connection with the charging equipment, the address information sent by the charging equipment is received based on the charging auxiliary communication;
[0018] Determining whether there is a paired device matching the address information;
[0019] If not, a pairing request is sent to the charging device based on the address information, and a pairing connection is established with the charging device based on response information of the pairing request.
[0020] In addition, to achieve the above purpose, the present application also proposes a method for switching connection, which is applied to a smart pen, and the method includes:
[0021] When charging behavior is detected, a power signal is sent to the paired display device, and address information is sent to the display device connected to the charging device based on charging auxiliary communication.
[0022] In one embodiment, the method further comprises:
[0023] Disconnecting the paired connection with the paired display device;
[0024] In response to a pairing request sent by a target device, a pairing connection is established with the target device, wherein the target device is another display device other than the paired display device.
[0025] In one embodiment, before the step of establishing a pairing connection with the target device in response to the pairing request sent by the target device, the step further includes:
[0026] If a pairing request sent by a display device is received, the third address information of the display device is determined based on the pairing request.
[0027] Acquire fourth address information of the target device based on the charging auxiliary communication reception;
[0028] If the third address information matches the fourth address information, it is determined that the display device that sends the pairing request is the target device.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a switching connection device, which includes a display device, and the display device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the method for switching connections as described above.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a switching connection device, which includes a smart pen, and the smart pen includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the method for switching connections as described above.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for switching connections as described above are implemented.
[0032] The present application provides a method for switching connections. When a display device receives a power signal sent by a paired smart pen, it first determines whether its own charging device has established a charging connection with the charging device. If a charging connection has not been established, the display device will automatically disconnect the existing pairing connection with the smart pen. This allows a new display device to establish a connection with the smart pen. In addition, when the display device detects that its own charging device has established a charging connection with the charging device, it can receive address information sent by the charging device based on charging auxiliary communication. If the display device confirms that there is no paired device that matches the received address information, it will initiate a pairing request to the charging device through the address information. Once the response information of the charging device is received, the display device will establish a pairing connection with the charging device according to the response. In this way, the display device can automatically establish and disconnect the connection with the smart pen, ensuring smooth switching of the smart pen between different display devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] Figure 1 A flowchart of a method for switching a connection according to an embodiment of the present invention is provided;
[0036] Figure 2 A flowchart of a second embodiment of the method for switching connections provided in the present application;
[0037] Figure 3 A schematic diagram of a method flow chart provided for the second embodiment of the method for switching connection of the present application;
[0038] Figure 4 A flowchart of a method for switching a connection according to a third embodiment of the present invention is provided;
[0039] Figure 5 A schematic diagram of a method flow chart provided for a fourth embodiment of the method for switching connections of the present application;
[0040] Figure 6 A flowchart of a method for switching connections according to a fifth embodiment of the present invention is provided;
[0041] Figure 7 A schematic diagram of a simplified flow chart of a method for switching connections in an embodiment of the present application;
[0042] Figure 8 A schematic diagram of the device structure of the hardware operating environment involved in the method for switching connections in an embodiment of the present application.
[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0046] With the advent of the digital age, the information interaction methods and data processing methods in industries such as education, business and medical care are also being updated, and the interactive technology between smart pens and display devices such as large-screen whiteboards has emerged. Through this technology, users can communicate and create in a more intuitive and interactive way. Whether it is teaching interaction in the classroom, collaborative discussion in the conference room, or professional communication in the medical field, the combination of smart pens and display devices provides users with great convenience. However, smart pens can usually only store information about one paired display device. When a smart pen interacts with multiple display devices, if the distance between the display devices is close, the display device cannot automatically disconnect from the smart pen, making it impossible for the smart pen to automatically switch the connection target.
[0047] In view of the above problems, the present application proposes a method for switching connections. When the display device receives a power signal sent by a paired smart pen, it first determines whether its own charging device has established a charging connection with the charging device. If the charging connection has not been established, the display device will automatically disconnect the existing pairing connection with the smart pen. This allows a new display device to establish a connection with the smart pen. In addition, when the display device detects that its own charging device has established a charging connection with the charging device, it can receive the address information sent by the charging device based on charging auxiliary communication. If the display device confirms that there is no paired device that matches the received address information, it will initiate a pairing request to the charging device through the address information. Once the response information of the charging device is received, the display device will establish a pairing connection with the charging device according to the response. In this way, the display device can automatically establish and disconnect the connection with the smart pen, ensuring smooth switching of the smart pen between different display devices.
[0048] Based on this, the first embodiment proposed in this application provides a method for switching connections, which is applied to a smart pen. The following takes a display device as an example to illustrate this embodiment. Figure 1 In this embodiment, the method for switching connection includes steps S10 to S20:
[0049] Step S10: if a power signal sent by a paired smart pen is received, it is determined whether the charging device has established a charging connection with the charging device.
[0050] It should be noted that when the smart pen is paired with the display device, a stable connection signal will be established between the two. The connection signal is the basis for data transmission and communication between the smart pen and the display device, which ensures that the two can recognize each other and exchange information. Pairing connection methods may include Bluetooth connection, WiFi (Wireless Fidelity) connection, etc. Among them, the display device includes an interactive whiteboard used in classrooms, conference rooms or offices, which can be used for writing, display and collaboration. The display device may also include a smart phone, tablet computer, etc., as an auxiliary device for the smart pen, for displaying or recording handwriting. In addition, the display device may also include a control panel in a smart home environment, which controls lighting, temperature, etc. by touching or writing with the smart pen.
[0051] Optionally, after the smart pen is paired with the display device, the smart pen can store the address information of the display device, such as the Bluetooth MAC (Media Access Control) address of the display device. The smart pen sends a power signal to the display device through the address information to inform the display device that it is being charged. At this time, the display device needs to confirm whether the smart pen is connected to itself for charging, that is, whether the smart pen needs to switch the connection.
[0052] Optionally, when the charging device is connected to the display device for wireless charging, a charging identifier can be sent to the charging device of the display device, and the display device determines whether its own charging device has established a charging connection with the charging device by detecting whether the charging identifier is received.
[0053] For example, suppose that a display device A is connected to a smart pen. When the display device A receives the power signal of the smart pen, it means that the smart pen is being charged. If the smart pen is being charged on the display device A, the display device A will receive the charging identifier sent by the smart pen. If the pen is being charged on another display device B, the display device A cannot receive the charging identifier sent by the smart pen. If the display device A does not receive any charging identifier within a certain period of time, it can be confirmed that the charging device of the display device A is not charging any smart pen.
[0054] Optionally, when the charging device is connected to the display device for wireless charging, the display device can determine whether to charge the charging device by confirming the distance between its own charging device and the charging device. If the distance between the charging device and the charging device is less than a preset distance, it is determined that the charging device is charging the charging device.
[0055] Exemplarily, when the smart pen is close to the charging device of the display device, such as a wireless charging pad, the magnetic field coupling is enhanced, so that effective energy transmission can be performed. Display devices such as the large screen of a smart conference room are equipped with a built-in wireless charging module, which can generate an electromagnetic field to charge compatible charging devices such as smart pens. The wireless charging module is equipped with a distance sensor for detecting whether the smart pen is within the charging range. This distance sensor can be based on electromagnetic field strength, infrared sensor or other close-range detection technology. When the large screen receives the power signal sent by the paired smart pen, the distance sensor detects whether there is a smart pen within a preset distance of the charging pad, such as 5 mm, and then determines whether there is a smart pen charging on the large screen.
[0056] Step S20: If the charging connection with the charging device is not established, disconnect the pairing connection with the smart pen.
[0057] If the display device does not establish a charging connection with any charging device, it means that the paired smart pen needs to be paired with other display devices. The display device will automatically disconnect the paired connection relationship with the paired smart pen so that the smart pen can freely pair with other display devices.
[0058] Optionally, the display device sends a specific disconnection signal or instruction to the smart pen through the address information of the paired smart pen, notifying the smart pen to disconnect the current pairing connection. Alternatively, the display device clears the pairing information related to the paired smart pen in its own storage system, including the pairing credentials, the address information of the smart pen, etc., thereby disconnecting the pairing connection.
[0059] In this embodiment, when the user needs to switch the connection of the smart pen between multiple adjacent display devices, the smart pen can be placed in the charging area of the display device to start the charging process. During this process, the smart pen will send a power signal to the paired display device. The paired display device detects these signals and confirms whether the smart pen is charging with itself to accurately determine whether the smart pen intends to establish a new pairing connection. If the paired display device determines that the smart pen is not charging with itself, it will automatically disconnect the existing pairing connection with the smart pen. In this way, the smart pen can successfully establish a connection with the new display device, ensuring the user's seamless switching experience between different display devices.
[0060] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 In this embodiment, the method for switching connection includes steps S30 to S40:
[0061] Step S30: If a charging connection has been established with the charging device, determine whether the charging device is the smart pen.
[0062] If the display device receives a power signal sent by a paired smart pen and also establishes a charging connection with a charging device, the display device needs to confirm whether the charging device is the paired smart pen.
[0063] Optionally, in a feasible implementation manner, referring to Figure 3 , step S30 includes steps S31 to S34:
[0064] Step S31: receiving first address information of the charging device based on charging auxiliary communication.
[0065] It should be noted that charging-assisted communication refers to the communication between the charging device and the charged device during the charging process, which can be used to transmit data, identify devices and other information. For example, in wireless charging, the wireless charging signal contains an alternating magnetic field generated by one or more wireless charging coils. These coils transmit electrical energy from the charging device in the display device to the receiver of the charging device through electromagnetic induction. In addition to energy transmission, these signals may also include data transmission functions. For example, the auxiliary communication function of the Qi standard allows the display device to receive the first address information of the charging device during the charging process.
[0066] Optionally, the charging device can be connected to the display device for auxiliary charging via Wi-Fi Direct. When the charging device and the display device are charging, the display device communicates with the charging pen via Wi-Fi Direct to receive the address information of the charging device.
[0067] Step S32: If the first address information matches the second address information of the smart pen, it is determined that the charging device is the smart pen.
[0068] Step S33: if the first address information does not match the second address information of the smart pen, it is determined that the charging device is not the smart pen.
[0069] It should be noted that, because the display device and the smart pen have been paired and connected, the display device stores the second address information of the paired and connected smart pen.
[0070] For example, if the smart pen and the display device are connected via Bluetooth pairing, the smart pen and the display device will store each other's Bluetooth MAC addresses, and the display device can confirm which smart pen is matched and connected through the stored Bluetooth MAC address.
[0071] After the display device receives the first address information of the charging device, it compares the first address information with the stored second address information. If the two match, it means that the charging device being charged on the display device is the smart pen paired with the display device; if the two do not match, it means that the charging device being charged on the display device is a new smart pen, and this new smart pen wants to establish a pairing connection with the display device.
[0072] Step S40: If the charging device is not the smart pen, the step of disconnecting the pairing connection with the smart pen is performed.
[0073] For example, assume that in a conference room of a large enterprise, each conference room is equipped with a smart conference tablet with wireless charging function. These smart tablets can not only display the content of the meeting, but also provide wireless charging for the smart pens of the participants. Each smart pen has a unique address information for identifying the device. An enterprise employee takes a smart pen to conference room B for a meeting. The smart tablet in conference room B has been paired with a smart pen. The employee places his smart pen in the wireless charging area of the smart tablet in conference room B. The wireless charging module of the smart tablet starts working and receives the first address information of the employee's smart pen through the built-in auxiliary communication function. The smart tablet has saved the second address information of the previously paired smart pen. Now, the smart tablet compares the received first address information with the saved second address information. If the first address information matches the second address information, the smart tablet confirms that the employee's smart pen is the previously paired smart pen and continues to charge. If it does not match, the smart tablet recognizes that the employee's smart pen is a new smart pen and disconnects the connection with the paired smart pen.
[0074] In this embodiment, when the smart pen is placed on a new display device for charging, the display device can identify the address information of the smart pen through the charging auxiliary communication technology and determine whether it is a paired smart pen. If the smart pen is a new device, the display device will automatically disconnect from the previous smart pen and allow the new smart pen to pair with it, ensuring that the smart pen can seamlessly switch the connection target, improving the user experience, and increasing the flexibility and usability of the smart pen in multi-device scenarios.
[0075] Based on the above embodiments, the third embodiment of the present application provides a method for switching connections, which is applied to a display device. On this basis, the present embodiment is described by taking a display device as an example. Figure 4 The method for switching connection includes steps A10 to A30:
[0076] Step A10: If it is detected that the charging device establishes a charging connection with the charging equipment, the address information sent by the charging equipment is received based on the charging auxiliary communication.
[0077] Step A20: Determine whether there is a paired device matching the address information.
[0078] Step A30: If there is no paired device matching the address information, send a pairing request to the charging device based on the address information, and establish a pairing connection with the charging device based on response information of the pairing request.
[0079] The charging device built into the display device first detects and determines whether it has established a charging connection with the charging device. Once the charging connection is established, data can be exchanged between the display device and the charging device through charging auxiliary communication. During the charging auxiliary communication process, the display device receives address information sent from the charging device.
[0080] After receiving the address information of the charging device, the display device will check the locally stored list of paired devices to determine whether there is a device that matches the received address information. If no matching device is found in the local list, it means that the charging device has not yet been paired with the display device. At this time, the display device can send a pairing request to the charging device based on the address information of the charging device. This request may include some security authentication information to ensure the security of the pairing process. After receiving the pairing request, the charging device will respond to the request, and the display device and the charging device will establish a pairing connection based on the response information.
[0081] Exemplarily, when a charging device such as a smart pen is placed in the charging area of a display device and wireless charging begins, the smart pen uses the auxiliary communication function in the wireless charging process, such as wireless charging technology that complies with the Qi standard, to send its Bluetooth address information and device configuration data to the display device. The wireless charging module built into the display device is configured to continuously detect and receive Bluetooth address information from charging devices in the wireless charging area. Once the address information sent by the smart pen is detected, the wireless charging module of the display device will use the auxiliary communication function of the Qi standard to receive the detailed address information and device configuration of the smart pen. After receiving the address information of the smart pen, the display device will check the locally stored list of paired devices to determine whether there is a device record that matches the address information. If the display device does not find a record that matches the address information of the smart pen, it sends a pairing request to the smart pen to request to establish a Bluetooth connection. After receiving the pairing request, the smart pen returns a response message to the display device to establish a pairing connection with the display device.
[0082] In this embodiment, the display device can obtain the address information of the charging device through charging auxiliary communication, intelligently identify and connect to the charging device, thereby realizing automation of connection and data communication, without manual operation to switch the connection, improving the user experience and ensuring the smoothness of connection switching.
[0083] Based on the above embodiments, the fourth embodiment of the present application provides a method for switching connection, which is applied to a smart pen. The following takes the smart pen as an example to illustrate this embodiment. In this embodiment, the method for switching connection includes the steps of: when a charging behavior is detected, sending a power signal to a paired display device, and sending address information to the display device connected to the charging device based on charging auxiliary communication.
[0084] Optionally, when the smart pen is wirelessly connected to the display device for charging, the built-in wireless charging receiver of the smart pen can detect the electromagnetic field from the charging device. When the smart pen is placed in the charging area, the receiver will sense the change in the electromagnetic field and thus determine the start of charging. For example, when the user places the smart pen on the wireless charging pad of the classroom screen, the electromagnetic field emitted by the charging pad is detected by the smart pen's receiver, and the smart pen immediately confirms the charging behavior.
[0085] After the smart pen confirms that it is being charged, it sends a power signal to the paired display device according to the paired connection communication with the paired display device, telling the paired display device that it is being charged. After receiving the power signal, the paired display device determines whether the smart pen is connected to itself for charging.
[0086] While sending a power signal to the paired display device, the smart pen will also send address information to the charging connected display device based on charging auxiliary communication, so that the charging connected display device can determine the charging device through the address information and send a pairing connection request to the smart pen.
[0087] For example, when the teacher is teaching in classroom A, he uses a smart pen to write and mark on large screen a. When the teacher is about to teach the next class, the teacher goes to classroom B and places the smart pen on the wireless charging pad of large screen b for charging. The built-in wireless charging receiver of the smart pen detects the electromagnetic field from the wireless charging pad. When the smart pen is placed in the charging area, the receiver senses the change in the electromagnetic field, and the smart pen confirms the start of the charging behavior. The smart pen sends a power signal to the previously paired large screen a through the built-in Bluetooth module to inform itself that it is charging. At the same time, the smart pen sends address information to large screen b based on the charging auxiliary communication protocol. After confirming the address information of the smart pen, if the large screen b has not been paired with this smart pen before, it will automatically send a pairing connection request to the smart pen.
[0088] Optionally, in a feasible implementation manner, referring to Figure 5 The method for switching connection includes steps D10 to D20:
[0089] Step D10: disconnect the paired connection with the paired display device.
[0090] Optionally, when the smart pen detects that a charging connection is established with a display device, and the address information of the display device does not match the address information of the paired display device stored in the smart pen, the smart pen will disconnect the existing paired connection to establish a connection with the display device connected for charging. The smart pen may send a disconnection request to the paired display device through the stored address information of the paired display device, and the smart pen performs a disconnection operation based on the response information of the disconnection request. Alternatively, the paired display device sends a disconnection request to the smart pen, and the smart pen sends a response information to the paired display device to perform a disconnection operation.
[0091] Step D20, in response to the pairing request sent by the target device, establishing a pairing connection with the target device, wherein the target device is another display device other than the paired display device.
[0092] It should be noted that the target device refers to the device that the smart pen needs to establish a connection with. This device is a new device selected by the user and is not a display device that the smart pen has previously paired with. When the target device sends a pairing request to the smart pen, the smart pen returns a response message to the target device and establishes a pairing connection with the target device. In other words, the smart pen can recognize and receive pairing requests from other display devices other than the paired display device, and establish connections with these new devices.
[0093] Exemplarily, the smart pen stores the address information of the display device that has been paired and connected. When the smart pen contacts the wireless charging area of the target device, the smart pen receives the wireless charging signal, extracts the address information of the target device from the wireless charging signal, and compares it with the address information of the paired display device. If the address information of the target device is inconsistent with the address information of the paired display device, it means that the display device that the smart pen has paired with and the target device that it wants to connect to are not the same. At this time, the smart pen will send a disconnection request to the paired display device or wait for the paired display device to disconnect, and send a pairing connection request to the target device to achieve the connection switch between the display device and the smart pen.
[0094] To better understand the solution provided in this example, this example is further explained in combination with specific application scenarios.
[0095] Assume that a smart pen has been connected to whiteboard A in the office via Bluetooth, and the MAC address of whiteboard A is stored in the storage device inside the smart pen. When the smart pen wants to connect to another whiteboard B in the office, it is placed in the wireless charging area of whiteboard B. At this time, the smart pen detects the wireless charging signal sent by whiteboard B and charges. At the same time, it reads the MAC address of whiteboard B from the communication content of the charging auxiliary communication, and compares the MAC address of whiteboard B obtained with the MAC address of whiteboard A read from the storage device inside the smart pen. If the comparison results are different, the smart pen disconnects the Bluetooth connection with whiteboard A and connects to whiteboard B through the MAC address of whiteboard B.
[0096] Optionally, after executing the disconnection operation, the smart pen may notify the user of the disconnection through other means such as sound prompts or flashing indicator lights, clear the connection information related to the previously connected display device in the storage device, and prepare to establish a connection with the target device.
[0097] Optionally, if the smart pen is connected to the display device via Bluetooth and the smart pen has never been paired with the display device, a pairing request is directly sent through the address information of the target device, and the target device confirms the pairing request and performs a pairing connection.
[0098] In this embodiment, when the smart pen detects charging behavior and starts charging, it sends a power signal and address information to the paired display device, thereby notifying the display device of its charging status. If the smart pen recognizes a new display device, it will automatically disconnect from the old display device and establish a new pairing connection with the new device, thereby improving the flexibility and user experience of the smart pen and ensuring that the smart pen can quickly respond to user needs and adapt to different working environments.
[0099] Based on the above embodiments, in the fifth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 6 , before step D20, the method for switching connection includes steps D30 to D50:
[0100] Step D30: If a pairing request sent by the display device is received, determine the third address information of the display device based on the pairing request.
[0101] Step D40: Acquire fourth address information of the target device based on the charging auxiliary communication reception.
[0102] Step D50: If the third address information matches the fourth address information, it is determined that the display device that sends the pairing request is the target device.
[0103] In this embodiment, when a display device needs to establish a connection with the smart pen, it will send a pairing request, indicating that the display device wants to establish communication with the smart pen, including some information required for establishing a connection, such as a pairing code, device name, device type, etc. The smart pen parses the received pairing request to obtain the address information provided by the display device, that is, the third address information. When the smart pen charges the display device that it wants to connect to, that is, the target device, during the charging auxiliary communication process, the smart pen will receive the address information from the target device, that is, the fourth address information. The smart pen compares the previously received third address information with the newly received fourth address information. If the third address information matches the fourth address information, it means that the display device is the target device that the smart pen wants to establish a connection with. The above steps can ensure that the connection between the smart pen and the display device is secure and accurate, and prevent erroneous or unauthorized connections. By verifying the consistency of the address information, the smart pen can confirm the identity of the display device and decide whether to continue the pairing process.
[0104] For example, in order to help understand the implementation process of the method for switching connection obtained by combining this embodiment with the above embodiments, refer to Figure 7 , Figure 7 It is a brief flowchart of the method for switching connections in an embodiment of the present application.
[0105] The smart pen is first paired with the display device 1. When the smart pen wants to switch from display device 1 to display device 2, it connects to display device 2 for charging and exchanges address information with display device 2 through charging auxiliary communication. At the same time, the smart pen sends a power signal to display device 1. When display device 1 receives the power signal from the smart pen, it determines whether to establish a connection with the charging device. If no charging connection is established, the paired connection with the smart pen is directly disconnected. If the display device 1 is connected to the charging device, it is judged based on the address information of the charging device and the address information of the smart pen. If the address information of the two does not match, that is, the charging device is not a smart pen, the connection with the smart pen is disconnected. When the display device 2 receives the address information of the smart pen based on the charging auxiliary communication, it determines whether there is a paired device matching the address information. If there is no paired device matching the address information, a pairing request is sent to the smart pen based on the address information of the smart pen. If there is no paired device matching the address information, a judgment is made based on the address information of the paired device and the address information of the smart pen. If the address information of the two does not match, the paired device is not a smart pen, and the display device 2 sends a pairing request to the smart pen based on the address information of the smart pen. After the smart pen receives the pairing request, if it verifies that the address information received in the pairing request matches the address information received in the charging auxiliary communication, a pairing connection is established with the display device 2.
[0106] The method for switching connections proposed in the above embodiment is further described below in conjunction with specific application scenarios.
[0107] The teacher teaches the first class in classroom A, where the teacher's smart pen is paired with the large screen a in classroom A, and writes on the large screen a. When the teacher finishes the first class and switches to classroom B next to classroom A for the second class, because the two large screens of classroom A and classroom B are located on both sides of the same wall, when the teacher arrives in classroom B, the smart pen is still connected to the large screen a. At this time, the teacher touches the wireless charging area of the large screen b in classroom B with the smart pen. After receiving the wireless charging signal from the large screen b, the smart pen sends the address information to the large screen b and sends the power signal to the large screen a. After that, the smart pen compares the address information of the large screen b with the saved address information of the large screen a, and then disconnects from the large screen a. Through the address information of the large screen b, it sends a connection request to the large screen b, quickly connects to the large screen b, and completes the connection switch. Therefore, as long as the teacher places the smart pen on the wireless charging area on the large screen b, the smart pen can switch the connection from the large screen a to the large screen b.
[0108] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method of switching connections in the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0109] The present application provides a switching connection device, which includes a smart pen, and the smart pen includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for switching connections in the above embodiment.
[0110] The present application provides a switching connection device, which also includes a display device, and the display device includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for switching connections in the above-mentioned embodiment.
[0111] The display device in the embodiments of the present application may include but is not limited to mobile terminals such as laptop computers, PADs (Portable Application Description), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as desktop computers.
[0112] like Figure 8As shown, the switching connection device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the switching connection device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, etc.; a storage device 1003 including, for example, a hard disk; and a communication device 1009. The communication device 1009 can allow the switching connection device to communicate with other devices wirelessly or by wire to exchange data. Although the switching connection device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.
[0113] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0114] The switching connection device provided by the present application adopts the switching connection method in the above embodiment, which can solve the technical problem that the smart pen and the display device cannot achieve automatic switching connection. Compared with the prior art, the beneficial effects of the switching connection device provided by the present application are the same as the beneficial effects of the switching connection method provided by the above embodiment, and other technical features in the switching connection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0115] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0116] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0117] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for switching connections in the above-mentioned embodiment.
[0118] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0119] The computer-readable storage medium may be included in the switching connection device; or may exist independently without being assembled into the switching connection device.
[0120] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the switching connection device, the switching connection device can write computer program codes for performing the operations of the present application in one or more programming languages or a combination thereof. The programming languages include object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, or as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0121] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0123] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for switching connections, and can solve the technical problem that the smart pen and the display device cannot automatically switch connections. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for switching connections provided by the above-mentioned embodiment, and will not be repeated here.
[0124] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for switching a connection, characterized in that: Applied to a display device, the method comprises: If a power signal sent by a paired smart pen is received, it is determined whether the charging device has established a charging connection with the charging device; If the charging connection with the charging device is not established, the pairing connection with the smart pen is disconnected.
2. The method according to claim 1, characterized in that The method further comprises: If a charging connection has been established with the charging device, determining whether the charging device is the smart pen; If not, the step of disconnecting the pairing connection with the smart pen is performed.
3. The method according to claim 2, characterized in that If a charging connection has been established with the charging device, the step of determining whether the charging device is the smart pen comprises: receiving first address information of the charging device based on charging auxiliary communication; If the first address information matches the second address information of the smart pen, determining that the charging device is the smart pen; If the first address information does not match the second address information of the smart pen, it is determined that the charging device is not the smart pen.
4. A method for switching a connection, characterized in that: Applied to a display device, the method comprises: If it is detected that the charging device has established a charging connection with the charging equipment, the address information sent by the charging equipment is received based on the charging auxiliary communication; Determining whether there is a paired device matching the address information; If not, a pairing request is sent to the charging device based on the address information, and a pairing connection is established with the charging device based on response information of the pairing request.
5. A method for switching a connection, characterized in that: Applied to a smart pen, the method comprises: When charging behavior is detected, a power signal is sent to the paired display device, and address information is sent to the display device connected to the charging device based on charging auxiliary communication.
6. The method according to claim 5, characterized in that The method further comprises: Disconnecting the paired connection with the paired display device; In response to a pairing request sent by a target device, a pairing connection is established with the target device, wherein the target device is another display device other than the paired display device.
7. The method according to claim 6, characterized in that Before the step of establishing a pairing connection with the target device in response to the pairing request sent by the target device, the method further includes: If a pairing request sent by the display device is received, determine the third address information of the display device based on the pairing request; Acquire fourth address information of the target device based on the charging auxiliary communication reception; If the third address information matches the fourth address information, it is determined that the display device that sends the pairing request is the target device.
8. A switching connection device, characterized in that: The device comprises a display device, wherein the display device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for switching connection according to any one of claims 1 to 4.
9. A switching connection device, characterized in that: The device further comprises a smart pen, which comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for switching connection according to any one of claims 5 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the method for switching connections according to any one of claims 1 to 7 are implemented.
