CN113993109B - Device pairing method, system, accessory device and computer readable storage medium - Google Patents
Device pairing method, system, accessory device and computer readable storage medium Download PDFInfo
- Publication number
- CN113993109B CN113993109B CN202010731578.XA CN202010731578A CN113993109B CN 113993109 B CN113993109 B CN 113993109B CN 202010731578 A CN202010731578 A CN 202010731578A CN 113993109 B CN113993109 B CN 113993109B
- Authority
- CN
- China
- Prior art keywords
- accessory
- accessory device
- information
- equipment
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 238000004891 communication Methods 0.000 claims abstract description 85
- 238000012790 confirmation Methods 0.000 claims description 40
- 238000004590 computer program Methods 0.000 claims description 16
- 230000001976 improved effect Effects 0.000 abstract description 10
- 241001422033 Thestylus Species 0.000 description 105
- 230000006870 function Effects 0.000 description 33
- 230000008569 process Effects 0.000 description 32
- 239000010410 layer Substances 0.000 description 22
- 238000012795 verification Methods 0.000 description 22
- 238000012545 processing Methods 0.000 description 17
- 230000000694 effects Effects 0.000 description 16
- 238000001514 detection method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 15
- 230000004044 response Effects 0.000 description 13
- 230000005540 biological transmission Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 5
- 238000009877 rendering Methods 0.000 description 5
- 238000011144 upstream manufacturing Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 4
- 238000001228 spectrum Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 239000006059 cover glass Substances 0.000 description 2
- 239000013078 crystal Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- WHXSMMKQMYFTQS-UHFFFAOYSA-N Lithium Chemical compound [Li] WHXSMMKQMYFTQS-UHFFFAOYSA-N 0.000 description 1
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000011810 insulating material Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 229910052744 lithium Inorganic materials 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000001537 neural effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 229910052594 sapphire Inorganic materials 0.000 description 1
- 239000010980 sapphire Substances 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000008093 supporting effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application is suitable for the technical field of terminals, and provides a device pairing method, a device pairing system, accessory devices and a computer readable storage medium. In the device pairing method provided by the application, the accessory device acquires a first signal through the first communication connection, wherein the first signal comprises the number of the target device. Then, the accessory device matches the target device number with each first device number, thereby determining the target device corresponding to the target device number. After the target device is determined, the accessory device is paired with the target device. By the device pairing method, the accessory device can automatically identify the target device and pair, a user does not need to actively execute specific pairing operation, smoothness of switching the accessory device to a used object is improved, usability and practicability are high, and use experience of the user is improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a device pairing method, a system, an accessory device, and a computer readable storage medium.
Background
Some electronic devices with display screens (e.g., tablet computers, cell phones, etc.) are currently equipped with auxiliary accessory devices such as handwriting pens, etc. Through the accessory equipment, a user can conveniently click, write and other operations on the display screen of the electronic equipment.
When the current accessory device is paired with the electronic device, a user needs to attract the accessory device to a specific magnetic attraction position of the electronic device, or the user needs to contact and connect a connector on the accessory device with an interface on the electronic device.
When a user owns a plurality of electronic devices, if the user wants to use the accessory device on different electronic devices, the user needs to pair the accessory device with the corresponding electronic device again according to the pairing scheme every time when the user switches the use object of the accessory device, so that the operation is complex, the fluency of the switching process is low, and the use experience of the user is affected.
Disclosure of Invention
The embodiment of the application provides a device pairing method, a device pairing system, accessory devices and a computer readable storage medium, which can solve the problems that in the current device pairing scheme, the pairing process of accessory devices and electronic devices is complex, and when a use object of the accessory devices is switched, the fluency is low and the use experience of users is influenced.
In a first aspect, an embodiment of the present application provides a device pairing method, applied to an accessory device, where the method includes:
The accessory device receives a first signal through a first communication connection, wherein the first signal comprises a target device number, and the first communication connection is a communication connection established between an electronic device which is in contact with the accessory device and the accessory device currently;
The accessory equipment matches the target equipment number with a first equipment number, and determines the electronic equipment corresponding to the first equipment number consistent with the target equipment number as target equipment, wherein the first equipment number is the equipment number of the electronic equipment which establishes wireless connection with the accessory equipment;
the accessory device pairs with the target device.
It should be noted that, when the accessory device is in contact with a certain electronic device, a first communication connection may be established between the accessory device and the electronic device.
The electronic device may communicate the first signal to the accessory device over a first communication connection. The first signal includes a target device number, where the target device number is a device number of the electronic device.
The specific type of the first communication connection may be set according to the actual situation. In some embodiments, the first communication connection may be an electrode channel formed by an electrode of the electronic device and an electrode of the accessory device.
At this time, the electrodes of the electronic device, the electrodes of the accessory device, and the insulating medium therebetween constitute a capacitance. The capacitor has the characteristics of alternating current and direct current, so the electronic equipment can transmit a first signal to the accessory equipment through the first communication connection.
In other embodiments, the first Communication connection may be an NFC connection established between a Near Field Communication (NFC) module of the electronic device and an NFC module of the accessory device.
Since the communication distance of the NFC connection is short, typically 0 to 4 cm, when the accessory device is in contact with a certain electronic device, the accessory device can only establish the NFC connection with the electronic device, but cannot establish the NFC connection with other electronic devices, so as to ensure that the accessory device is not interfered by the non-contact electronic device.
When the accessory device obtains the target device number through the first communication connection, the target device number may be matched with each first device number.
The first device number is the device number of the electronic device that is currently establishing a wireless connection with the accessory device.
If there is a first device number that is consistent with the target device number, the accessory device may determine the electronic device corresponding to the first device number that is consistent with the target device number as the target device and pair with the target device.
After the accessory device is paired with the target device, the accessory device is indicated to determine the target device as a default information transmission object. At this time, the accessory device may interact with the target device through a wireless connection. For example, the accessory device may communicate pressure sensitive information to the target device over a wireless connection such that the target device may render handwriting effects in accordance with the pressure sensitive information.
The type of the wireless connection can be set according to actual conditions. For example, the wireless connection may be a wireless connection channel such as a Bluetooth (BT) connection, a bluetooth low energy (Bluetooth Low Energy, BLE) connection, a wireless local area network (wireless local area networks, WLAN) connection, a radio frequency identification (radio frequency identification, RFID) connection, or a ZigBee (ZigBee) connection.
By the device pairing method, the accessory device can automatically identify the target device and pair, a user does not need to actively execute specific pairing operation, smoothness of switching the accessory device to a used object is improved, usability and practicability are high, and use experience of the user is improved.
In a possible implementation manner of the first aspect, the matching, by the accessory device, the target device number with the first device number includes:
If the accessory equipment detects that the pressure sensor collects the first pressure sensing information and the accessory equipment does not detect the second pressure sensing information within a preset time before detecting the first pressure sensing information, the accessory equipment matches the target equipment number with the first equipment number.
The first pressure sensing information is currently detected by the pressure sensor. The second pressure-sensitive information is other than the first pressure-sensitive information.
Since a user needs to consume a certain switching time period when switching the use object of the accessory device, moving the accessory device from one electronic device to another electronic device.
Thus, the accessory device can set the preset duration. Specific values of the preset duration can be set according to actual conditions. For example, according to studies, it is shown that when a user uses an accessory device on different electronic devices, the switching time period spent by the user to switch the use object of the accessory device each time is typically greater than 500ms, and thus, the preset time period may be set to 500ms.
If the accessory device does not detect the second pressure sensitive information within a preset time period before the first pressure sensitive information is detected, it indicates that the target device may not be the default device.
At this time, the accessory device needs to identify the target device according to the target device number, and match the target device number with the first device number, thereby identifying the target device.
In a possible implementation manner of the first aspect, the method further includes:
if the accessory device detects that the pressure sensor collects the first pressure sensing information and the accessory device detects the second pressure sensing information within a preset time period before the first pressure sensing information is detected, the accessory device determines default equipment as the target device, and the default equipment is electronic equipment paired with the accessory device at present.
It should be noted that, if the accessory device detects the second pressure-sensitive information within a preset period of time before the first pressure-sensitive information is detected, the time interval between two adjacent times of detection of the pressure-sensitive information by the accessory device is not enough for the user to switch the use object of the accessory device, and the accessory device does not switch the default device.
That is, at this time, the accessory device directly determines the default device as the target device without switching the pairing object.
In a possible implementation manner of the first aspect, the determining, as the target device, the electronic device corresponding to the first device number that is consistent with the target device number includes:
If the number of the matching devices is 1 and the matching devices are default devices, the accessory device determines the default devices as target devices, the matching devices are electronic devices corresponding to first device numbers consistent with the target device numbers, and the default devices are electronic devices currently paired with the accessory device.
Note that, since the device numbers of the respective electronic devices may be the same device number, when the target device number is the device number of the default device, the target device may be the default device or the target device may not be the default device.
At this time, the accessory device may acquire each first device number, and determine whether there are a plurality of first device numbers that match the target device number. The first device number includes a device number of the default device.
If only the device number of the default device matches the device number of the target device in the verification device, the target device is indicated as the default device. At this point, the accessory device does not switch to the default device.
In a possible implementation manner of the first aspect, the determining, as the target device, the electronic device corresponding to the first device number that is consistent with the target device number further includes:
If the number of the matching devices is greater than 1 or the number of the target device is inconsistent with the device number of the default device, the accessory device sends first consultation information to each matching device through the wireless connection, the matching device is an electronic device corresponding to the first device number consistent with the number of the target device, and the default device is an electronic device currently paired with the accessory device;
When the accessory equipment receives the pairing confirmation information, the accessory equipment determines the matching equipment sending the pairing confirmation information as target equipment, wherein the pairing confirmation information is fed back by the target equipment after receiving the first consultation information.
If there are a plurality of first device numbers that are identical to the target device number, it means that there are a plurality of matching devices.
When the number of the matching devices is greater than 1 or the target device number is not the default device number, the accessory device may transmit the first advisory information to each matching device through the wireless connection.
And when the matching equipment receives the first consultation information, judging whether the equipment is target equipment or not. If yes, the matching device returns pairing confirmation information to the accessory device. If not, the matching device returns pairing failure information to the accessory device.
Specifically, in some embodiments, the first point signal may be communicated to the electronic device via the second communication connection when the accessory device is in contact with the electronic device.
The type of the second communication connection may be set according to the actual situation. For example, the second communication connection may be the electrode channel described above; or the second communication connection may be an NFC connection established for the accessory device and the target device.
If the accessory equipment does not detect the pressure sensing information within the preset time before detecting the first pressure sensing information, the accessory equipment determines the point reporting signal sent at the present time as a first point reporting signal, and records the first time for sending the first point reporting signal.
After receiving the first report signal, the electronic device may determine whether other report signals, that is, the second report signal, are detected within a preset time period before receiving the first report signal. If the electronic equipment does not detect the second report point signal within the preset time before receiving the first report point signal, determining the first report point signal received this time as a first report point received, and recording the second time of the first report point received.
The accessory device may include a first time when the first advisory information is sent.
The matching device may calculate the deviation value of the first time and the second time after receiving the first consultation information.
If the last received report point signal of the matching device is not the first received report point, the matching device does not record the second time or the deviation value is larger than or equal to the preset deviation threshold value, the matching device returns the pairing failure information to the accessory device.
And if the last time the matching equipment receives the report point signal is the first time of receiving the report point and the deviation value is smaller than the preset deviation threshold value, the matching equipment returns the pairing confirmation information to the accessory equipment.
In other embodiments, the electronic device may be provided with a pressure sensor.
When the accessory device is in contact with the electronic device, the accessory device records a third time when the first pressure-sensitive information is detected, and the electronic device records a fourth time when the third pressure-sensitive information is detected. The third pressure sensing information is the pressure sensing information currently detected by the pressure sensor of the electronic equipment.
The accessory device may include a third time when the first advisory information is sent.
The matching device may calculate the deviation value of the third time and the fourth time after receiving the first consultation information.
And if the deviation value of the third time and the fourth time is greater than or equal to a preset deviation threshold value, the matching equipment returns pairing failure information to the accessory equipment.
And if the deviation value of the third time and the fourth time is smaller than a preset deviation threshold value, the matching equipment returns pairing confirmation information to the accessory equipment.
In other embodiments, the electronic device may verify the first advisory information in other manners, and the method of the present application does not limit the manner in which the electronic device verifies the first advisory information.
When the accessory device receives the pairing confirm information, the accessory device can determine a matching device transmitting the pairing confirm information as a target device, pair with the target device, and set the target device as a default data transmission object.
In a possible implementation manner of the first aspect, the transmitting, by the accessory device, first consultation information to each of the matching devices through the wireless connection includes:
The accessory device synchronously transmits first consultation information to each matching device through the wireless connection.
It should be noted that, when the accessory device sends the first advisory information, the accessory device may choose to send the first advisory information to each matching device synchronously.
It can be appreciated that during engineering practice, it is difficult for an electronic device to start executing multiple tasks at exactly the same time, and if the time at which the electronic device starts executing multiple tasks is within a certain error range, it can be regarded that the electronic device starts executing multiple tasks synchronously.
Accordingly, when the time when the accessory device transmits the first advisory information to each of the matching devices is within a certain error range, it can be regarded that the accessory device transmits the first advisory information to each of the matching devices synchronously.
The error range should be set according to the actual situation. For example, the error range may be set to a value of 1ms, 2ms, 5ms, or the like.
In a possible implementation manner of the first aspect, the transmitting, by the accessory device, first consultation information to each of the matching devices through the wireless connection includes:
the accessory equipment determines the polling sequence of each matched equipment according to a first preset rule;
And the accessory equipment sequentially sends the first consultation information to each matching equipment through the wireless connection according to the polling sequence.
In other cases, the accessory device may determine the polling order of each matching device according to the first preset rule, and then sequentially send the first advisory information to each matching device according to the polling order.
The first preset rule can be set according to actual requirements. For example, in some embodiments, the first preset rule may be configured to determine the polling order of the respective matching devices by ordering in a near-to-far order according to the time at which the respective matching devices establish wireless connections with the accessory device. In other embodiments, the first preset rule may be set to order according to the time when each matching device is once set as the default device, and order according to the time when each matching device establishes a wireless connection with the accessory device when the matching device is not set as the default device, so as to determine the polling sequence of each matching device.
In a possible implementation manner of the first aspect, after the accessory device matches the target device number with the first device number, the method further includes:
and if the pairing is failed, the accessory equipment executes a preset prompting operation.
In some cases, the accessory device may fail in pairing. For example, in some embodiments, each first device number may not be consistent with the target device number, resulting in accessory device pairing failure. In other embodiments, there may be matching devices, but each matching device returns pairing failure information to the accessory device, resulting in accessory device pairing failure.
When the accessory device pairing fails, the accessory device may perform a preset prompting operation.
The content of the preset prompting operation can be set according to actual conditions. For example, the preset prompting operation may be any one or a combination of a plurality of prompting modes such as vibration, sounding of a buzzer, voice broadcasting of a loudspeaker and the like.
In a possible implementation manner of the first aspect, before the accessory device receives the first signal through the first communication connection, the method further includes:
and the accessory equipment receives and stores equipment numbers sent by the electronic equipment through the wireless connection.
It should be noted that, when the electronic device establishes a wireless connection with the accessory device, the electronic device may send the device number to the accessory device through the wireless connection after the wireless connection is established.
When the accessory device receives the device number sent by the electronic device through the wireless connection, the accessory device may store the device number of the electronic device in association with the wireless communication address of the electronic device.
When the accessory device needs to identify the target device, the accessory device can acquire the first device number of each electronic device currently establishing wireless connection from the storage area, and match the first device number with the target device number, so that the target device is identified.
In a possible implementation manner of the first aspect, the wireless connection is a bluetooth connection;
pairing the accessory device to the target device, comprising:
the accessory device establishes HoGP a connection channel with the target device according to a human interface device interaction protocol HoGP based on the generic properties.
It should be noted that, when the wireless connection is a bluetooth connection, the bluetooth connection includes HoGP connection channels and a generic attribute protocol (Generic Attribute Profile, GATT) connection channel.
After the accessory device determines the target device, the accessory device pairs with the target device by assigning the accessory device to establish HoGP connection paths with the target device.
In a second aspect, an embodiment of the present application provides an accessory device comprising:
a signal receiving module, configured to receive a first signal through a first communication connection, where the first signal includes a target device number, and the first communication connection is a communication connection established between an electronic device that is currently in contact with the accessory device and the accessory device;
The number matching module is used for matching the target equipment number with a first equipment number, determining an electronic equipment corresponding to the first equipment number consistent with the target equipment number as target equipment, wherein the first equipment number is the equipment number of the electronic equipment which establishes wireless connection with the accessory equipment;
and the equipment pairing module is used for pairing the target equipment.
In a possible implementation manner of the second aspect, the number matching module includes:
And the first pairing submodule is used for matching the target equipment number with the first equipment number if the accessory equipment detects that the pressure sensor collects the first pressure sensing information and the accessory equipment does not detect the second pressure sensing information within the preset time before detecting the first pressure sensing information.
In a possible implementation manner of the second aspect, the number matching module further includes:
And the second pairing submodule is used for determining default equipment as the target equipment if the accessory equipment detects that the pressure sensor acquires the first pressure sensing information and the accessory equipment detects the second pressure sensing information within a preset time period before the first pressure sensing information is detected, and the default equipment is electronic equipment paired with the accessory equipment at present.
In a possible implementation manner of the second aspect, the number matching module includes:
and the third pairing submodule is used for determining the default equipment as target equipment if the number of the matching equipment is 1 and the matching equipment is the default equipment, wherein the matching equipment is electronic equipment corresponding to a first equipment number consistent with the target equipment number, and the default equipment is electronic equipment currently paired with the accessory equipment.
In a possible implementation manner of the second aspect, the number matching module further includes:
The consultation information sub-module is used for sending first consultation information to each matching device through the wireless connection if the number of the matching devices is larger than 1 or the number of the target device is inconsistent with the number of the default device, wherein the matching device is an electronic device corresponding to the first device number consistent with the number of the target device, and the default device is an electronic device currently paired with the accessory device;
And the fourth pairing submodule is used for determining the matching equipment sending the pairing confirmation information as target equipment when the accessory equipment receives the pairing confirmation information, wherein the pairing confirmation information is fed back by the target equipment after receiving the first consultation information.
In a possible implementation manner of the second aspect, the consulting information sub-module includes:
And the synchronous sending sub-module is used for synchronously sending the first consultation information to each matching device through the wireless connection.
In a possible implementation manner of the second aspect, the consulting information sub-module includes:
the polling sequence sub-module is used for determining the polling sequence of each matched device according to a first preset rule;
And the polling sending sub-module is used for sequentially sending the first consultation information to each matching device through the wireless connection according to the polling sequence.
In a possible implementation manner of the second aspect, the accessory device further includes:
and the information prompt module is used for executing preset prompt operation if the pairing fails.
In a possible implementation manner of the second aspect, the accessory device further includes:
and the number storage module is used for receiving and storing the equipment numbers sent by the electronic equipment through the wireless connection.
In a possible implementation manner of the second aspect, the wireless connection is a bluetooth connection;
The device pairing module is specifically configured to establish HoGP connection channels with the target device according to a man-machine interface device interaction protocol HoGP based on the general attribute.
In a third aspect, embodiments of the present application provide a device pairing system comprising at least one accessory device and at least one electronic device;
The accessory device is adapted to perform the steps of the method of the first aspect described above when the accessory device is in contact with the electronic device.
It should be noted that one or more accessory devices, and one or more electronic devices may be included in the device pairing system.
The accessory device may perform the steps of the method mentioned in the first aspect above when the accessory device is in contact with the electronic device in response to an operation by a user.
In a fourth aspect, there is provided an accessory device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the accessory device implementing the steps of the method as described above when the processor executes the computer program.
In a fifth aspect, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes an accessory device to implement the steps of the method as described above.
In a sixth aspect, a chip system is provided, which may be a single chip, or a chip module consisting of a plurality of chips, the chip system comprising a memory and a processor executing a computer program stored in the memory to implement the steps of the method as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
In the device pairing method provided by the application, the accessory device acquires a first signal through the first communication connection, wherein the first signal comprises the number of the target device. Then, the accessory device matches the target device number with each first device number, thereby determining the target device corresponding to the target device number. After the target device is determined, the accessory device is paired with the target device.
By the device pairing method, the accessory device can automatically identify the target device and pair, a user does not need to actively execute specific pairing operation, smoothness of switching the accessory device to a used object is improved, usability and practicability are high, and use experience of the user is improved.
Drawings
Fig. 1 is a schematic structural diagram of a device pairing system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an accessory device according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a software structure block diagram of an electronic device according to an embodiment of the present application.
FIG. 5 is a schematic diagram of an information channel according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a touch sensor according to an embodiment of the present application;
fig. 7 is a system architecture diagram of a device pairing system according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a magnetic attraction pair according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a connection verification operation according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a connection pairing according to an embodiment of the present application;
FIG. 11 is a schematic diagram of another connection pairing according to an embodiment of the application;
fig. 12 is a schematic diagram of a bluetooth low energy connection operation according to an embodiment of the present application;
FIG. 13 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 14 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 15 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 16 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 17 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 18 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 19 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 20 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 21 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 22 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 23 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 24 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 25 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 26 is a schematic view of a scenario provided by an embodiment of the present application;
FIG. 27 is a schematic view of a scenario provided by an embodiment of the present application;
fig. 28 is a flow chart of a device pairing method according to an embodiment of the present application;
Fig. 29 is a flowchart of another device pairing method according to an embodiment of the application;
Fig. 30 is a flowchart of another device pairing method according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Furthermore, references to "a plurality of" in embodiments of the present application should be interpreted as two or more.
The steps involved in the device pairing method provided in the embodiment of the present application are merely examples, not all steps are necessarily performed, or not all the contents in each information or message are necessarily selected, and may be increased or decreased as needed in the use process.
The same steps or messages having the same function in the embodiments of the present application may be referred to and used by reference between different embodiments.
The system architecture and the service scenario described in the embodiments of the present application are for more clearly describing the technical solution provided in the embodiments of the present application, and do not constitute a limitation on the technical solution provided in the embodiments of the present application, and those skilled in the art can know that, with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiments of the present application is equally applicable to similar technical problems.
Many current electronic devices with display screens (e.g., tablet, notebook, cell phone, etc.) are equipped with auxiliary accessory devices (e.g., stylus, etc.).
With such accessory devices, a user can conveniently perform clicking, writing, etc. operations on a display screen of an electronic device, providing a finer use experience than finger operations.
Current accessory devices require the user to actively perform a specific pairing operation when paired with the electronic device. For example, the user needs to attract the accessory device to a specific magnetic attraction position of the electronic device, or the user needs to contact and connect the connector of the accessory device with the interface of the accessory device.
In some cases, a user may have multiple electronic devices, for example, a user may have multiple tablet computers. When a user needs to use the same accessory device on different electronic devices, the user needs to actively execute pairing operation in the process of switching the use object of the accessory device each time, so that the accessory device and the electronic device are paired again. For example, after a user uses a stylus on a certain tablet computer, if the user wants to use the stylus on another tablet computer, the user needs to place the stylus at a specific magnetic position of the other tablet computer so that the stylus is paired with the other tablet computer. After pairing is completed, the user can use the stylus to perform clicking, writing and other operations on another tablet computer.
Therefore, in the current device pairing scheme, the pairing process of the accessory device and the electronic device is complex, and when the use object of the accessory device is switched, the smoothness is low, and the use experience of a user is extremely influenced.
In view of this, the device pairing method, the electronic device and the computer readable storage medium provided by the embodiments of the present application can simplify the pairing switching process of the accessory device and the electronic device, so that the accessory device can smoothly switch different usage objects, and solve the problems of complex pairing process of the accessory device and the electronic device, low fluency of the process of switching the usage objects of the accessory device, and influence on the usage experience of the user in the current device pairing scheme, and have stronger usability and practicability.
First, taking the device pairing system shown in fig. 1 as an example, the device pairing system is a system to which the device pairing method provided by the embodiment of the present application is applicable.
As shown in fig. 1, the device pairing system includes at least one accessory device 101 (only one shown in fig. 1) and at least one electronic device 102 (only one shown in fig. 1) having a display screen. After the accessory device 101 is successfully paired with the electronic device 102, a user can use the accessory device 101 to perform clicking, writing and other operations on the display screen of the electronic device 102.
The accessory device 101 may be an active stylus, for example, an active capacitive stylus. It will be appreciated that the stylus is merely a word used in the embodiments of the present application, and represents a meaning of an information input device, and functions performed by the stylus are described in the embodiments, and the names of the stylus should not be construed as limiting the embodiments. Additionally, in other embodiments of the present application, a stylus may also be referred to as, for example, a stylus, an active stylus, a signal pen, or other terminology.
The electronic device 102 may be a mobile phone, tablet, personal Digital Assistant (PDA), wearable device, laptop (laptop), smart screen, desktop, smart television, smart screen, electronic billboard, etc. with a touch-sensitive surface (e.g., touch panel). Exemplary embodiments of electronic devices include, but are not limited to, electronic devices that carry iOS, android, microsoft or other operating systems.
The embodiment of the present application does not impose any limitation on the specific types of accessory device 101 and electronic device 102.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an accessory device 101 according to an embodiment of the present application.
The accessory device 101 shown in fig. 2 may be an active capacitive stylus. As shown in fig. 2, the active capacitive stylus may include: a processor 201, a power supply 202, a micro control unit (microcontroller unit, MCU) 203, a direct current to direct current power converter (DC/DC) 204, a signal transmitting circuit 205, a signal detecting circuit 206, a pressure sensor 207, and a wireless communication module 208.
The processor 201 may include one or more processing units, such as: the processor 201 may include an application processor (application processor, AP), a controller, memory, etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The power source 202 may be a rechargeable lithium battery or a replaceable standard battery or the like. In operation, the power supply 202 supplies power to the MCU 203, the signal transmitting circuit 205, the signal detecting circuit 206, the pressure sensor 207, and the wireless communication module 208 via the DC/DC power converter 204.
The signal detection circuit 206 may be disposed at the pen tip location of the accessory device 101. The signal detection circuit 206 may include one or more electrodes. The signal detection circuit 206 may be used to detect signals transmitted by the screen of the electronic device 102, such as direct sequence spread spectrum (Direct Sequence Spread Spectrum, DSSS) signals.
The pressure sensor 207 may be disposed at the nib position of the accessory device 101. The pressure sensor 207 may be used to detect a pressure value, i.e., pressure sensitive information, experienced by the pen tip of the accessory device 101. Specifically, the pressure sensor 207 may be any one or a combination of a plurality of types of pressure sensors such as a piezoresistive pressure sensor, a ceramic pressure sensor, a diffused silicon pressure sensor, a sapphire pressure sensor, a piezoelectric pressure sensor, and the like.
The wireless communication module 208 may provide a close range wireless communication technology solution applied on the accessory device 101, for example, a solution of wireless communication that may include Bluetooth (BT), bluetooth low energy (Bluetooth Low Energy, BLE), near field communication (NEAR FIELD communication, NFC), wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wiFi)), radio frequency identification (radio frequency identification, RFID), or ZigBee. The wireless communication module 208 may be one or more devices that integrate at least one communication processing module. The wireless communication module 208 may be used in conjunction with an antenna (not shown in fig. 2) of the accessory device 101, receive electromagnetic waves via the antenna, demodulate and filter the electromagnetic wave signals, and send the processed signals to the processor 201. The wireless communication module 208 may also receive a signal to be transmitted from the processor 201, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via an antenna.
The MCU 203 generates a pulse width modulation (Pulse Width Modulation, PWM) signal under the control of a clock generated by the internal crystal oscillator, and drives the signal transmitting circuit 205 to transmit the PWM signal.
The signal transmitting circuit 205 may include one or more electrodes. The signal transmitting circuit 205 may be disposed at the pen tip position of the accessory device 101. The PWM signal transmitted by the signal transmitting circuit 205 is transmitted to the screen of the electronic device 102 through the pen tip of the accessory device 101 in the form of a high-voltage square wave signal.
In some embodiments, signal transmission circuit 205 may be configured to transmit a 1-way PWM signal for electronic device 102 to determine the reporting point information for accessory device 101. In other embodiments, signal transmitting circuit 205 may be configured to transmit 2 PWM signals, wherein 1 signal is used by electronic device 102 to determine the reporting point information of accessory device 101 and 2 signals are used in combination with electronic device 102 to determine the inclination of accessory device 101.
It will be appreciated that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the accessory device 101. In other embodiments of the application, accessory device 101 may include more or fewer components than shown, such as keys, LED indicators, or accessory device 101 may also combine certain components, split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Referring to fig. 3, fig. 3 schematically illustrates a structural diagram of an electronic device 102 according to an embodiment of the present application.
As shown in fig. 3, the electronic device 102 may include: processor 310, external memory interface 320, internal memory 321, universal serial bus (universal serial bus, USB) interface 330, charge management module 340, power management module 341, battery 342, antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver 370B, microphone 370C, headset interface 370D, sensor module 380, keys 390, motor 391, indicator 392, camera 393, display 394, and subscriber identity module (subscriber identification module, SIM) card interface 395, among others. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
The processor 310 may include one or more processing units, such as: processor 310 may include an application processor (application processor, AP), a touch chip such as a Touch Panel Integrated Circuit (TPIC), a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a digital signal processor (DIGITAL SIGNAL processor, DSP), and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 102, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
The internal memory 321 may be used to store computer executable program code comprising instructions. The processor 310 executes various functional applications of the electronic device 102 and data processing by executing instructions stored in the internal memory 321. The internal memory 321 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 102 (e.g., audio data, phonebook, etc.), and so on.
The wireless communication function of the electronic device 102 may be implemented by the antenna 1, the antenna 2, the wireless communication module 360, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 102 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 360 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared (IR), RFID, or ZigBee, etc., applied on the electronic device 102. The wireless communication module 360 may be one or more devices that integrate at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The wireless communication module 360 may also receive wireless communication information (e.g., BLE messages) sent by the accessory device 101 during writing, which carries pressure-sensitive information detected by the accessory device 101. The wireless communication is communicated to the AP, from which the AP determines pressure sensitive information of the accessory device 101. The AP may then pass the pressure-sensitive information of the accessory device 101 to the GPU for subsequent graphics rendering for the accessory device 101.
The electronic device 102 implements display functions through a GPU, a display screen 394, an AP, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 394 and the AP. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
In the embodiment of the present application, the GPU may perform graphics rendering according to the pressure information, the point information, and the inclination of the accessory device 101, and transmit the rendered result to the display screen 394, where the display screen 394 displays the corresponding writing content.
The display screen 394 is used for displaying images, videos, and the like. In an embodiment of the present application, display screen 394 may be used to display the writing of accessory device 101. The display screen 394 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 102 may include 1 or N display screens 394, N being a positive integer greater than 1.
The pressure sensor 380A is used to sense a pressure signal, which can be converted into a signal. In some embodiments, the pressure sensor 380A may be disposed on the display screen 394. The pressure sensor 380A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 380A, the capacitance between the electrodes changes. The electronics 102 determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 394, the electronic device 102 detects the touch operation intensity from the pressure sensor 380A. The electronic device 102 may also calculate the location of the touch based on the detection signal of the pressure sensor 380A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The touch sensor 380K, also referred to as a "touch panel". The touch sensor 380K may be disposed on the display screen 394, and the touch sensor 380K and the display screen 394 form a touch screen, which is also referred to as a "touch screen". The touch sensor 380K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the AP to determine the touch event type. Visual output related to touch operations may be provided through the display screen 394. In other embodiments, the touch sensor 380K may also be disposed on a surface of the electronic device 102 other than where the display 394 is located.
In an embodiment of the application, touch sensor 380K may be used to transmit a signal (e.g., a DSSS signal) to accessory device 101 that may be used by accessory device 101 to learn that the screen of electronic device 102 is nearby, i.e., that the user has a writing intent.
In an embodiment of the present application, touch sensor 380K may also be used to receive signals transmitted by accessory device 101 from which processor 310 may determine the reporting point information and the inclination. The operation principle of the touch sensor 380K will be described in detail later, and will not be described in detail herein.
In an embodiment of the present application, the screen of the electronic device 102 may refer to a device composed of a cover glass (not shown in the figure), a touch sensor 380K, a display screen 394, a chassis (not shown in the figure), and some peripheral circuits. The screen is composed of a protective glass, a touch sensor 380K, a display screen 394 and a bottom plate from top to bottom.
It should be understood that the illustrated structure of the embodiments of the present application does not constitute a particular limitation of the electronic device 102. In other embodiments of the application, electronic device 102 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software system of the electronic device 102 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 102 is illustrated.
Fig. 4 is a software architecture block diagram of the electronic device 102 of an embodiment of the application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 4, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 4, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide communication functions of the electronic device 102, such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
As shown in fig. 5, a first information channel, a second information channel, and a third information channel may be formed between the accessory device 101 and the electronic device 102.
First information channel (i.e. the wireless connection described above):
at least one of the wireless communication module 208 of the accessory device 101 and the wireless communication module 360 of the electronic device 102 has a communication processing module of the same type, and the wireless communication module 208 and the wireless communication module 360 establish a first information channel through the communication processing module of the same type.
For example, assuming that the BLE module is included in the wireless communication module 208 and the BLE module is also included in the wireless communication module 360, the wireless communication module 208 and the wireless communication module 360 may establish a BLE connection channel.
The accessory device 101 and the electronic device 102 may interact with wireless communication information via a first information channel. For example, the accessory device 101 may send pressure-sensitive information to the electronic device 102 through the first information channel, such that the electronic device 102 renders handwriting effects according to the pressure-sensitive information; the electronic device 102 may send configuration information to the accessory device 101 via the first information channel.
Second information channel (i.e. the second communication connection described above):
the second information channel is a path through which the signal transmitting circuit 205 of the accessory device 101 transmits a signal (PWM signal) to the screen of the electronic device 102.
The second information channel may comprise a first sub-channel consisting of 1 electrode comprised by the signal transmitting circuit 205 of the pen tip of the accessory device 101 and the screen of the electronic device 102. The first sub-channel is for the pen tip electrode of accessory device 101 to cause the electrode of signal transmitting circuit 205 to transmit a signal (e.g., a PWM signal) to the screen of electronic device 102, which is used by electronic device 102 to learn the spot information of accessory device 101. The principle is explained in detail below.
Referring to fig. 6, the in-screen touch sensor 380K of the electronic device 102 may include an X-axis electrode layer and a Y-axis electrode layer. The X-axis electrode layer may include a plurality of transmission (Tx) electrodes distributed in a matrix, and the Y-axis electrode layer may include a plurality of reception (Rx) electrodes distributed in a matrix. The Tx electrode and the Rx electrode form a crisscross network, and the intersection point (i.e., coordinate point) of the Tx electrode and the Rx electrode forms a mutual capacitance (i.e., capacitance formed by the Tx electrode and the adjacent Rx electrode).
When the electronic device 102 detects the mutual capacitance of each coordinate point on the touch sensor 380K, the touch chip connected to the touch sensor 380K may sequentially send out an excitation signal at each Tx electrode, and then the touch chip scans the signal received by each Rx electrode, and analog-to-digital converts the measured voltage value into a digital signal and calculates the capacitance value.
The electronic device 102 detects a touch operation by a finger, and the principle of detecting the input content of the accessory device 101 is different.
When a finger touches the screen, the finger, touch sensor 380K, and the insulating material therebetween (e.g., the cover glass of the screen) may form a coupling capacitance, causing a weak variation in current, causing a change in mutual capacitance. The electronic device 102 detects the change in capacitance of the touch point by scanning the X-axis electrode matrix and the Y-axis electrode matrix, and calculates the position of the finger.
When the electronic device 102 enters the accessory device detection mode, that is, the electronic device 102 converts the Tx electrode on the touch sensor 380K into the Rx electrode during the signal detection period of the working cycle, and senses the emission signal of the accessory device 101 (e.g., the active capacitive pen) axially at X, Y in turn with the original Rx electrode. The signals received by the Tx electrode (converted into Rx electrode) and the original Rx electrode can be amplified by an amplifying circuit of the touch chip. The magnitude envelopes formed by the magnitude values of the received signals (or the capacitance values of the X axis and the Y axis) can be obtained on the X axis electrode and the Y axis electrode respectively, and the coordinates (X, Y) of the signal receiving points, namely the position points of the pen point of the accessory equipment 101 on the screen, namely the report point information, can be obtained through calculation. One way of calculating is to calculate, for example, by substituting the numerical envelope into an a priori model of the envelope of the accessory device 101. Those skilled in the art will understand that the calculation method may be a conventional scheme in the art, and will not be described herein. The touch chip transforms the signal from time-frequency to frequency domain, for example, performs fast fourier transform on the signal, so as to obtain the frequency of the signal sent by the accessory device 101.
In some embodiments, the second information channel may also comprise a second sub-channel consisting of 1 electrode comprised by the signal transmitting circuit 205 of the pen tip of the accessory device 101 and the screen of the electronic device 102. The electrodes in the second sub-channel are different from the electrodes in the first sub-channel. This second sub-channel is used for the nib electrode of accessory device 101 to emit a signal (e.g., a PWM signal) to the screen of electronic device 102. The signal transmitted by the second sub-channel, and the signal transmitted by the first sub-channel, are used in combination with the electronic device 102 to learn the inclination of the accessory device 101.
In the following embodiments of the present application, a signal transmitted by a first subchannel may be referred to as a first signal (or the first signal may also be referred to as a point signal), and a signal transmitted by a second subchannel may be referred to as a second signal.
Third information channel (i.e. the first communication connection described above):
the third information channel is the path through which the screen of the electronic device 102 transmits a signal (e.g., DSSS signal) to the signal detection circuit 206 of the accessory device 101.
The third information channel is comprised of the screen of the electronic device 102 and one or more receiving electrodes of the signal detection circuit 206 of the accessory device 101.
Specifically, a signal, such as a signal modulated by DSSS, is transmitted by one or more Tx electrodes of the touch sensor 380K in the screen of the electronic device 102 and/or Tx electrodes converted from Rx electrodes, which is received by one or more receiving electrodes of the pen tip of the accessory device 101. This signal may be referred to as an upstream signal for accessory device 101 to learn the device number of electronic device 102. The form of the equipment number can be set according to actual requirements. For example, the device number may be a 2bit or 3bit binary number. When the device number is a binary number, the optional number may include 4 numbers of 00, 01, 10, 11. The device number of the electronic device 102 may be a number arbitrarily selected from among the respective selectable numbers when the electronic device 102 connects the accessory device 101 for the first time; or the device number of the electronic device 102 may be a number preset in an internal software system of the electronic device 102; or the device number of the electronic device 102 may be a number specified by the user in the user interface of the electronic device 102. The electronic device 102 may change the device number of the electronic device 102 by way of a software upgrade or user setting, etc. The same device number is used when the electronic device 102 is connected to each accessory device 101 before the electronic device 102 changes the number. As is clear from the above, when the accessory device 101 writes on the electronic device 102, an uplink signal (e.g., DSSS signal) transmitted by the electronic device 102 to the accessory device 101, and a signal (e.g., first signal, second signal) transmitted by the accessory device 101 to the electronic device 102 are all signals transmitted between the screen of the electronic device 102 and the pen tip of the accessory device 101, and the screen of the electronic device 102 or the pen tip of the accessory device 101 is required to detect or transmit.
The mechanism by which the pen tip of accessory device 101 and the screen of electronic device 102 detect and transmit signals is described below.
In some embodiments, accessory device 101 can continuously transmit signals (e.g., PWM signals) and can also continuously detect signals (e.g., DSSS signals) transmitted by electronic device 102.
In other embodiments, accessory device 101 can periodically detect and transmit signals, and can transmit and detect separately in time sequence. That is, the accessory device 101 performs signal transmission and signal detection respectively at different periods of the same cycle. This avoids interference between signals and saves power on the accessory device 101.
In some embodiments, electronic device 102 may continuously transmit signals (e.g., DSSS signals) and may also continuously detect signals (e.g., PWM signals) transmitted by accessory device 101.
In other embodiments, the electronic device 102 may periodically detect and transmit signals, and may transmit and detect separately in time sequence. This avoids interference between signals and saves power for the electronic device 102. When the accessory device 101 transmits 2 signals (i.e., the first signal and the second signal) in one period, the 2 signals may have overlapping portions in time sequence or may not overlap in time sequence, which is not limited by the embodiment of the present application.
The device pairing method provided by the embodiment of the application will be described in detail below according to the device pairing systems shown in fig. 1 to 6 and in combination with specific application scenarios.
1. The first pairing of accessory device 101 with electronic device 102.
Pairing of the accessory device 101 and the electronic device 102 is to assign the accessory device 101 and the electronic device 102 to each other as a default data transmission object. For example, assuming that the accessory device 101 is a handwriting pen, the electronic device 102 includes a tablet computer 1 and a tablet computer 2, the handwriting pen and the tablet computer 1 and the tablet computer 2 both establish a first information channel, and when the handwriting pen is paired with the tablet computer 1, the handwriting pen will transmit the pressure-sensitive information to the tablet computer 1 by default and will not transmit the pressure-sensitive information to the tablet computer 2 by default when the subsequent handwriting pen detects the pressure-sensitive information.
In the case where both the accessory device 101 and the electronic device 102 have turned on the wireless communication function, the accessory device 101 and the electronic device 102 can find each other and establish the first information channel through the wireless communication module 208 and the wireless communication module 360. Thereafter, the accessory device 101 and the electronic device 102 may interact with data via the first information channel described above.
For example, referring to fig. 7, assuming the accessory device 101 is a stylus, the electronic device 102 is a tablet computer, and the wireless communication module 208 and the wireless communication module 360 each include a bluetooth module. A handwriting pen driver 705 may be disposed in the handwriting pen processor 201, and the handwriting pen driver 705 may perform data interaction with a bluetooth module 706 of the handwriting pen; the processor 310 of the tablet computer may include an application 702, a handwriting pen service 701 and an input system 703, and the bluetooth module of the tablet computer may include a bluetooth protocol stack 704; after the bluetooth module 706 of the stylus and the bluetooth module of the tablet computer establish a bluetooth connection channel, the stylus driver 705 may send data to the bluetooth protocol stack 704 of the tablet computer through the bluetooth module 706 of the stylus, the bluetooth protocol stack 704 transmits the data to the stylus service 701, and the stylus service 701 transmits the data transmitted by the bluetooth protocol stack 704 and the data transmitted by the application 702 to the input system 703 for processing; or the handwriting service 701 can also send data to the bluetooth module 706 of the handwriting pen through the bluetooth protocol stack 704, and the bluetooth module 706 of the handwriting pen transfers the data transmitted by the bluetooth protocol stack 704 to the handwriting pen driver 705 for processing.
The process of first establishing the first information channel by the accessory device 101 and the electronic device 102 may be a process of first pairing the accessory device 101 and the electronic device 102, or the process of first establishing the first information channel by the accessory device 101 and the electronic device 102 may not be a process of first pairing the accessory device 101 and the electronic device 102.
For example, assume that accessory device a and electronic device B have not established the first information channel nor paired.
At this time, if both the accessory device a and the electronic device B have turned on the wireless communication function, the accessory device a and the electronic device B may establish the first information channel for the first time, but the accessory device a and the electronic device B do not set the other party as a default information transmission object, and the accessory device a and the electronic device B are not paired. In this case, the process of the accessory device a and the electronic device B first establishing the first information channel is not the process of the accessory device a and the electronic device B first pairing.
Or the accessory device a and the electronic device B may perform the pairing operation for the first time in response to an operation by the user. When performing the pairing operation, the accessory device a and the electronic device need to turn on the wireless communication function to establish the first information channel, and set the other party as a default information transmission object. In this case, the first pairing process of the accessory device a and the electronic device B is a process of first establishing a first information channel of the accessory device a and the electronic device B.
When the accessory device 101 and the electronic device 102 are paired for the first time, the accessory device 101 may be paired with the electronic device 102 according to a preset pairing manner.
In some possible implementations, accessory device 101 and electronic device 102 may be paired by magnetic attraction pairing.
As shown in fig. 8, the accessory device 101 and the electronic device 102 may be provided with a magnetic attraction structure (for example, a hall device) in a specific area, and when the magnetic attraction structure of the accessory device 101 is close to the magnetic attraction structure of the electronic device 102, the magnetic attraction structure of the accessory device 101 may be attracted to the magnetic attraction structure of the electronic device 102.
When the magnetic attraction structure of the accessory device 101 is in attraction connection with the magnetic attraction structure of the electronic device 102, the pairing operation of the accessory device 101 and the electronic device 102 is triggered.
Upon triggering the pairing operation, the electronic device 102 may display a prompt box on the display interface. For example, as shown in FIG. 8, the electronic device 102 may display a prompt box on the display interface prompting the user whether to connect with the accessory device 101 (i.e., the "My handwriting pen") and providing two options, "connect" and "cancel".
Then, as shown in fig. 9, the electronic device 102 may send a first connection request to the accessory device 101 through the first information channel in response to a click operation of the "connect" option by the user.
After receiving the first connection request, the accessory device 101 returns the first confirmation information to the electronic device 102, completes the connection operation, and establishes a first information channel with the electronic device 102. Thereafter, the electronic device 102 and the accessory device 101 may interact with data via the first information channel.
The first connection request may include a device number of the electronic device 102; or the electronic device 102 may also send the device number of the electronic device 102 to the accessory device 101 after the first information channel is established. After receiving the device number of the electronic device 102, the accessory device stores the device number and the wireless communication address of the electronic device 102, and completes the first pairing of the accessory device 101 and the electronic device 102.
In other possible implementations, accessory device 101 and electronic device 102 may be paired by way of a connection pairing.
For example, referring to fig. 10 and 11, one end of the accessory device 101 may be provided with a cap, and the cap and the main body of the accessory device 101 are detachably connected. When the cap of the accessory device 101 is detached, the connector provided on the accessory device 101 can be viewed. The electronic device 102 may be provided with an interface. When the connector of the accessory device 101 is in contact connection with the interface of the electronic device 102, a pairing operation of the accessory device 101 and the electronic device 102 is triggered.
Upon triggering the pairing operation, the electronic device 102 may display a prompt box on the display interface. For example, as shown in FIG. 11, the electronic device 102 may display a prompt box on the display interface prompting the user whether to connect with the accessory device 101 (i.e., the "My handwriting pen") providing two options, "connect" and "cancel".
Then, as shown in fig. 9, the electronic device 102 may send a first connection request to the accessory device 101 through the first information channel in response to a click operation of the "connect" option by the user.
After receiving the first connection request, the accessory device 101 returns the first confirmation information to the electronic device 102, completes the connection operation, and establishes a first information channel with the electronic device 102. Thereafter, the electronic device 102 and the accessory device 101 may interact with data via the first information channel.
The first connection request may include a device number of the electronic device 102; or the electronic device 102 may also send the device number of the electronic device 102 to the accessory device 101 after the first information channel is established. After receiving the device number of the electronic device 102, the accessory device stores the device number and the wireless communication address of the electronic device 102, and completes the first pairing of the accessory device 101 and the electronic device 102.
The type of the connector can be set according to actual requirements. For example, the connector may be any one of a Micro-B connector, a universal serial bus (Universal Serial Bus, USB) Type-C connector, a Lightning (Lightning) connector, and the like.
Correspondingly, the interface is an interface matched with the connector. For example, the interface may be any one of Micro-B interface, USB Type-C interface, lightning interface, and the like.
Further, each electronic device 102 may be provided with a corresponding device number. The device number of the electronic device 102 may be preset when shipped from the factory, or the device number of the electronic device 102 may be user-defined.
The device numbers of the respective electronic devices 102 may be the same, or the device numbers of the respective electronic devices 102 may be different.
It will be appreciated that while in the above example, the electronic device 102 communicates the device number of the electronic device 102 to the accessory device 101 during the first pairing of the accessory device 101 with the electronic device 102. However, in an actual application process, the electronic device 102 may not transmit the device number in the first pairing process.
For example, the electronic device 102 may communicate the device number of the electronic device 102 to the accessory device 101 through the first information channel after the accessory device 101 first establishes the first information channel with the electronic device 102.
That is, accessory device 101 and electronic device 102 may not have been paired, but accessory device 101 and electronic device 102 should have established the first information channel at least once so that electronic device 102 communicates its device number to accessory device 101 through the first information channel.
The embodiment of the present application does not impose any limitation on the timing at which the electronic device 102 transmits its device number to the accessory device 101.
For ease of understanding, the process of first pairing the accessory device 101 with the electronic device 102 described above will be described below in connection with a specific application scenario.
Application scenario one:
In this embodiment, assuming that the accessory device 101 is a handwriting pen, the electronic device 102 is a tablet computer, the handwriting pen and the tablet computer are both provided with a magnetic structure, and the handwriting pen and the tablet computer are both provided with a BLE module.
When the accessory device 101 and the electronic device 102 are provided with BLE modules, the above-mentioned first information channel is a BLE connection channel. The BLE connection channels include a generic attribute protocol (Generic Attribute Profile, GATT) connection channel and a generic attribute-based human interface device interaction protocol (HID Over Gatt Profile, hoGP) connection channel.
At this time, the accessory device 101 connects with the plurality of electronic devices 102, which means that the accessory device 101 establishes a GATT connection channel with the plurality of electronic devices 102. Pairing of the accessory device 101 and a certain electronic device 102 means that the accessory device 101 establishes HoGP connection channels with the electronic device 102.
The tablet personal computer is provided with a plurality of initial equipment numbers in advance, and the tablet personal computer selects an initial equipment number from the initial equipment numbers as the equipment number of the tablet personal computer.
When both the stylus and the tablet computer start the Bluetooth BLE function, the stylus and the tablet computer can find each other and establish a GATT connection channel.
As shown in fig. 12, when the handwriting pen and the tablet computer establish the GATT connection channel, interaction can be performed based on the GATT until the GATT connection channel is established.
For example, the stylus may send broadcast physical channel (ADVERTISING PHYSICAL CHANNEL) PDUs to the BLE module of the tablet by sending to the BLE module. The PDU is a protocol data unit. The broadcast physical channel PDU may be of the type PDU message of ADV_IND PDU, AVD_EXT_IND PDU, AUX_ADV_IND PDU, AUX_SYNC_IND, etc.
After the tablet receives the broadcast physical channel PDU, a SCAN request PDU (e.g., scan_req PDU) may be sent to the stylus.
After the stylus receives the SCAN request PDU, it returns a SCAN response PDU (e.g., scan_rsp PDU) to the tablet.
The tablet computer sends a connection request (connect_ind) to the stylus, thereby establishing a GATT connection channel.
Then, the stylus and the tablet computer can transmit data physical channel PDU (DATA PHYSICAL CHANNEL PDU) through the GATT connection channel for data interaction.
After the GATT connection channel is established, the stylus can read information such as screen types, equipment parameters and the like of the tablet personal computer based on the GATT connection channel. The tablet computer may communicate the device number to the stylus based on the GATT connection channel.
As shown in fig. 8, when the magnetic attraction structure of the stylus and the magnetic attraction structure of the tablet computer are in attraction connection, the pairing operation of the stylus and the tablet computer is triggered.
At this time, if the pen is the first pairing of the tablet computer, the display interface of the tablet computer pops up a system prompt box to ask the user whether to connect with the pen (i.e. "my pen").
Then, the tablet computer can respond to the clicking operation of the user on the 'connection' option, control the BLE module to send a first connection request to the handwriting pen, the handwriting pen returns first confirmation information, and the tablet computer and the handwriting pen establish GATT connection. Then, based on the GATT connection, the tablet computer sends the device number to the stylus, which thereby learns and stores the device number of the tablet computer.
Then, a HoGP connecting channel is established between the handwriting pen and the tablet computer, and the first pairing of the handwriting pen and the tablet computer is completed.
After the pen and tablet establish HoGP connection channels, service related content specified in the protocol can be transferred based on HoGP. For example, the stylus may send the pressure sensitive information to the tablet computer via HoGP connection channel based on the format and flow of the stylus transfer information specified in HoGP.
2. Use and switching of the accessory device 101.
As shown in fig. 5, when the accessory device 101 is in contact with the electronic device 102, the signal transmitting circuit 205 of the accessory device 101 may establish a second information channel with the screen of the electronic device 102, and the signal detecting circuit 206 of the accessory device 101 may establish a third information channel with the screen of the electronic device 102.
Also, the accessory device 101 is provided with a pressure sensor 207, and when the accessory device 101 is in contact with the electronic device 102, the pressure sensor 207 of the accessory device 101 can detect pressure-sensitive information (hereinafter, the pressure-sensitive information currently detected by the accessory device 101 is simply referred to as first pressure-sensitive information).
As shown in fig. 13, the accessory device 101 may send a point signal to the touch sensor 380K of the electronic device 102 through the second information channel, and an action of the accessory device 101 sending the point signal is referred to as "point.
The accessory device 101 may generate the point signal by a preset point signal generation manner. For example, accessory device 101 can generate the tick signal via a pulse width modulation (Pulse Width Modulation, PWM) technique.
After receiving the point report signal, the touch sensor 380K of the electronic device 102 may transmit the point report signal to the processor 310, where the processor 310 performs frequency domain conversion on the point report signal to obtain a frequency of the point report signal, determines a type of the point report signal according to the frequency of the point report signal, determines a pen point position of the accessory device 101 according to the point report signal, and further displays a corresponding handwriting effect at the pen point position or responds to a touch instruction corresponding to the pen point position.
If the accessory device 101 does not detect other pressure sensing information (hereinafter referred to as second pressure sensing information) within a first preset period of time before the first pressure sensing information is detected, the point signal sent by the accessory device 101 at the present time is determined to be a first point signal, and the accessory device 101 records a first time for sending the first point signal.
When the electronic device 102 receives the report signal, if no other report signal (hereinafter referred to as a second report signal) is received within a second preset time period before the current report signal (hereinafter referred to as a first report signal) is received, the electronic device 102 determines the action of receiving the first report signal as the first receiving report, and the electronic device 102 records a second time of first receiving the report.
The specific values of the first preset duration and the second preset duration can be set according to actual requirements. For example, according to studies, it is shown that when the user uses the accessory device 101 on different electronic devices 102, the switching time period consumed by the user to switch the use object of the accessory device 101 each time is typically greater than 500ms, and therefore, the first preset time period and the second preset time period may be set to 500ms.
And, the first preset duration may be consistent with the second preset duration, or the first preset duration may be inconsistent with the second preset duration. For example, the first preset time period and the second preset time period may each be set to 500ms; or the first preset time period may be set to 500ms and the second preset time period is set to 510ms.
Further, the electronic device 102 may periodically generate an upstream signal and transmit the upstream signal to the signal detection circuit 206 of the accessory device 101 through the third information channel described above.
The upstream signal is used to communicate the device number of the electronic device 102, and the accessory device 101 can determine whether the accessory 101 has been in proximity to the electronic device 102 by detecting the upstream signal. The electronic device 102 may generate the uplink signal according to a preset uplink signal generating manner. For example, the electronic device 102 may generate the uplink signal via direct sequence spread spectrum (Direct Sequence Spread Spectrum, DSSS) based techniques.
After receiving the uplink signal, the signal detection circuit 206 of the accessory device 101 transmits the uplink signal to the processor 201, and the processor 201 performs frequency domain conversion on the uplink signal to obtain the frequency of the uplink signal, and determines the type of the uplink signal according to the frequency of the uplink signal. The processor 201 may analyze the uplink signal to obtain the device number of the electronic device 102.
It should be noted that the second information channel and the third information channel may be two different information channels, where the second information channel and the third information channel are composed of different electrodes. Or the second information channel and the third information channel may be the same information channel, in which case the second information channel and the third information channel are composed of the same electrode.
When the second information channel and the third information channel are the same information channel, the accessory device 101 and the electronic device 102 transmit the report signal and the uplink signal through the same information channel.
After receiving the point signal, the electronic device 102 needs to determine the pen point position of the accessory device 101 according to the point signal, and render the handwriting effect at the pen point position. Accordingly, the accessory device 101 needs to communicate the pressure-sensitive information to the electronic device 102 so that the electronic device 102 renders handwriting effects according to the pressure-sensitive information.
For example, as shown in fig. 14, assuming that the accessory device 101 is a handwriting pen 1401, the electronic device 102 is a tablet computer 1402, when the handwriting pen 1011 is applied with different forces by a user to write on the tablet computer 1402, the pressure sensor 207 of the handwriting pen 1401 can detect different pressure information, the handwriting pen 1011 transmits the pressure information to the tablet computer 1402, the tablet computer 1402 renders the handwriting according to the thickness of the pressure information, and the larger the pressure information, the thicker the handwriting.
When a user uses the accessory device 101 on a plurality of electronic devices 102, it takes a certain switching period each time to switch the use object of the accessory device 101.
For example, as shown in fig. 15 and 16, at the initial time, the handwriting pen 1501 establishes a GATT connection channel with the tablet computer 1502 and the tablet computer 1503, and the tablet computer 1502 and the tablet computer 1503 send respective device numbers to the handwriting pen 1501. When a user uses the stylus 1501 on the tablet 1502, the tablet 1502 establishes HoGP connection channels with the stylus 1501. After that, when the user wants to use the stylus 1501 on the tablet computer 1503, the user can move the stylus 1501 from the tablet computer 1502 to the tablet computer 1503, and the stylus 1501 breaks the HoGP connection channel with the tablet computer 1502, maintains the GATT connection channel (basic data connection channel), and establishes a HoGP connection channel with the tablet computer 1503. While the process of moving the stylus 1501 from the tablet computer 1502 to the tablet computer 1503 by the user takes a certain time, i.e., a switching period.
Accordingly, accessory device 101 can determine whether a default device needs to be redetermined based on the first preset time period. The default device is the electronic device 102 that is currently paired with the accessory device 101. For example, when the first information channel is a BLE connection channel, the default device is the electronic device 102 that establishes HoGP connection channels with the accessory device 101.
If the accessory device 101 detects the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, the time interval between two adjacent times of detecting the pressure-sensitive information by the accessory device 101 is not enough for the user to switch the use object of the accessory device 101, the accessory device 101 does not switch the default device, and the pressure-sensitive signal is sent to the default device through the first information channel. The pressure sensing signal comprises first pressure sensing information, and the default device can render handwriting effects according to the first pressure sensing information.
If the accessory device 101 does not detect the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, it indicates that the target device may not be the default device. The target device is the electronic device 102 that the accessory device 101 is currently actually touching.
At this time, the accessory device 101 needs to identify the target device according to the target device number, pair with the target device, and set the target device as a new default device. The target device number is a device number of the target device, and the target device number may be obtained by analyzing the uplink signal by the accessory device 101.
When resolving the target device number, the accessory device 101 has the following cases:
2.1, the number of the target device is the device number of the default device, and in the verification device, only the default device is matched with the number of the target device.
The authentication device is the electronic device 102 that currently establishes a first information channel with the accessory device 101.
Since the device numbers of the respective electronic devices 102 may be the same device number, when the target device number is the device number of the default device, the target device may be the default device or the target device may not be the default device.
At this time, the accessory device 101 may acquire the device numbers (i.e., the above-described first device numbers) of the respective authentication devices, and determine whether there are a plurality of authentication devices whose device numbers match the target device number. Wherein the authentication device comprises a default device.
If only the device number of the default device matches the device number of the target device in the verification device, the target device is indicated as the default device. At this time, the accessory device 101 does not switch the default device, and transmits a pressure-sensitive signal to the default device.
The pressure sensing signal includes the first pressure sensing information. After the default device receives the first pressure-sensitive information, the handwriting effect of the pen point position can be rendered according to the first pressure-sensitive information.
2.2, The target device number is the device number of the default device, and a plurality of matching devices exist in the verification device, or the target device number is not the device number of the default device, but the matching devices exist.
The matching device is an authentication device that matches the target device number.
If the target device number is the default device number and there are a plurality of matching devices in the verification device, or if the target device number is a device number that is not the default device, but there is a matching device, the accessory device 101 cannot directly identify the target device from the matching device.
At this time, the accessory device 101 may transmit the first advisory information to the respective matching devices.
The content of the first consultation information may be set according to actual conditions. For example, the first advisory information may include a first point identification and a first time.
In some possible implementations, the accessory device 101 can send the first advisory information to each matching device synchronously via the first information channel.
After the matching device receives the first consultation information, the matching device can judge whether the last received report point signal is the first received report point or not, and calculate the deviation value of the second time and the first time recorded locally by the device.
If the last received report signal of the matching device is not the first received report, the matching device does not record the second time, or the deviation value is greater than or equal to the preset deviation threshold, the matching device returns the pairing failure information to the accessory device 101.
If the last received report point signal of the matching device is the first received report point and the deviation value is smaller than the preset deviation threshold, the matching device returns the pairing confirmation information to the accessory device 101.
The preset deviation threshold value can be set according to actual requirements. For example, in some embodiments, the user may set the preset deviation threshold to 2ms after statistics find that the sum of the time consumed by accessory device 101 to transmit the tick signal and the time consumed by electronic device 102 to process the tick signal is less than 2ms; or in other embodiments, the user may set the preset deviation threshold to a value of 1ms, 3ms, 5ms, etc. according to other influencing factors.
After the accessory device 101 can send the first consultation information to each of the matching devices, if the accessory device 101 receives the pairing confirmation information returned from any of the matching devices, the accessory device 101 confirms the matching device that sent the pairing confirmation information as a target device, pairs with the target device, and sets the target device as a new default device. For example, when the above-described first information channel is a BLE connection channel, after the accessory device 101 confirms the matching device that transmits the pairing confirm information as the target device, the accessory device 101 pairs with the target device, that is, the accessory device 101 establishes HoGP a connection channel with the target device, setting the target device as a new default device.
It should be noted that, in the process of engineering practice, it is difficult for the electronic device to accurately start executing multiple tasks at the same time, and if the time when the electronic device starts executing multiple tasks is within a certain error range, it may be considered that the electronic device starts executing multiple tasks synchronously. Accordingly, the accessory device 101 transmits the first advisory information to each of the matching devices synchronously, which means that the time when the accessory device 101 transmits the first advisory information to each of the matching devices is within a preset error range. The error range can be set according to the actual situation.
And (2) an application scene II:
Referring to fig. 17, in the scenario shown in fig. 17, accessory device 101 includes a stylus 1701, and electronic device 102 includes a tablet 1702, a tablet 1703, and a tablet 1704.
A bluetooth module 17011 is provided on the handwriting pen 1701; on the tablet 1702, a bluetooth module 17021 is provided; a bluetooth module 17031 is provided on the tablet computer 1703; on the tablet 1704, a bluetooth module 17041 is provided.
At a first moment, the stylus 1701 is paired with the tablet 1703, the stylus 1701 writes on the tablet 1703, and the bluetooth module 17011 of the stylus 1701 and the bluetooth module 17031 of the tablet 1703 establish a HoGP connection channel.
The bluetooth module 17011 of the handwriting pen 1701 establishes a GATT connection channel with the bluetooth module 17021 of the tablet 1702 and the bluetooth module 17041 of the tablet 1704, respectively.
As shown in fig. 18, at a second time, the stylus 1701 is moved to the tablet 1702 and, in response to a user operation, writes on the tablet 1702, contacting the tablet 1702.
When the stylus 1701 contacts the tablet 1702, the stylus 1701 sends a first report signal to the tablet 1702 via the second information channel, and the tablet 1702 sends an uplink signal to the stylus 1701 via the third information channel.
The pressure sensor 207 of the stylus 1701 detects the first pressure-sensitive information, and the stylus 1701 does not detect the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, so the stylus 1701 records a first time at which the first report signal is transmitted.
The tablet computer 1702 receives the first report point signal, and the tablet computer 1702 does not detect the second report point signal within a second preset time period before receiving the first report point signal, so the tablet computer 1702 determines that the first report point signal is received for the first time, and records a second time for the first time to receive the report point.
Since the stylus 1701 does not detect the second pressure-sensitive information within the first preset time period before the first pressure-sensitive information is detected, the stylus 1701 analyzes the uplink signal to obtain the target device number.
At this time, the stylus 1701 determines that the tablet 1702, the tablet 1703, and the tablet 1704 all match the target device number according to the target device number.
Therefore, the handwriting pen 1701 synchronously transmits the first consultation information to the tablet 1702, the tablet 1703 and the tablet 1704. The first advisory information includes a first point identification and a first time.
After receiving the first consultation information, the tablet computer 1702 detects that the last received report signal is the first received report, and obtains a second time, and subtracts the first time from the second time to obtain a deviation value of the second time and the first time.
The tablet 1702 detects that the deviation value is less than the preset deviation threshold, and returns pairing confirmation information to the stylus 1701.
After the tablet computer 1703 and the tablet computer 1704 receive the first consultation information, since the last received report signal of the tablet computer 1703 and the tablet computer 1704 is not the first received report, the tablet computer 1703 returns the pairing failure information to the handwriting pen 1701 and the tablet computer 1704 returns the pairing failure information to the handwriting pen 1701.
After receiving the pairing confirmation information sent by the tablet computer 1702, the handwriting pen 1701 determines the tablet computer 1702 as a target device, establishes HoGP a connection channel with the tablet computer 1702, sets the tablet computer 1702 as a new default device, and sends pairing indication information to the tablet computer 1702. After receiving the pairing instruction information, the tablet computer 1702 completes the pairing operation with the handwriting pen 1701.
After the pen 1701 establishes HoGP connection channels with the tablet computer 1702, the pen 1701 sends first pressure information to the tablet computer 1702, and the tablet computer 1702 renders handwriting effects according to the first pressure information.
In other possible implementations, accessory device 101 can determine a polling order for each matching device according to a first preset rule, and poll each matching device in turn according to the polling order.
The first preset rule can be set according to actual requirements. For example, in some embodiments, the first preset rule may be configured to determine the polling order of the respective matching devices according to the order from the near to the far, based on the time when the respective matching devices establish the first information channel with the accessory device 101. In other embodiments, the first preset rule may be set to order according to the time when each matching device is once set as the default device, and order according to the time when each matching device establishes the first information channel with the accessory device 101 when the matching device is not set as the default device, thereby determining the polling sequence of each matching device.
After determining the polling order of the respective matching apparatuses, the accessory apparatus 101 sequentially transmits the first advisory information to the respective matching apparatuses according to the polling order.
After the matching device receives the first consultation information, the matching device can judge whether the last received report point signal is the first received report point or not, and calculate the deviation value of the second time and the first time recorded locally by the device.
If the last received report signal of the matching device is not the first received report, the matching device does not record the second time, or the deviation value is greater than or equal to the preset deviation threshold, the matching device returns the pairing failure information to the accessory device 101.
If the last received report point signal of the matching device is the first received report point and the deviation value is smaller than the preset deviation threshold, the matching device returns the pairing confirmation information to the accessory device 101.
The accessory device 101 transmits the first advisory information to the next matching device according to the polling order if it receives the pairing failure information transmitted by the matching device.
The accessory device 101 stops polling if it receives the matching device transmission pairing confirmation information, determines the matching device that transmitted the pairing confirmation information as a target device, pairs with the target device, and sets the target device as a new default device.
And (3) an application scene III:
Referring to fig. 19, in the scenario shown in fig. 19, accessory device 101 includes a stylus 1901 and electronic device 102 includes a tablet 1902 and a tablet 1903.
A bluetooth module 19011 is provided on the stylus 1901; on the tablet 1902, a bluetooth module 19021 is provided; on the tablet 1903, a bluetooth module 19031 is provided.
At a third moment, the stylus 1901 is paired with the tablet 1903, the stylus 1901 writes on the tablet 1903, and a HoGP connection channel is established between the bluetooth module 19011 of the stylus 1901 and the bluetooth module 19031 of the tablet 1903.
The Bluetooth module 19011 of the stylus 1901 establishes a GATT connection channel with the Bluetooth module 19021 of the tablet 1902.
At a fourth time, the stylus 1901 is moved to the tablet 1902 and written on the tablet 1902 in response to a user's operation, in contact with the tablet 1902.
When the stylus 1901 contacts the tablet 1902, the stylus 1901 sends a first report signal to the tablet 1902 via the second information channel, and the tablet 1902 sends an uplink signal to the stylus 1901 via the third information channel.
The pressure sensor 207 of the stylus 1901 detects the first pressure-sensitive information, and the stylus 1901 does not detect the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, so the stylus 1901 records a first time at which the first report signal is transmitted.
The tablet 1902 receives the first report point signal, and the tablet 1902 does not detect the second report point signal within a second preset time period before receiving the first report point signal, so the tablet 1902 determines that the first report point signal is received for the first time, and records a second time for the first time to receive the report point.
Since the stylus 1901 does not detect the second pressure-sensitive information within the first preset time period before the first pressure-sensitive information is detected, the stylus 1901 analyzes the uplink signal to obtain the target device number.
At this time, the stylus 1901 determines, according to the target device number, that both the tablet 1902 and the tablet 1903 match the target device number.
Since there are multiple matching devices, the stylus 1901 determines the polling order of the tablet 1902 and the tablet 1903 according to a first preset rule.
The first preset rule is that the handwriting pen 1901 ranks according to the sequence from the near to the far according to the time when each matching device is set as the default device, and when the matching device of the default device is not set by the handwriting pen 1901, the first information channel is established according to the time when each matching device and the handwriting pen 1901 rank according to the sequence from the near to the far, so that the polling sequence of each matching device is determined.
Because the tablet 1903 is the default device that is currently paired with the stylus 1901, the order of polling of the tablet 1902 and the tablet 1903 is to interrogate the tablet 1903 first and then the tablet 1902.
Therefore, the stylus 1901 first sends the first advisory information to the tablet 1903. The first advisory information includes a first point identification and a first time.
As shown in fig. 20, after the tablet 1903 receives the first consultation information, it is detected that the last report point receiving signal of the tablet 1903 is not the first report point receiving signal, so the tablet 1903 returns the pairing failure information to the stylus 1901.
After receiving the pairing failure information returned by the tablet pc 1903, the stylus 1901 sends first consultation information to the tablet pc 1902 according to the polling sequence.
After receiving the first consultation information, the tablet computer 1902 detects that the last received report point signal is the first received report point, and obtains a second time, and subtracts the first time from the second time to obtain a deviation value of the second time and the first time.
As shown in fig. 21, when the tablet 1902 detects that the deviation value is smaller than the preset deviation threshold, the tablet 1902 returns pairing confirmation information to the handwriting pen 1901, and renders the handwriting effect according to the first pressure-sensitive information.
After receiving the pairing confirmation information sent by the tablet 1902, the stylus 1901 determines the tablet 1902 as a target device, establishes HoGP a connection channel with the tablet 1902, sets the tablet 1902 as a new default device, and sends pairing indication information to the tablet 1902. After receiving the pairing instruction information, the tablet 1902 completes the pairing operation with the handwriting pen 1901.
After the pen 1901 establishes HoGP connection channels with the tablet 1902, the pen 1901 sends first pressure-sensitive information to the tablet 1902, and the tablet 1902 renders handwriting effects according to the first pressure-sensitive information.
If the accessory device 101 interrogates all matching devices and no pairing confirm information has been received, this indicates that the target device may not turn on the wireless communication function, resulting in the accessory device 101 being unable to establish a first information channel with the target device.
At this time, the accessory device 101 may perform a preset prompting operation by which the user is prompted to turn on the wireless communication function of the target device.
The content of the preset prompting operation can be set according to actual conditions. Specifically, the preset prompting operation may be any one or a combination of a plurality of prompting modes such as vibration, sounding of a buzzer, voice broadcasting of a loudspeaker and the like.
For example, as shown in fig. 22, assume that the stylus 2201 is writing on the tablet 2202, and the tablet 2202 does not turn on the bluetooth function, resulting in the stylus 2201 not being able to find the target device. At this time, the stylus 2201 may alert the user to turn on the bluetooth function of the tablet 2202 by vibrating; or as shown in fig. 23, when the handwriting pen 2201 is provided with a buzzer, the handwriting pen 2201 can also control the buzzer to emit a 'beep' sound, so as to remind a user to start the bluetooth function of the tablet 2202; or as shown in fig. 24, when the stylus 2201 is provided with a speaker, the stylus 2201 may also control the speaker to broadcast "please turn on the bluetooth function", so as to remind the user to turn on the bluetooth function of the tablet 2202.
And application scene IV:
Referring to fig. 25, in the scenario shown in fig. 25, the accessory device 101 includes a stylus 2501 and a stylus 2502, and the electronic device 102 includes a mobile phone 2503 and a tablet 2504.
A bluetooth module 25011 is provided on the stylus 2501; a bluetooth module 25021 is provided on the stylus 2502; a bluetooth module 25031 is provided on the mobile phone 2503; on the tablet 2504, a bluetooth module 25041 is provided.
At the fifth moment, the stylus 2501 is paired with the mobile phone 2503, the stylus 2501 writes on the mobile phone 2503, and the bluetooth module 25011 of the stylus 2501 and the bluetooth module 25031 of the mobile phone 2503 establish HoGP connection channels.
The bluetooth module 25011 of the stylus 2501 establishes a GATT connection channel with the bluetooth module 25041 of the tablet computer 2504.
The stylus 2502 is paired with the tablet 2504, the stylus 2502 writes on the tablet 2504, and the bluetooth module 25021 of the stylus 2502 establishes HoGP connection channels with the bluetooth module 25041 of the tablet 2504.
The bluetooth module 25021 of the stylus 2502 establishes a GATT connection channel with the bluetooth module 25031 of the mobile phone 2503.
Thereafter, stylus 2501 is off handset 2503 and stylus 2502 is off tablet 2504.
As shown in fig. 26, at the sixth timing, the stylus 2502 is moved to the mobile phone 2503, and writing is performed on the mobile phone 2503 in response to the operation of the user, in contact with the mobile phone 2503.
When the stylus 2502 contacts the mobile phone 2503, the stylus 2502 sends a message point signal 1 to the mobile phone 2503 through the second information channel, and the mobile phone 2503 sends an uplink signal 1 to the stylus 2502 through the third information channel.
The pressure sensor of the stylus 2502 detects the pressure sensitive information 1, and the stylus 2502 does not detect other pressure sensitive information within a first preset time period before the pressure sensitive information 1 is detected, so the stylus 2502 records the time T1 at which the report point signal 1 is transmitted.
The mobile 2503 receives the report point signal 1, and the mobile 2503 does not detect other report point signals within a second preset time period before receiving the report point signal 1, so the mobile 2503 determines that the report point signal 1 is received for the first time, and records the time T2 when the report point is received for the first time.
Since the stylus 2502 does not detect other pressure-sensitive information within the first preset time period before the pressure-sensitive information 1 is detected, the stylus 2502 analyzes the uplink signal 1 to obtain the target device number 1.
At this time, the stylus 2502 determines that both the mobile phone 2503 and the tablet computer 2504 match the target device number 1 according to the target device number 1.
Thus, the stylus 2502 transmits the advisory information 1 to the mobile phone 2503 and tablet 2504. The advisory information 1 includes a head point identification and a time T1.
After receiving the advisory information 1, the mobile phone 2503 detects that the last received report signal is the received report signal 1, and the received report signal 1 is the first received report, so the mobile phone 2503 obtains the time T2, and subtracts the time T1 from the time T2 to obtain the first deviation value of the time T2 and the time T1.
When the mobile phone 2503 detects that the first deviation value is smaller than the preset deviation threshold value, the pairing confirmation information is returned to the handwriting pen 2503.
After receiving the consultation information 1, the tablet 2504 detects that the last received report point signal of the tablet 2504 is not the first received report point, so the tablet 2504 returns pairing failure information to the handwriting pen 2502.
After receiving the pairing confirm information sent by the mobile phone 2503, the handwriting pen 2502 determines the mobile phone 2503 as a target device, pairs with the mobile phone 2503, sets the mobile phone 2503 as a new default device, establishes HoGP a connection channel with the mobile phone 2503, and sends pairing instruction information to the mobile phone 2503. After receiving the pairing instruction information, the mobile phone 2503 completes the pairing operation with the handwriting pen 2502.
After the connection channel between the handwriting pen 2502 and the mobile phone 2503 is established HoGP, the handwriting pen 2502 sends the pressure sensitive information 1 to the mobile phone 2503, and the mobile phone 2503 renders handwriting effects according to the pressure sensitive information 1.
As shown in fig. 27, at the seventh time, the stylus 2501 is moved to the tablet 2504, and writing is performed on the tablet 2504 in response to an operation by the user, in contact with the tablet 2504.
When the stylus 2501 contacts the tablet 2504, the stylus 2501 sends a report signal 2 to the tablet 2504 through the ac connection channel, and the tablet 2504 sends an uplink signal 2 to the stylus 2501 through the ac connection channel.
The pressure sensor of the stylus 2501 detects the pressure-sensitive information 2, and the stylus 2501 does not detect other pressure-sensitive information within a first preset time period before the pressure-sensitive information 2 is detected, so the stylus 2501 records a time T3 at which the report point signal 2 is transmitted.
The tablet 2504 receives the report point signal 2, and the tablet 2504 does not detect other report point signals within a second preset time period before receiving the report point signal 2, so the tablet 2504 determines that the report point signal 2 is received for the first time, and records the time T4 when the report point is received for the first time.
Since the stylus 2501 does not detect other pressure-sensitive information within the first preset time period before the pressure-sensitive information 2 is detected, the stylus 2501 analyzes the uplink signal 2 to obtain the target device number 1.
At this time, the stylus 2501 determines that both the mobile phone 2503 and the tablet computer 2504 match the target device number 1 according to the target device number 1.
Therefore, the stylus 2501 transmits the consultation information 2 to the mobile phone 2503 and the tablet 2504 through the above. The advisory information 2 includes a head point identification and a time T3.
Since the handwriting pen 2502 writes on the mobile phone 2503, after receiving the consultation information 2, the mobile phone 2503 detects that the last received report point signal of the mobile phone 2503 is not the first received report point, and therefore the mobile phone 2503 returns the pairing failure information to the handwriting pen 2501.
After receiving the advisory information 2, the tablet 2504 detects that the last received report signal is the received report signal 2, and the received report signal 2 is the first received report, so the tablet 2504 obtains the time T4, and subtracts the time T3 from the time T4 to obtain the second deviation value of the time T4 and the time T3.
If the tablet 2504 detects that the second deviation value is less than the preset deviation threshold, it returns a pairing confirmation message to the stylus 2504.
After receiving the pairing confirmation information sent by the tablet computer 2504, the handwriting pen 2501 determines the tablet computer 2504 as a target device, pairs with the tablet computer 2504, sets the tablet computer 2504 as a new default device, establishes HoGP a connection channel with the tablet computer 2504, and sends pairing indication information to the tablet computer 2504. After receiving the pairing instruction information, the tablet 2504 completes the pairing operation with the pen 2501.
After the pen 2502 and the tablet 2504 establish HoGP connection channels, the pen 2502 sends the pressure-sensitive information 2 to the tablet 2504, and the tablet 2504 renders handwriting effects according to the pressure-sensitive information 2.
2.3, The target device number is not the device number of the default device, and no matching device is present in the verification device.
If the target device number is not the device number of the default device and no matching device exists in the verification devices, it indicates that the target device number does not match each verification device.
For example, assume that accessory device a has device number 1 and device number 2 stored therein.
Assume that accessory device a writes on the default device. The default device changes the device number from device number 1 to device number 3 and accessory device a is not notified. At this time, the accessory device a acquires the target device number as device number 3, but the accessory device a does not record device number 3, and therefore, the accessory device a determines that the target device number is not the device number of the default device, and that there is no matching device in the verification device.
Or the device number of the electronic device B is device number 3, and the electronic device B does not turn on the wireless communication function. At this time, the accessory device a writes on the electronic device B, and obtains the target device number as device number 3. But the electronic device B is not connected to the accessory device a and does not currently turn on the wireless communication function, and therefore, the accessory device a has not recorded the device number 3, so the accessory device determines that the target device number is not the device number of the default device, and that there is no matching device in the authentication device.
In some possible implementations, when the target device number does not match each verification device, accessory device 101 may not switch the default device, directly determine the current default device as the target device, and send a pressure-sensitive signal to the default device.
And after the default equipment receives the pressure sensing signal, rendering the handwriting effect according to the first pressure sensing information in the pressure sensing signal.
In other possible implementations, when the target device number does not match each verification device, the accessory device 101 may also perform a preset prompting operation, and prompt the user to turn on the wireless communication function of the target device through the preset prompting operation.
The content of the preset prompting operation can be set according to actual conditions. For example, the preset prompting operation may be any one or a combination of a plurality of prompting modes such as vibration, sounding of a buzzer, voice broadcasting of a loudspeaker and the like.
In summary, in the device pairing method provided in the present embodiment, when the accessory device 101 and the electronic device 102 are in contact, the electronic device 102 may transmit the uplink signal to the accessory device 101 through the third information channel. The uplink signal includes the target device number of the electronic device 102. The accessory device 101 can determine from the target device number whether a default device needs to be switched. When the accessory device 101 needs to switch the default device, the first consultation information may be sent to the corresponding electronic device 102 according to the target device number, so as to identify the target device, pair with the target device, and set the target device as a new default device. In the process of switching the paired default device by the accessory device 101, the accessory device 101 can automatically determine whether to switch the paired electronic device 102 and identify the target device, and the process does not need the user to actively execute specific pairing operation, so that the smoothness of switching the accessory device 101 to the use object is improved, the usability and the practicability are higher, and the use experience of the user is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Hereinafter, another device pairing method provided by the embodiment of the present application will be described in detail from the viewpoint of accessory devices. Referring to fig. 28, the device pairing method provided in this embodiment includes:
S2801, the accessory device contacts the electronic device.
When the accessory device is in contact with the electronic device, the pressure sensor of the accessory device detects the first pressure-sensitive information, and the signal transmitting circuit of the accessory device may establish a second information channel with the screen of the electronic device, and the signal detecting circuit of the accessory device may establish a third information channel with the screen of the electronic device.
At this time, the accessory device may send the first report signal to the electronic device through the second information channel, and the electronic device sends the uplink signal to the accessory device through the third information channel.
After the electronic equipment receives the first point signal, the position of the pen point can be determined according to the first point signal, and then the handwriting effect of the position of the pen point is rendered or a touch instruction corresponding to the position of the pen point is responded.
After the accessory device receives the uplink signal, the uplink signal can be parsed to obtain the target device number of the target device (i.e., the electronic device currently in contact with the accessory device).
S2802, the accessory device determines whether the second pressure-sensitive information is not detected within a first preset period of time before the first pressure-sensitive information is detected, if so, S2803 is executed, and if not, S2805 is executed.
When the accessory device detects the first pressure-sensitive information, it may be detected whether other pressure-sensitive information, i.e., the second pressure-sensitive information, has been detected within a first preset time period before.
If the accessory device detects the second pressure sensing information within a first preset time period before the first pressure sensing information is detected, the time interval that the accessory device detects the pressure sensing information twice is insufficient for a user to switch the using object of the accessory device, and the target device is an electronic device (namely a default device) which is paired with the accessory device currently. At this time, the accessory device executes S2805.
For example, assume that the accessory device has detected the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, and that the interval between the time when the accessory device detects the first pressure-sensitive information and the time when the second pressure-sensitive information is detected is 87ms,87ms being insufficient for the user to replace the object of use of the accessory device. At this time, the accessory device may determine that the user has not replaced the use object of the accessory device, and the target object is still the default device.
If the accessory device does not detect the second pressure-sensitive information within a first preset time period before the first pressure-sensitive information is detected, the target device is indicated as probably not being the default device.
For example, assume that the first preset time period is set to 500ms. If the accessory device does not detect the second pressure-sensitive information within 500ms before the first pressure-sensitive information is detected, the interval between the current time of using the accessory device by the user and the last time of using the accessory device by the user is enough for the user to replace the using object of the accessory device. At this time, the target device may still be the default device, i.e., the user is still using the accessory device on the same electronic device; or the target device may not be the default device, i.e., the user has moved the accessory device to another electronic device for use.
At this time, the accessory device records the first time at which the first pressure-sensitive information is detected, and performs S2803.
S2803, the accessory device determines whether the target device number can be obtained by analysis, if so, S2804 is executed, and if not, S2814 is executed.
If the accessory device does not detect the second pressure sensing information within a first preset time period before the accessory device detects the first pressure sensing information, the accessory device analyzes the uplink signal and judges whether the target device number can be obtained through analysis.
If the accessory device cannot parse to obtain the target device number, the target device may not start the accessory supporting function (such as a handwriting pen function), so the target device does not transmit the uplink signal to the accessory device, the accessory device cannot receive the uplink signal, and cannot parse the uplink signal to obtain the target device number. Thus, the accessory device executes S2814.
If the accessory device can parse the target device number, then S2804 is performed.
S2804, the accessory device determines whether or not there is a verification device matching the target device number, if yes, S2806 is executed, and if no, S2805 is executed.
The authentication device is an electronic device that currently establishes a first information channel with the accessory device. The authentication device includes a default device.
After the accessory device acquires the target device number, the accessory device may acquire the device number of each authentication device, and determine whether there is an authentication device matching the target device number. Wherein, the matching of the verification device and the target device means that the device number of the verification device is consistent with the number of the target device.
If there is an authentication device matching the target device number, the pairing device executes S2806.
If there is no authentication device matching the target device number, the accessory device executes S2805 without switching the default device.
S2805, the accessory device does not switch the default device.
In step S2805, the accessory device determines the current default device as the target device without switching the default device.
At this time, the accessory device may transmit the pressure-sensitive signal to the default device through the first information channel.
The pressure sensing signal comprises first pressure sensing information, and after the default equipment receives the pressure sensing signal, handwriting effect of the pen point position can be rendered according to the first pressure sensing information in the pressure sensing signal.
S2806, the accessory device determines whether the target device number is the device number of the default device, if so, S2807 is executed, and if not, S2808 is executed.
After the accessory device detects that the verification device matching the target device number exists, the accessory device can determine whether the target device number is the device number of the default device.
If the target device number is the device number of the default device, it indicates that the target device is likely to be the default device, at which point the accessory device executes S2807.
If the target device number is not the device number of the default device, it indicates that the target device is not the default device, at which point the accessory device executes S2808.
S2807, the accessory device determines whether only one matching device exists in the verification device, if so, S2805 is executed, and if not, S2809 is executed.
After determining that the target device number is the device number of the default device, the accessory device may determine whether only one matching device exists in the verification device. The matching device is an authentication device that matches the target device number.
Since the default device is also the authentication device, if there is only one matching device in the authentication device, it means that only the device number of the default device in the authentication device is the target device number.
At this time, the accessory device may determine that the target device is the default device, so the accessory device does not need to switch the default device, and S2805 is performed.
If there are multiple matching devices in the verification device, it means that the target device may or may not be the default device, and the accessory device cannot directly identify the target device from the matching devices.
At this point, the accessory device may execute S2809, asking for the default device preferentially.
S2808, the accessory device determines a polling sequence of each matching device according to a first preset rule, sequentially sends first consultation information to each matching device according to the polling sequence, and then executes S2811.
When the target device number is not the device number of the default device, or the target device number is the device number of the default device and there are multiple matches, the accessory device cannot directly identify the target device from the matching devices.
Therefore, the accessory device can determine the polling sequence of each matching device according to the first preset rule, sequentially send the first consultation information to each matching device according to the polling sequence, and identify the target device according to the information returned by the matching device.
The content of the first consultation information can be set according to actual conditions. For example, the first advisory information may include a first point identification and a first time.
The first preset rule can be set according to actual requirements. For example, in some embodiments, the first preset rule may be configured to determine the polling order of the respective matching devices according to the ordering in the order from the near to the far according to the time when the respective matching devices establish the first information channel with the accessory device. In other embodiments, the first preset rule may be set to order according to the time when each matching device is once set as the default device, and order according to the time when each matching device establishes the first information channel with the accessory device when the matching device is not set as the default device, so as to determine the polling sequence of each matching device.
S2809, the accessory device transmits the first advisory information to the default device, and then S2810 is performed.
When the target device number is the device number of the default device and a plurality of matching devices exist, the accessory device can send first consultation information to the default device to consult the default device preferentially.
Then, S2810 is performed to determine whether the default device is a target device according to the information returned from the default device.
S2810, the accessory device determines whether pairing failure information returned by the default device is received, if yes, S2808 is executed, and if no, S2805 is executed.
When the electronic device receives the first report point signal, if other report point signals, namely, the second report point signal, are not received within a second preset time period before the first report point signal is received, the electronic device can determine that the first report point signal is received for the first time, and record a second time when the first report point is received.
After receiving the first consultation information, the default device can inquire whether the last received report point signal is the first received report point.
If the last time the default device received the report point signal is the first time the default device receives the report point, the default device may calculate a deviation value between the second time and the first time in the first advisory information.
If the deviation value is less than the preset deviation threshold, the default device may return pairing confirmation information to the accessory device.
If the last received report point signal of the default device is not the first received report point, the default device does not record the second time, or the deviation value is greater than or equal to the preset deviation threshold, the default device can return pairing failure information to the accessory device.
Therefore, after the accessory device transmits the first consultation information, it can be determined whether pairing failure information transmitted by the default device is received.
If the accessory device receives the pairing failure information sent by the default device, it indicates that the target device is not the default device, at which point the accessory device performs S2808 to poll each matching device to identify the target device.
If the accessory device receives the default device transmission pairing confirm information, it indicates that the target device is the default device, at which point the accessory device does not need to switch the default device, and S2805 is performed.
S2811, the accessory equipment judges whether pairing confirmation information returned by the matching equipment is received, if yes, S2813 is executed, and if no, S2812 is executed.
After determining the polling sequence of each matching device, the accessory device may sequentially send the first advisory information to each matching device according to the polling sequence.
After the accessory device sends the first consultation information to the matching device each time, the accessory device can judge whether pairing confirmation information returned by the matching device is received. The pairing confirmation information carries a confirmation instruction.
If the accessory device receives the pairing confirm returned by the matching device, the accessory device performs S2813.
If the accessory device receives the pairing failure information returned by the matching device, the accessory device performs S2812.
S2812, the accessory device judges whether all the matched devices are polled, if yes, the S2814 is executed, and if not, the S2808 is executed.
After receiving the pairing failure information returned by the matching device, the accessory device can inquire whether all the matching devices have been polled.
If the accessory device does not poll all of the matching devices, the accessory device may return to S2808 to switch the next matching device according to the polling order, send the first advisory information to the next matching device, and continue to perform the interrogation operation.
If the accessory device has polled all matching devices, indicating that the target device is not in the verification device, at which point the accessory device may perform S2814, performing a preset prompting operation.
S2813, the accessory device sets the electronic device that transmits the pairing confirm information as a new default device.
If the accessory device receives the pairing confirmation information, the sender of the pairing confirmation information is the target device, the accessory device can be paired with the electronic device sending the pairing confirmation information, and the electronic device sending the pairing confirmation information is set as a new default device.
S2814, the accessory equipment executes a preset prompt operation.
The accessory device may perform a preset prompting operation to prompt the user to turn on the wireless communication function of the target device.
The content of the preset prompting operation can be set according to actual conditions. For example, the preset prompting operation may be any one or a combination of a plurality of prompting modes such as vibration, sounding of a buzzer, voice broadcasting of a loudspeaker and the like.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Hereinafter, another device pairing method provided in the embodiment of the present application will be described in detail from the viewpoint of an electronic device. Referring to fig. 29, the device pairing method provided in this embodiment includes:
S2901, the electronic equipment receives a first report signal;
When the accessory device is in contact with the electronic device, the pressure sensor of the accessory device detects the first pressure-sensitive information, and the signal transmitting circuit of the accessory device may establish a second information channel with the screen of the electronic device, and the signal detecting circuit of the accessory device may establish a third information channel with the screen of the electronic device.
At this time, the accessory device may send the first report signal to the electronic device through the second information channel, and the electronic device sends the uplink signal to the accessory device through the third information channel.
After the electronic equipment receives the first point signal, the position of the pen point can be determined according to the first point signal, and then the handwriting effect of the position of the pen point is rendered or a touch instruction corresponding to the position of the pen point is responded.
After the accessory device receives the uplink signal, the uplink signal can be analyzed to obtain the device number of the electronic device.
S2902, the electronic device judges whether the second report point signal is not received within a second preset time period before the first report point signal is received, if yes, S2905 is executed, and if not, S2903 is executed.
After receiving the first report signal, the electronic device may determine whether other report signals, that is, the second report signal, are received within a second preset duration before the first report signal is received.
If the electronic equipment detects the second report point signal in a second preset time period before the first report point signal is detected, the electronic equipment determines the first report point signal received this time as a non-first received report point. At this time, the electronic apparatus executes S2903.
If the electronic device does not detect the second report point signal within the second preset time period before the electronic device detects the first report point signal, the electronic device determines that the first report point signal is received this time as a first received report point, and executes S2905.
S2903, the electronic device receives the first consultation information carrying the first time, and then executes S2904.
When the electronic device receives the first advisory information carrying the first time if the latest received report point signal is the non-first received report point, the electronic device indicates that the accessory device transmitting the first advisory information is not the accessory device (hereinafter referred to as the contact device) currently in contact with the electronic device, and at this time, the electronic device executes S2904.
S2904, the electronic device sends the pairing failure information to the sender of the first advisory information.
When the electronic device is interrogated by an accessory device other than the contact device, the electronic device may send pairing failure information to the sender of the first advisory information, thereby informing the accessory device that the interrogated object is wrong.
S2905, the electronic device records the second time, and then executes S2906.
When the electronic device determines that the first report point signal is received as the first report point, the electronic device may record a second time when the first report point signal is received, so as to perform a verification operation subsequently.
S2906, the electronic device receives the first consultation information carrying the first time, and then executes S2907.
If the electronic device is queried by the accessory device in the case where the last received report point signal is the first received report point, the electronic device executes S2907.
S2907, the electronic equipment calculates the deviation value of the second time and the first time, judges whether the deviation value is smaller than a preset deviation threshold value, if yes, executes S2908, and if not, executes S2904.
If the electronic device receives the first consultation information under the condition that the last received report point signal is the first received report point, the electronic device can execute verification operation on the first consultation information, calculate the deviation value of the second time and the first time, and judge whether the deviation value is smaller than the preset deviation threshold value.
If the deviation value is smaller than the preset deviation threshold value, it indicates that the accessory device that transmitted the first advisory information is a contact device, at which point the electronic device executes S2908.
If the deviation value is greater than or equal to the preset deviation threshold, it indicates that the accessory device transmitting the first advisory information is not a contact device, at which time the electronic device performs S2904 to transmit pairing failure information to the sender of the first advisory information.
S2908, the electronic device transmits the pairing confirm information to the sender of the first advisory information.
If the deviation value is smaller than the preset deviation threshold value, the electronic device can send the pairing confirmation information to the sender of the first consultation information.
After receiving the pairing confirmation information, the sender of the first consultation information confirms the electronic device as a pairing device, and at this time, the sender of the first consultation information can reply the pairing indication information to the electronic device.
And the electronic equipment receives the pairing instruction information and finishes pairing with the sender of the first consultation information.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Hereinafter, another device pairing method provided by the embodiment of the present application will be described in detail from the viewpoint of accessory devices. Referring to fig. 30, the device pairing method provided in this embodiment includes:
s3001, receiving a first signal by the accessory device through a first communication connection, wherein the first signal comprises a target device number, and the first communication connection is established between an electronic device which is in contact with the accessory device and the accessory device currently;
S3002, the accessory equipment matches the target equipment number with a first equipment number, determines the electronic equipment corresponding to the first equipment number consistent with the target equipment number as the target equipment, and the first equipment number is the equipment number of the electronic equipment which establishes wireless connection with the accessory equipment;
s3003, pairing the accessory equipment with the target equipment.
In the device pairing method provided in this embodiment, the accessory device obtains a first signal through the first communication connection, where the first signal includes the target device number. Then, the accessory device matches the target device number with each first device number, thereby determining the target device corresponding to the target device number. After the target device is determined, the accessory device is paired with the target device.
By the device pairing method, the accessory device can automatically identify the target device and pair, a user does not need to actively execute specific pairing operation, smoothness of switching the accessory device to a used object is improved, usability and practicability are high, and use experience of the user is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable storage medium may include content that is subject to appropriate increases and decreases as required by jurisdictions and by jurisdictions in which such computer readable storage medium does not include electrical carrier signals and telecommunications signals.
Finally, it should be noted that: the foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (11)
1. A device pairing method, applied to an accessory device, the method comprising:
The accessory device receives a first signal through a first communication connection, wherein the first signal comprises a target device number, and the first communication connection is a communication connection established between an electronic device which is in contact with the accessory device and the accessory device currently;
If the accessory equipment detects that the pressure sensor collects first pressure sensing information and the accessory equipment does not detect second pressure sensing information within a preset time period before the first pressure sensing information is detected, the accessory equipment matches the target equipment number with a first equipment number, an electronic equipment corresponding to the first equipment number consistent with the target equipment number is determined to be the target equipment, and the first equipment number is the equipment number of the electronic equipment which establishes wireless connection with the accessory equipment; the first pressure sensing information is currently detected by the pressure sensor; the second pressure sensing information is pressure sensing information except the first pressure sensing information;
pairing the accessory device to the target device;
the determining the electronic device corresponding to the first device number consistent with the target device number as the target device includes:
If the number of the matching devices is greater than 1 or the number of the target device is inconsistent with the device number of the default device, the accessory device sends first consultation information to each matching device through the wireless connection, the matching device is an electronic device corresponding to the first device number consistent with the number of the target device, and the default device is an electronic device currently paired with the accessory device; the first consultation information comprises a first point identifier and a first time, and the matching equipment determines whether to return pairing confirmation information or not based on the first consultation information;
When the accessory equipment receives the pairing confirmation information, the accessory equipment determines the matching equipment sending the pairing confirmation information as target equipment, wherein the pairing confirmation information is fed back by the target equipment after receiving the first consultation information.
2. The device pairing method of claim 1, further comprising:
if the accessory device detects that the pressure sensor collects the first pressure sensing information and the accessory device detects the second pressure sensing information within a preset time period before the first pressure sensing information is detected, the accessory device determines default equipment as the target device, and the default equipment is electronic equipment paired with the accessory device at present.
3. The device pairing method of claim 1, wherein the determining the electronic device corresponding to the first device number that corresponds to the target device number as the target device comprises:
If the number of the matching devices is 1 and the matching devices are default devices, the accessory device determines the default devices as target devices, the matching devices are electronic devices corresponding to first device numbers consistent with the target device numbers, and the default devices are electronic devices currently paired with the accessory device.
4. The device pairing method of claim 1, wherein the accessory device transmits first advisory information to each of the matching devices over the wireless connection, comprising:
the accessory equipment determines the polling sequence of each matched equipment according to a first preset rule;
And the accessory equipment sequentially sends the first consultation information to each matching equipment through the wireless connection according to the polling sequence.
5. The device pairing method of claim 1, further comprising, after the accessory device matches the target device number with a first device number:
and if the pairing is failed, the accessory equipment executes a preset prompting operation.
6. The device pairing method of claim 1, further comprising, prior to the accessory device receiving the first signal over the first communication connection:
and the accessory equipment receives and stores equipment numbers sent by the electronic equipment through the wireless connection.
7. The device pairing method of claim 1, wherein the wireless connection is a bluetooth connection;
pairing the accessory device to the target device, comprising:
the accessory device establishes HoGP a connection channel with the target device according to a human interface device interaction protocol HoGP based on the generic properties.
8. A device pairing system, the system comprising at least one accessory device and at least one electronic device;
the accessory device is adapted to perform the steps of the method of any of claims 1 to 7 when the accessory device is in contact with the electronic device.
9. An accessory device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
11. A chip system comprising a memory and a processor executing a computer program stored in the memory to implement the method of any one of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010731578.XA CN113993109B (en) | 2020-07-27 | 2020-07-27 | Device pairing method, system, accessory device and computer readable storage medium |
PCT/CN2021/107443 WO2022022342A1 (en) | 2020-07-27 | 2021-07-20 | Device pairing method and system, and accessory device and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010731578.XA CN113993109B (en) | 2020-07-27 | 2020-07-27 | Device pairing method, system, accessory device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113993109A CN113993109A (en) | 2022-01-28 |
CN113993109B true CN113993109B (en) | 2024-07-05 |
Family
ID=79731438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010731578.XA Active CN113993109B (en) | 2020-07-27 | 2020-07-27 | Device pairing method, system, accessory device and computer readable storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113993109B (en) |
WO (1) | WO2022022342A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114217701B (en) * | 2022-02-22 | 2022-07-12 | 荣耀终端有限公司 | Electronic equipment connection method and electronic equipment |
CN116017390A (en) * | 2022-11-04 | 2023-04-25 | 深圳市正浩创新科技股份有限公司 | Wireless communication method, electronic device, and computer storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9632597B2 (en) * | 2014-06-12 | 2017-04-25 | Amazon Technologies, Inc. | Configurable active stylus devices |
US20160252954A1 (en) * | 2015-02-27 | 2016-09-01 | Microsoft Technology Licensing, Llc | Control apparatus |
US10242235B2 (en) * | 2016-09-27 | 2019-03-26 | International Business Machines Corporation | Authentication of a smart pen and computing device |
US10564741B2 (en) * | 2017-10-19 | 2020-02-18 | Microsoft Technology Licensing, Llc | Active stylus pairing with a digitizer |
US10719148B2 (en) * | 2018-07-10 | 2020-07-21 | Microsoft Technology Licensing, Llc | Coupling a pen device to a companion device based on pen proximity |
-
2020
- 2020-07-27 CN CN202010731578.XA patent/CN113993109B/en active Active
-
2021
- 2021-07-20 WO PCT/CN2021/107443 patent/WO2022022342A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022022342A1 (en) | 2022-02-03 |
CN113993109A (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10956280B2 (en) | Data backup method, electronic device, and storage medium | |
RU2628488C2 (en) | Method, terminal device and server for nfc data transfer | |
CN104852885B (en) | Method, device and system for verifying verification code | |
EP4005257B1 (en) | Electronic device sharing peripheral device with external electronic device and method thereof | |
US20160147293A1 (en) | Device and method for controlling a plurality of input/output devices | |
CN113329379A (en) | Communication method, device and system based on NFC | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN113993109B (en) | Device pairing method, system, accessory device and computer readable storage medium | |
JP2016504715A (en) | Battery, battery protection method, battery protection device, battery protection system, program, and recording medium therefor | |
CN114827972B (en) | Method for establishing connection with stylus pen and electronic equipment | |
US11048655B2 (en) | NFC pressure test method and system based on mobile terminal and storage device | |
CN115033313A (en) | Terminal application control method, terminal equipment and chip system | |
US11740681B2 (en) | Electronic device and application managing method thereof | |
CN111557097A (en) | Control method of power key in virtual remote controller and terminal | |
KR20170011861A (en) | Mobile terminal and method for controlling the same | |
CN114816463A (en) | Upgrade prompting method, terminal device and computer readable storage medium | |
CN115113747B (en) | Touch pen using method and system and touch pen | |
CN114339591A (en) | Method for positioning based on ultra-wideband chip and related device | |
CN114003137B (en) | Method, device and system for controlling information input equipment on terminal | |
CN117157613A (en) | Electronic device for performing a capture function and method for operating an electronic device | |
CN108009172B (en) | File three-dimensional display method and device and terminal | |
CN113467961A (en) | Copy and paste method, electronic equipment and system | |
WO2023020022A1 (en) | Stylus connection method and electronic device | |
CN116737000B (en) | Touch control method, system, electronic equipment and touch control pen | |
CN117135729B (en) | Multi-device cooperation method, system and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |