Smart pen reconnection method, apparatus, smart device, and computer-readable storage medium

CN117348752BActive Publication Date: 2026-08-14IFLYTEK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

而在现有技术中,智能笔断开连接或开机后只会与上一次连接过的智能设备回连,对于用户而言在使用智能笔时仍然是较为不便的

Benefits of technology

[0008]上述方案,智能笔与智能设备对应,智能设备包括内置适配器而智能笔还配置有外置适配器,当智能笔启动后,获取由智能笔发出的广播信号,其中,当智能笔启动且外置适配器对应的绑定记录和内置适配器对应的连接记录均有效时,智能笔以预设时间间隔依次循环发送与外置适配器相关的广播信号以及与内置适配器相关的广播信号,从而便于智能设备获取广播信号,基于广播信号选择内置适配器或外置适配器作为目标适配器,将目标适配器下发至智能笔以使智能笔与目标适配器回连,提高智能笔回连的效率,并且为用户提供了在不同的使用场景下进行不同策略的回连选择,能够提高智能笔的使用便携性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117348752B_ABST
    Figure CN117348752B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, smart device, and computer-readable storage medium for reconnecting a smart pen. The smart pen has an external adapter and a corresponding smart device, the smart device including a built-in adapter. The method includes: in response to the smart pen being activated, acquiring a broadcast signal sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially and cyclically sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals; selecting a target adapter based on the broadcast signals, and sending the target adapter to the smart pen to enable reconnection between the smart pen and the target adapter; wherein the target adapter is one of the external adapter and the built-in adapter. This solution improves the portability of the smart pen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart devices, and in particular to a smart pen reconnection method, apparatus, smart device, and computer-readable storage medium. Background Technology

[0002] With the development of smart devices, various Bluetooth-connected smart devices have emerged. Smart pens, as peripherals for some smart devices, function as smart pens after connecting via Bluetooth. When the smart pen disconnects from the smart device, it should reconnect. However, in current technology, smart pens only reconnect to the last connected smart device after disconnection or power-on, which remains inconvenient for users. Therefore, improving the portability of smart pens has become an urgent problem to be solved. Summary of the Invention

[0003] The main technical problem addressed by this application is to provide a smart pen reconnection method, apparatus, smart device, and computer-readable storage medium that can improve the portability of smart pens.

[0004] To address the aforementioned technical problems, this application provides a method for reconnecting a smart pen, wherein the smart pen corresponds to an external adapter and a smart device, the smart device including a built-in adapter, and the method includes: in response to the smart pen being activated, acquiring a broadcast signal sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially and cyclically sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals; selecting a target adapter based on the broadcast signals, and sending the target adapter to the smart pen to enable the smart pen to reconnect with the target adapter; wherein the target adapter is one of the external adapter and the built-in adapter.

[0005] To address the aforementioned technical problems, a second aspect of this application provides a smart pen reconnection device. The smart pen corresponds to an external adapter and a smart device, the smart device including a built-in adapter. The device includes: an acquisition module, responsive to the smart pen's activation, configured to acquire broadcast signals sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially and cyclically sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals; and a selection module, configured to select a target adapter based on the broadcast signals and send the target adapter to the smart pen to enable the smart pen to reconnect with the target adapter; wherein the target adapter is one of the external adapter and the built-in adapter.

[0006] To address the aforementioned technical problems, a third aspect of this application provides an intelligent device, comprising: a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is configured to execute the program instructions to implement the method described in the first aspect above.

[0007] To address the aforementioned technical problems, a fourth aspect of this application provides a computer-readable storage medium having program instructions stored thereon, which, when executed by a processor, implement the method described in the first aspect above.

[0008] In the above solution, the smart pen corresponds to a smart device. The smart device includes a built-in adapter, while the smart pen is also equipped with an external adapter. When the smart pen is activated, it receives broadcast signals emitted by the smart pen. Specifically, when the smart pen is activated and both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals. This facilitates the smart device to obtain the broadcast signals and select either the built-in adapter or the external adapter as the target adapter based on the broadcast signals. The target adapter is then sent to the smart pen to enable the smart pen to reconnect with the target adapter, improving the efficiency of the smart pen's reconnection. Furthermore, it provides users with different reconnection strategies to choose from in different usage scenarios, thereby improving the portability of the smart pen. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments 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. Wherein:

[0010] Figure 1 This is a flowchart illustrating one embodiment of the intelligent pen reconnection method of this application;

[0011] Figure 2 for Figure 1 A flowchart illustrating one embodiment of a partial content in step S102;

[0012] Figure 3 This is a flowchart illustrating one embodiment corresponding to step S202 of this application;

[0013] Figure 4 for Figure 1 A flowchart illustrating another implementation method corresponding to some of the contents in step S102;

[0014] Figure 5 This is a schematic diagram of a corresponding embodiment of the intelligent pen reconnection device of this application;

[0015] Figure 6 This is a schematic diagram of the structure of one embodiment of the smart device of this application;

[0016] Figure 7 This is a schematic diagram of one embodiment of the computer-readable storage medium of this application. Detailed Implementation

[0017] 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, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0018] The smart pen reconnection method provided in this application relies on a smart device with Bluetooth functionality or other devices with Bluetooth functionality. The execution entity corresponding to the smart pen reconnection method provided in this application is the processor of the smart device, wherein the smart device includes at least a smart blackboard.

[0019] Please see Figure 1 , Figure 1 This is a flowchart illustrating one embodiment of the smart pen reconnection method of this application. The smart pen corresponds to an external adapter and a smart device, the smart device including a built-in adapter. The method includes:

[0020] S101: In response to the smart pen starting up, acquire the broadcast signal sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the internal adapter at preset time intervals.

[0021] Specifically, the smart pen corresponds to a smart device, which includes a built-in adapter while the smart pen is also equipped with an external adapter. When the smart pen is turned on, it receives broadcast signals emitted by the smart pen.

[0022] Furthermore, when the smart pen is activated, it acquires the broadcast signal emitted by the smart pen. When the smart pen is activated and both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the internal adapter at preset time intervals, thereby facilitating the smart device to acquire the broadcast signal.

[0023] In one application method, when the smart pen is activated and reads at least one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter from its own memory, the smart pen emits a broadcast signal, and the broadcast signal includes a reception request. After responding to the reception request, the broadcast signal sent by the smart pen is acquired. When both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the broadcast signals related to the external adapter and the broadcast signals related to the internal adapter that are sent by the smart pen in a preset time interval are acquired.

[0024] In another application, the broadcast signal is scanned in real time. When the smart pen is activated and reads at least one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter from its own memory, the smart pen emits a broadcast signal. The broadcast signal sent by the smart pen is obtained. When both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the broadcast signals related to the external adapter and the broadcast signals related to the internal adapter that are sent by the smart pen in a preset time interval are obtained.

[0025] It should be noted that the smart pen reads the binding records corresponding to the external adapter and the connection records corresponding to the internal adapter stored in its own memory, and checks the reading results. When the smart pen detects that both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, it acquires the broadcast signals related to the external adapter and the broadcast signals related to the internal adapter that the smart pen sends sequentially at preset time intervals. When the smart pen detects that only one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter is valid, it continuously sends the broadcast signals related to the valid adapter and acquires the broadcast signals sent by the smart pen.

[0026] Optionally, the preset time interval can be, for example, 0.5s, 1s, 1.5s, etc., and this application does not make a specific limitation on it.

[0027] Understandably, external adapters offer application flexibility. In different application scenarios, external adapters can connect to the smart device corresponding to the smart pen, or to other devices besides the smart device, providing users with different reconnection strategies to choose from in different usage scenarios.

[0028] In one implementation scenario, the smart pen is bound to an external adapter during the production process. The smart pen and the external adapter are simultaneously connected to the same electronic device, which can be any electronic device, including product testing tools, such as a computer. After the product testing tools are running on the electronic device, the smart pen and the external adapter communicate with the product testing tools via USB-HID (Universal Serial Bus-Human Interface Device, a device that directly interacts with humans). In other implementation scenarios, other communication methods can also be used to communicate with the product testing tools, which are not limited here.

[0029] Furthermore, after clicking the binding button on the product testing tool, the tool sends a binding command to both the smart pen and the external adapter. This command carries their respective MAC addresses. Upon receiving the binding command and the external adapter's MAC address, the smart pen or external adapter saves the MAC address in its own memory as a binding record. This memory can be a non-volatile memory such as FLASH or ROM. It's important to note that this binding record will not be changed in subsequent steps; it can only be modified by the product testing tool. After the smart pen connects to the built-in adapter, both devices save the other's MAC address in their respective memories as a connection record. It's worth noting that when a new built-in adapter connects to the smart pen, the previously saved connection record is replaced with a new one. Each MAC address is unique.

[0030] Step S102: Select the target adapter based on the broadcast signal, and send the target adapter to the smart pen so that the smart pen can reconnect to the target adapter; wherein, the target adapter is one of an external adapter and a built-in adapter.

[0031] Specifically, the built-in or external adapter is selected as the target adapter based on the broadcast signal, and the target adapter is sent to the smart pen to enable the smart pen to reconnect with the target adapter, thereby improving the efficiency of the smart pen's reconnection.

[0032] In one application mode, in response to receiving broadcast signals related to the external adapter and the internal adapter sent by the smart pen, the external adapter or the internal adapter is selected as the target adapter based on the signal strength of the broadcast signal, and the target adapter is sent to the smart pen to enable the smart pen to reconnect with the target adapter.

[0033] In another application, the broadcast signal associated with the external adapter and the broadcast signal associated with the internal adapter each have their own signal frequency, and the signal frequency matching has a priority. In response to receiving the broadcast signal associated with the external adapter and the broadcast signal associated with the internal adapter sent by the smart pen, the external adapter or the internal adapter is selected as the target adapter according to the signal frequency of the broadcast signal, and the target adapter is sent to the smart pen to enable the smart pen to reconnect with the target adapter.

[0034] In another application, in response to receiving either a broadcast signal related to an external adapter or a broadcast signal related to an internal adapter sent by the smart pen, the adapter corresponding to the broadcast signal is designated as the target adapter, and the target adapter is sent to the smart pen to enable the smart pen to reconnect with the target adapter.

[0035] In one application scenario, after receiving the broadcast signal sent by the smart pen, the signal strength of the broadcast signal related to the external adapter is compared with the signal strength of the broadcast signal related to the internal adapter. The adapter with the larger signal strength is selected as the target adapter and then sent to the smart pen so that the smart pen can reconnect with the target adapter.

[0036] Understandably, once the smart pen reconnects to the target adapter, it will turn off the broadcast signal transmission.

[0037] Alternatively, the smart device is a smart blackboard, which not only has the writing function of a traditional blackboard, but also has functions such as touch interaction and multimedia teaching, and the smart blackboard is larger in size.

[0038] In a specific application scenario, a smart pen corresponds to a smart blackboard. The smart blackboard includes a built-in adapter, while the smart pen is also equipped with an external adapter. When the external adapter is connected to the smart blackboard, if the smart pen is activated and both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at 1-second intervals. This facilitates the smart blackboard to obtain the broadcast signals and select either the built-in adapter or the external adapter as the target adapter based on the broadcast signals. The target adapter is then sent to the smart pen for reconnection with the target adapter, thereby improving the efficiency of the smart pen reconnecting to the smart blackboard.

[0039] In another specific application scenario, the smart pen corresponds to the smart blackboard. The smart blackboard includes a built-in adapter, while the smart pen is also equipped with an external adapter. When the external adapter is connected to a computer device outside the smart blackboard, if the smart pen is activated and both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen will sequentially send broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at 1-second intervals. When the signal frequency of the external adapter has a higher priority, the smart pen can connect to the computer device, so that the user can use the smart pen to control the computer device for document processing work such as lesson preparation, and use the smart pen to send the processed document to the smart blackboard.

[0040] In the above solution, the smart pen corresponds to a smart device. The smart device includes a built-in adapter, while the smart pen is also equipped with an external adapter. When the smart pen is activated, it receives broadcast signals emitted by the smart pen. Specifically, when the smart pen is activated and both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals. This facilitates the smart device to obtain the broadcast signals and select either the built-in adapter or the external adapter as the target adapter based on the broadcast signals. The target adapter is then sent to the smart pen to enable the smart pen to reconnect with the target adapter, improving the efficiency of the smart pen's reconnection. Furthermore, it provides users with different reconnection strategies to choose from in different usage scenarios, thereby improving the portability of the smart pen.

[0041] In one implementation, an external adapter is connected to a smart device; please refer to [link to relevant documentation]. Figure 2 , Figure 2 for Figure 1 A flowchart illustrating one embodiment corresponding to a portion of step S102. Specifically, when an external adapter is connected to a smart device, selecting the target adapter based on a broadcast signal includes the following steps:

[0042] S201: Obtain the first signal strength corresponding to the broadcast signal related to the external adapter, and the second signal strength corresponding to the broadcast signal related to the internal adapter.

[0043] Specifically, the system acquires the broadcast signals related to the external adapter and the broadcast signals related to the internal adapter that are sequentially and cyclically sent by the smart pen, and determines the first signal strength corresponding to the broadcast signal related to the external adapter and the second signal strength corresponding to the broadcast signal related to the internal adapter.

[0044] It should be noted that the first signal strength is negatively correlated with the distance between the smart pen and the external adapter, and the second signal strength is negatively correlated with the distance between the smart pen and the internal adapter.

[0045] In one application scenario, the smart pen sequentially sends broadcast signals related to the external adapter and the internal adapter every 1 second, and obtains the average signal strength of three or more consecutive broadcast signals as the first signal strength and the second signal strength, thereby improving the accuracy of the first signal strength and the second signal strength.

[0046] S202: Based on the first signal strength and the second signal strength, select one of the external adapter and the internal adapter as the target adapter.

[0047] Specifically, based on the first signal strength and the second signal strength, an external adapter and an internal adapter are selected as the target adapter.

[0048] Further, please refer to Figure 3 , Figure 3 for Figure 2 A flowchart illustrating one embodiment corresponding to step S202. Step S202 specifically includes:

[0049] S301: Obtain a signal strength threshold, and select one of the first signal strength and the second signal strength as the target signal strength based on the signal strength threshold, the first signal strength and the second signal strength; wherein, the target signal strength is greater than the signal strength threshold and has a larger value.

[0050] Specifically, based on the acquired signal strength threshold, it is determined whether the first signal strength and the second signal strength are both greater than the signal strength threshold. If both are less than the signal strength threshold, the reconnection is stopped. If they are greater than the signal strength threshold, the larger value is selected as the target signal strength.

[0051] Understandably, if the first signal strength is greater than the signal strength threshold and the second signal strength is less than or equal to the signal strength threshold, then the first signal strength is selected as the target signal strength. If the second signal strength is greater than the signal strength threshold and the first signal strength is less than or equal to the signal strength threshold, then the second signal strength is selected as the target signal strength. If both the first and second signal strengths are greater than the signal strength threshold, then the larger of the first and second signal strengths is selected as the target signal strength.

[0052] In one application scenario, it is determined whether the first signal strength and the second signal strength are greater than a signal strength threshold. Optionally, the signal strength threshold can be, for example, -60dB, -65dB, etc., without limitation. When both the first and second signal strengths are less than the threshold of -60dB, the reconnection is stopped. When both the first and second signal strengths are greater than the threshold of -60dB, the larger of the two signal strengths is selected as the target signal strength. By setting a signal strength threshold, the situation where the connection is immediately lost after reconnection due to excessively low signal strength can be avoided, thereby further improving the stability of use after the smart pen successfully reconnects.

[0053] S302: Use the adapter corresponding to the target signal strength as the target adapter.

[0054] Specifically, if the target signal strength is one of the first signal strength and the second signal strength, then the target signal strength corresponds to an external adapter or an internal adapter. The adapter corresponding to the target signal strength is determined as the target adapter, thereby improving the stability of the smart pen's reconnection.

[0055] In a specific application scenario, the smart pen corresponds to the smart blackboard. Due to the large size of the smart blackboard, the built-in adapter is fixedly installed inside the lower right corner of the smart blackboard, while the external adapter is plugged into the lower right or upper left corner of the smart blackboard. It should be noted that the distance between the smart pen and the external / built-in adapters affects the signal strength for communication with the smart pen. The first signal strength is negatively correlated with the distance between the smart pen and the external adapter, and the second signal strength is also negatively correlated with the distance between the smart pen and the built-in adapter. When the distance between the smart pen and the external adapter is less than the distance to the built-in adapter, and the signal strength received by the smart blackboard is greater than the signal strength threshold -60dB, the first signal strength corresponding to the external adapter is greater than the second signal strength corresponding to the built-in adapter. The smart blackboard will then use the external adapter as the target adapter, thereby improving the efficiency of the smart pen's reconnection to the smart blackboard.

[0056] In another embodiment, the external adapter and the internal adapter are pre-configured with reconnection priorities; please refer to [link to relevant documentation]. Figure 4 , Figure 4 for Figure 1 A flowchart illustrating another implementation method corresponding to a portion of step S102. Specifically, when the external adapter and the internal adapter are pre-set with a return-to-connection priority, the target adapter is selected based on the broadcast signal, which specifically includes the following steps:

[0057] S401: In response to receiving broadcast signals related to the external adapter and broadcast signals related to the internal adapter, based on the reconnection priority of the external adapter and the internal adapter, send a prohibit reconnection command to the adapter with the lower reconnection priority.

[0058] Specifically, when broadcast signals related to the external adapter and broadcast signals related to the internal adapter are obtained, a command to prohibit reconnection is sent to the adapter with the lower reconnection priority according to the pre-set reconnection priority of the external adapter and the internal adapter, so as to prevent the adapter with the lower reconnection priority from reconnecting with the smart pen.

[0059] In a specific application scenario, the smart pen corresponds to the smart blackboard. Users can pre-set the reconnection priorities of the external and internal adapters in the software application on the smart blackboard. The smart blackboard communicates with both the external and internal adapters via USB-HID. When it receives broadcast signals related to the external and internal adapters, it sends a prohibit reconnection command to the adapter with the lower reconnection priority according to the pre-set reconnection priority. After responding to the prohibit reconnection command, the adapter with the lower reconnection priority will close the reconnection mechanism, thereby preventing the smart pen from being mistakenly connected to other smart blackboards or other devices and improving the accuracy of the smart pen's reconnection.

[0060] S402: Select the adapter with the higher reconnection priority as the target adapter.

[0061] Specifically, by setting a pre-defined external or internal adapter with a high reconnection priority as the target adapter, the smart pen is prevented from accidentally connecting to other smart devices during user operation, thus improving the portability of the smart pen.

[0062] In another embodiment, the binding record includes the MAC address of the external adapter, and the connection record includes the MAC address of the internal adapter. When only one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter is valid, the smart pen cyclically sends broadcast signals related to the valid adapter. Step S102, which selects the target adapter based on the broadcast signal, specifically includes: extracting the MAC address from the acquired broadcast signal and using the adapter corresponding to the extracted MAC address as the target adapter.

[0063] Specifically, when only the binding record corresponding to the external adapter is valid, the broadcast signal carries the MAC address of the external adapter; when only the connection record corresponding to the internal adapter is valid, the broadcast signal carries the MAC address of the internal adapter. The MAC address carried in the broadcast signal is extracted, and the adapter corresponding to the extracted MAC address is used as the target adapter. Therefore, when only the binding record or connection record is valid, the smart pen is ensured to reconnect, keeping it in a usable state.

[0064] In one application scenario, when only the binding record is valid, the smart pen adds the MAC address of the external adapter corresponding to the binding record to the broadcast signal and sends it in a loop. The smart device will continue to acquire the broadcast signal until it successfully extracts the MAC address of the external adapter from the broadcast signal and uses the external adapter as the target adapter. Similarly, when only the connection record is valid, the smart pen adds the MAC address of the built-in adapter corresponding to the connection record to the broadcast signal and sends it in a loop. The smart device will continue to acquire the broadcast signal until it successfully extracts the MAC address of the built-in adapter from the broadcast signal and uses the built-in adapter as the target adapter.

[0065] Furthermore, the external adapter can be connected to smart devices or other devices besides smart devices.

[0066] In one application scenario, when the target adapter is connected to a smart device, the smart pen reconnects to the target adapter and activates all preset functions to control the smart device.

[0067] Specifically, when the target adapter is connected to the smart device, the smart pen is turned on and reconnects to the target adapter, and starts all preset functions to control the smart device.

[0068] In a specific application scenario, the smart pen corresponds to the smart blackboard. When the user is using the smart blackboard, the smart pen is turned on to reconnect with the built-in adapter in the smart blackboard and transmit data such as audio, images, clicks, and pressure sensitivity to the smart device, thereby realizing all functions such as touch control, writing (including handwriting and color), amplification, voice commands, voice transcription, page turning, and magnetic login.

[0069] In another application scenario, when the target adapter is connected to another device, the smart pen reconnects to the target adapter and activates some preset functions to control the other device.

[0070] Specifically, when the target adapter is connected to other devices, the smart pen is turned on and reconnects to the target adapter, and activates some preset functions to control other devices.

[0071] Alternatively, other devices may be, for example, computer devices, tablet devices, or other electronic devices, and are not limited thereto.

[0072] In a specific application scenario, the smart pen corresponds to the smart blackboard. When the user connects the external adapter to the computer device, the smart pen is turned on to reconnect with the external adapter. After successful connection, the user can log in to the smart pen application directly using a dedicated account through the smart pen's login function. The user can use the buttons on the smart pen to turn pages up and down, and can also control the pointer of the computer device by clicking. This improves the portability of the smart pen, making it easier for users to use the smart pen to control the computer device for document processing such as lesson preparation, and to send the processed documents to the smart blackboard.

[0073] In another specific application scenario, the smart pen corresponds to the smart blackboard. When the user connects the external adapter to the tablet device, turns on the smart pen to reconnect the smart pen to the external adapter. After the connection is successful, the user can directly use the smart pen application through the smart pen login function with a dedicated account. The smart pen can improve the portability of the smart pen by using some preset functions such as touch and writing (handwriting and writing) so that the user can use the smart pen to control the tablet device to do document processing work such as lesson preparation, and use the smart pen to send the processed documents to the smart blackboard.

[0074] It should be noted that after the smart pen is connected to the built-in adapter, the MAC address of the built-in adapter is saved and a connection record is generated. The smart pen and the external adapter have a corresponding binding relationship. After the smart pen is bound to the external adapter, the MAC address of the external adapter is saved and a binding record is generated.

[0075] Specifically, after the smart pen is connected to the built-in adapter, it will save the MAC address of the built-in adapter and generate a corresponding connection record. The smart pen and the external adapter have a corresponding binding relationship. After the smart pen is bound to the external adapter, it will save the MAC address of the external adapter and generate a corresponding binding record.

[0076] In one application scenario, after the smart pen is connected to the built-in adapter, the smart pen will save the MAC address of the built-in adapter in its own memory and generate a corresponding connection record. Optionally, the memory can be a non-volatile memory such as FLASH or ROM. It should be noted that when a new built-in adapter is connected to the smart pen, the original connection record will be replaced and a new connection record will be saved. Each MAC address is unique.

[0077] Furthermore, the smart pen and external adapter are bound together. During the manufacturing process, the smart pen is bound to the external adapter, and both are connected to the same electronic device. This electronic device can be any electronic device, including the product testing tool, such as a computer. After the product testing tool is running on the electronic device, the smart pen and external adapter communicate with the product testing tool via USB-HID. In other implementation scenarios, other communication methods can also be used, which are not limited here. After clicking the binding button on the product testing tool, the tool sends a binding command to both the smart pen and the external adapter. This binding command carries their respective MAC addresses. When the smart pen receives the binding command, it saves the MAC address of the external adapter and generates a corresponding binding record. It should be noted that this binding record will not be changed in subsequent steps; it can only be modified by the product testing tool.

[0078] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure corresponding to one embodiment of the smart pen reconnection device of this application. The smart pen corresponds to an external adapter and a smart device, which includes a built-in adapter. The smart pen reconnection device 10 includes an acquisition module 100 and a selection module 102. When the smart pen is started, the acquisition module 100 is used to acquire the broadcast signal sent by the smart pen. When both the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals. The selection module 102 is used to select the target adapter based on the broadcast signal and send the target adapter to the smart pen to enable the smart pen to reconnect with the target adapter. The target adapter is either the external adapter or the built-in adapter.

[0079] In the above scheme, the smart pen corresponds to the smart device. The smart device includes a built-in adapter, while the smart pen is also equipped with an external adapter. When the smart pen is started, the acquisition module 100 acquires the broadcast signal emitted by the smart pen. When the smart pen is started and the binding record corresponding to the external adapter and the connection record corresponding to the built-in adapter are both valid, the smart pen sequentially sends broadcast signals related to the external adapter and broadcast signals related to the built-in adapter at preset time intervals, thereby facilitating the smart device to acquire the broadcast signal. The selection module 102 selects the built-in adapter or the external adapter as the target adapter based on the broadcast signal and sends the target adapter to the smart pen so that the smart pen can reconnect with the target adapter, improving the efficiency of the smart pen's reconnection. It also provides users with different reconnection strategies to choose from in different usage scenarios, which can improve the portability of the smart pen.

[0080] Optionally, when the external adapter is connected to the smart device, the acquisition module 100 is further configured to acquire the first signal strength corresponding to the broadcast signal related to the external adapter and the second signal strength corresponding to the broadcast signal related to the built-in adapter; the selection module 102 is further configured to select one of the external adapter and the built-in adapter as the target adapter based on the first signal strength and the second signal strength.

[0081] Optionally, the selection module 102 is further configured to obtain a signal strength threshold, and select one of the first signal strength and the second signal strength as the target signal strength based on the signal strength threshold, the first signal strength and the second signal strength; wherein the target signal strength is greater than the signal strength threshold and has a larger value; and the adapter corresponding to the target signal strength is selected as the target adapter.

[0082] Optionally, when the external adapter and the internal adapter are preset with reconnection priorities, the acquisition module 100 is further configured to, in response to acquiring the broadcast signal related to the external adapter and the broadcast signal related to the internal adapter, send a prohibit reconnection command to the adapter with the lower reconnection priority based on the reconnection priority of the external adapter and the internal adapter; the selection module 102 is further configured to select the adapter with the higher reconnection priority as the target adapter.

[0083] Optionally, the binding record includes the MAC address of the external adapter, and the connection record includes the MAC address of the internal adapter. When only one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter is valid, the smart pen cyclically sends broadcast signals related to the valid adapter. The selection module is also used to extract the MAC address from the acquired broadcast signal and use the adapter corresponding to the extracted MAC address as the target adapter.

[0084] When the external adapter is connected to a smart device or another device, the smart pen will activate all preset functions to control the smart device after reconnecting with the target adapter. When the target adapter is connected to another device, the smart pen will activate some preset functions to control the other device after reconnecting with the target adapter.

[0085] The smart pen is connected to the built-in adapter, which saves the MAC address of the built-in adapter and generates a connection record. The smart pen is also bound to the external adapter. After the smart pen is bound to the external adapter, the external adapter's MAC address is saved and a binding record is generated.

[0086] It should be noted that the smart pen reconnection device can implement the smart pen reconnection method in any of the above embodiments. For related explanations, please refer to the detailed description of the above method embodiments; they will not be repeated here.

[0087] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of an embodiment of the smart device of this application. The smart device 20 includes a memory 202 and a processor 200 coupled to each other. The memory 202 stores program instructions, and the processor 200 is used to execute the program instructions to implement the smart pen reconnection method in any of the above embodiments. For related explanations, please refer to the detailed description of the above method embodiments, which will not be repeated here.

[0088] The above solution can improve the portability of smart pens.

[0089] It should be noted that processor 200 can also be called CPU (Center Processing Unit). Processor 200 may be an integrated circuit chip with signal processing capabilities. Processor 200 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor. Furthermore, processor 200 can be implemented using integrated circuit chips.

[0090] Please see Figure 7 , Figure 7 This is a schematic diagram of one embodiment of the computer-readable storage medium of this application. The computer-readable storage medium 30 stores program instructions 300, which, when executed by a processor, implement the smart pen reconnection method described in any of the above embodiments. For further details on related content, please refer to the detailed description of the above method embodiments; it will not be repeated here.

[0091] The above solution can improve the portability of smart pens.

[0092] It should be noted that the units described as separate components may or may not be physically separate, and 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.

[0093] Furthermore, 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0094] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it 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 all or part 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.) or processor to execute all or part of the steps of the methods of 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, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0095] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A smart pen reconnection method, characterized in that, The smart pen has an external adapter and a smart device, the smart device including a built-in adapter, and the method includes: In response to the activation of the smart pen, the system acquires the broadcast signal sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the smart pen sequentially and cyclically sends broadcast signals related to the external adapter and broadcast signals related to the internal adapter at preset time intervals; The target adapter is selected based on the broadcast signal, and the target adapter is sent to the smart pen to enable the smart pen to reconnect with the target adapter; wherein, the target adapter is one of the external adapter and the internal adapter.

2. The method according to claim 1, characterized in that, When the external adapter is connected to the smart device, the step of selecting the target adapter based on the broadcast signal includes: Obtain the first signal strength corresponding to the broadcast signal related to the external adapter, and the second signal strength corresponding to the broadcast signal related to the internal adapter; Based on the first signal strength and the second signal strength, one of the external adapter and the internal adapter is selected as the target adapter.

3. The method according to claim 2, characterized in that, The step of selecting one of the external adapter and the internal adapter as the target adapter based on the first signal strength and the second signal strength includes: A signal strength threshold is obtained, and based on the signal strength threshold, the first signal strength, and the second signal strength, one of the first signal strength and the second signal strength is selected as the target signal strength; wherein, the target signal strength is greater than the signal strength threshold and has a larger value; The adapter corresponding to the target signal strength is taken as the target adapter.

4. The method according to claim 1, characterized in that, When the external adapter and the internal adapter are pre-set with a reconnection priority, the step of selecting the target adapter based on the broadcast signal includes: In response to receiving broadcast signals related to the external adapter and broadcast signals related to the internal adapter, a disconnect command is sent to the adapter with the lower disconnect priority based on the disconnect priority of the external adapter and the internal adapter. The adapter with the higher reconnection priority is selected as the target adapter.

5. The method according to claim 1, characterized in that, The binding record includes the MAC address of the external adapter, and the connection record includes the MAC address of the internal adapter. When only one of the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter is valid, the smart pen cyclically sends broadcast signals related to the valid adapter. The step of selecting the target adapter based on the broadcast signal includes: The MAC address is extracted from the acquired broadcast signal, and the adapter corresponding to the extracted MAC address is used as the target adapter.

6. The method according to claim 4 or 5, characterized in that, The external adapter is connected to the smart device or other devices besides the smart device. When the target adapter is connected to the smart device, the smart pen reconnects to the target adapter and starts all preset functions to control the smart device. When the target adapter is connected to other devices, the smart pen reconnects to the target adapter and starts some preset functions to control the other devices.

7. The method according to any one of claims 1-5, characterized in that, After the smart pen is connected to the built-in adapter, it saves the MAC address of the built-in adapter and generates the connection record. The smart pen and the external adapter have a corresponding binding relationship. After the smart pen is bound to the external adapter, it saves the MAC address of the external adapter and generates the binding record.

8. A smart pen reconnection device, characterized in that, The smart pen has an external adapter and a smart device, the smart device including a built-in adapter, and the device includes: The acquisition module, in response to the smart pen being activated, is used to acquire the broadcast signal sent by the smart pen; wherein, when both the binding record corresponding to the external adapter and the connection record corresponding to the internal adapter are valid, the smart pen sequentially and cyclically sends broadcast signals related to the external adapter and broadcast signals related to the internal adapter at preset time intervals; The selection module is used to select a target adapter based on the broadcast signal and send the target adapter to the smart pen so that the smart pen can reconnect to the target adapter; wherein the target adapter is one of the external adapter and the internal adapter.

9. A smart device, characterized in that, include: A memory and a processor are coupled to each other, the memory storing program instructions, and the processor executing the program instructions to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium having program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, they implement the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method for establishing connection with handwriting pen and electronic equipment

    CN114827972A

  • Connection control method of handwriting pen and electronic equipment

    CN115407885A