WO2023103797A1 - Human-machine interaction method, and electronic device and medium thereof - Google Patents

Human-machine interaction method, and electronic device and medium thereof Download PDF

Info

Publication number
WO2023103797A1
WO2023103797A1 PCT/CN2022/134054 CN2022134054W WO2023103797A1 WO 2023103797 A1 WO2023103797 A1 WO 2023103797A1 CN 2022134054 W CN2022134054 W CN 2022134054W WO 2023103797 A1 WO2023103797 A1 WO 2023103797A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
stylus
magnetic flux
relative
tablet computer
Prior art date
Application number
PCT/CN2022/134054
Other languages
French (fr)
Chinese (zh)
Inventor
肖冬
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023103797A1 publication Critical patent/WO2023103797A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/005Mechanical details of housing or structure aiming to accommodate the power transfer means, e.g. mechanical integration of coils, antennas or transducers into emitting or receiving devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/10Circuit arrangements or systems for wireless supply or distribution of electric power using inductive coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/60Circuit arrangements or systems for wireless supply or distribution of electric power responsive to the presence of foreign objects, e.g. detection of living beings
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/80Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/90Circuit arrangements or systems for wireless supply or distribution of electric power involving detection or optimisation of position, e.g. alignment
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00036Charger exchanging data with battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0068Battery or charger load switching, e.g. concurrent charging and load supply

Definitions

  • the present application relates to the technical field of terminals, and in particular to a human-computer interaction method, electronic equipment and media thereof.
  • the stylus 200 is magnetically accommodated on the tablet computer 100 in the manner shown in FIG.
  • the tablet computer 100 will display the current power level of the stylus 200, but the prompt to the user is limited to this.
  • the stylus 200 may generate heat during charging because it is not aligned with the magnetic charging position, which is not conducive to the maintenance of the battery of the stylus 200 and further affects the service life of the stylus 200 .
  • the present application provides a human-computer interaction method, electronic equipment and its medium.
  • a position mark will be displayed on the tablet computer, which can indicate the relative position change of the stylus relative to the magnetic charging position of the tablet computer, so that The user can adjust the position of the stylus or the tablet according to the position mark, so that the stylus can be aligned with the magnetic charging position of the tablet for full power charging, avoiding the heat generated during magnetic charging under misalignment.
  • the present application provides a human-computer interaction method, which is applied to a first electronic device and a second electronic device, and the method includes: detecting that the first electronic device is located in a magnetic field provided by the second electronic device; Determine the relative position changes between the first electronic device and the second electronic device based on the obtained changes in the magnetic flux at multiple different positions on the first electronic device; The corresponding display content on the device.
  • the first electronic device or the second electronic device may detect whether the first electronic device is located in the magnetic field provided by the second electronic device through a Hall sensor provided on the first electronic device.
  • the magnetic flux of the second electronic device's magnetic field passing through the first electronic device will change, so it can pass through multiple different positions on the first electronic device Hall sensors are installed at different positions, and the change of the relative position of the first electronic device relative to the second electronic device is judged according to the change of the magnetic flux collected by the Hall sensors at multiple different positions, and according to the relative position change of the first electronic device relative to the second electronic device,
  • the relative position change of the second electronic device determines the corresponding display content on the first electronic device or the second electronic device.
  • the first electronic device or the second electronic device can display the relative position change of the first electronic device relative to the second electronic device to the user in a visual form, so that the user can to adjust the position of the first electronic device or the second electronic device.
  • the user can align the first electronic device with the standard charging position of the second electronic device (or hereinafter referred to as Magnetic charging position) for full power charging.
  • the magnetic field provided by the second electronic device can be used to charge the first electronic device, and according to the determined relative position change, determine the The corresponding display content on an electronic device or a second electronic device includes: when the second electronic device is in the state of charging the first electronic device, on the first electronic device or the second electronic device, displaying that the first electronic device A first indication of a relative position with respect to the second electronic device.
  • the first electronic device when the first electronic device is in the magnetic field of the second electronic device, the first electronic device is not necessarily in a charging state.
  • the first electronic device can detect the magnetic field of the second electronic device, the distance between the first electronic device and the second electronic device The distance between them, the received magnetic flux is not enough for charging. Therefore, in some embodiments, whether the second electronic device is in the state of charging the first electronic device can be determined according to the relationship between the magnetic flux in the first electronic device and the preset first magnetic flux. For example, when the magnetic flux in the first electronic device is greater than or equal to the preset first magnetic flux, it indicates that the second electronic device is in a state of charging the first electronic device. When the magnetic flux in the first electronic device is smaller than the preset first magnetic flux, it indicates that the second electronic device is not in the state of charging the first electronic device.
  • the specific judgment method will be introduced in the specific embodiment section below, and will not be repeated here.
  • the first sign indicates the relative position of the first electronic device relative to the second electronic device, so as long as the second electronic device is charging the first electronic device, the first electronic device or the second electronic device will display the first mark, regardless of whether the first electronic device is aligned with the standard charging position of the second electronic device.
  • determining the corresponding display content on the first electronic device or the second electronic device includes: : The moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device.
  • the first mark may move along the moving direction of the first electronic device relative to the second electronic device. For example, if the first electronic device moves to the right relative to the second electronic device, the first sign also moves to the right, and then when the user adjusts the first electronic device to align with the standard charging position of the second electronic device, It is only necessary to move the first electronic device in a direction opposite to the direction in which the first sign moves.
  • the moving direction of the first sign can also be opposite to the moving direction of the first electronic device relative to the second electronic device.
  • the first electronic device needs to be moved in the same direction as the moving direction of the first sign.
  • determine the corresponding display content on the first electronic device or the second electronic device and further include:
  • On the first electronic device or the second electronic device display the second mark of the standard charging position of the first electronic device relative to the second electronic device, wherein the position of the second mark is between the first electronic device and the second electronic device remain unchanged during the move.
  • a second sign indicating that the first electronic device is aligned with the standard charging position of the second electronic device can also be displayed at the same time, and the position and shape of the second sign remain unchanged during the movement of the first electronic device relative to the second electronic device, To play a role similar to position calibration.
  • the first logo and the second logo are simultaneously displayed on the first electronic device or the second electronic device, and the user can The relative position of the mark is used to adjust the position of the first electronic device or the second electronic device more accurately, so that the first electronic device can be aligned with the standard charging position of the second electronic device.
  • the positions of the first mark and the second mark are coincident, and at this time the second mark can be mainly displayed, or The first logo may be mainly displayed.
  • the first logo and the second logo have the same shape and different colors. This allows the user to distinguish between the first location and the second location. It can be understood that, in some embodiments, the first logo and the second logo may also have different shapes and different colors, or the first logo and the second logo may also have different shapes and the same color, and this application does not make any limit.
  • the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, including: When the first electronic device moves left or right relative to the second electronic device, the first sign moves left or right relative to the second sign.
  • the second mark is the position mark when the first electronic device is aligned with the standard charging position of the second electronic device
  • the first mark is a mark indicating the position change of the first electronic device relative to the second electronic device
  • the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, so when the first electronic device moves left or right relative to the second electronic device, the first sign will be opposite to the second electronic device. Move left or right at the second sign.
  • the first electronic device includes a stylus
  • the second electronic device includes a tablet computer
  • the first electronic device includes a watch
  • the second electronic device includes a charging device for the watch.
  • the movement of the first electronic device relative to the second electronic device may not be a translation such as left, right, up, or down, and the first electronic device may move relative to the second electronic device. rotate.
  • the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, including :
  • the first electronic device rotates clockwise or counterclockwise relative to the second electronic device: the first logo rotates clockwise or counterclockwise relative to the second logo, or the first logo rotates around the first electronic device or
  • the center of the screen of the second electronic device is a circle with a center, and the circle moves clockwise or counterclockwise.
  • determining the corresponding display content on the first electronic device or the second electronic device includes: : When the first electronic device is away from the second electronic device and enters an uncharged state, the movement direction of at least one icon displayed on the desktop is the same as or opposite to the movement direction of the first electronic device relative to the second electronic device. Wherein, in some embodiments, it can be judged that the first electronic device is far away from the second electronic device and enters an uncharged state based on the relationship between the magnetic flux in the first electronic device and the preset first magnetic flux and the preset second magnetic flux. That is, the first electronic device is in an uncharged state and the first electronic device has not been separated from the second electronic device.
  • the icon on the desktop of the first electronic device or the second electronic device can also be changed as the user picks up the first electronic device.
  • the relative position changes so that the user can control the direction of picking up the first electronic device according to the requirement, so as to select and click the corresponding icon to start the corresponding application.
  • the mentioned icons may be directly displayed on the desktop, or may be displayed on the desktop in the form of a shortcut application menu, which is not limited in the present application.
  • the movement direction of at least one icon displayed on the desktop is the same as that of the first electronic device relative to the second electronic device.
  • the moving directions are the same, including: when it is detected that the first electronic device moves left or right relative to the second electronic device, at least one icon displayed on the desktop moves left or right.
  • the movement of icons will be specifically introduced below in conjunction with FIG. 11 .
  • the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device
  • the direction is the same, including: when the clockwise or counterclockwise rotation of the first electronic device relative to the second electronic device is detected: at least one icon displayed on the desktop revolves around the center of the screen of the first electronic device or the second electronic device A circle with the center as the center, travels clockwise or counterclockwise.
  • the movement of the icons designed in this part will be introduced below in conjunction with FIG. 12 to FIG. 14 .
  • the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device
  • the opposite direction includes: when it is detected that the first electronic device moves left or right relative to the second electronic device, at least one icon displayed on the desktop moves right or left.
  • the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device The direction is opposite, including: when it is detected that the first electronic device rotates clockwise or counterclockwise relative to the second electronic device: at least one icon displayed on the desktop revolves around the center of the screen of the first electronic device or the second electronic device For the circle with the center, travel counterclockwise or clockwise.
  • the first electronic device or the second electronic device can During the process of picking up the first electronic device, the relative position of the first electronic device relative to the second electronic device changes, and different application option menus are displayed.
  • the display rules of the respective application icons in the different shortcut application menus may be similar to the moving direction of the icons described above.
  • the first shortcut application option menu is displayed on the first electronic device; when the user picks up the first electronic device to the left relative to the second electronic device , the second shortcut application option menu is displayed on the first electronic device, and each application icon in the second shortcut application option menu moves to the left relative to the application icon in the first shortcut application option menu.
  • the determined relative position change determines the corresponding display content on the first electronic device or the second electronic device , including: when the first electronic device is far away from the second electronic device and enters an uncharged state, displaying an application option menu corresponding to the relative position change, where the application option menu includes icons of multiple applications.
  • the plurality of application icons in the application option menu corresponding to the relative position change may be partly the same. Among them, this part of the content will be specifically introduced below in conjunction with FIG. 11 .
  • the first electronic device includes a stylus
  • the multiple different positions on the first electronic device include: the first electronic device of the stylus One end and the second end; and by obtaining changes in the magnetic flux at multiple different positions on the first electronic device, determine the relative position change between the first electronic device and the second electronic device, including: the magnetic flux at the first end
  • determine that the stylus is aligned with the standard charging position of the second electronic device; when the difference between the magnetic flux of the first end and the magnetic flux of the second end is greater than the preset difference
  • it is determined that the first end of the stylus is closer to the standard charging position than the second end; when the difference between the magnetic flux of the first end and the magnetic flux of the second end is less than the preset difference, it is determined that the second end of the stylus is closer to the charging position. It is closer to the standard charging position than the
  • the first electronic device includes a watch; and the multiple different positions on the first electronic device include: a first electronic device located around the watch A position and a second position, the first position is in the counterclockwise direction of the second position, and the angle between the line connecting the first position and the center of the watch and the line connecting the second position and the center of the watch is less than 180 degrees; and through the acquired The variation of the magnetic flux at multiple different positions on the first electronic device, determining the relative position of the first electronic device and the second electronic device, including: the difference between the magnetic flux at the first position and the magnetic flux at the second position is equal to a preset difference value, it is determined that the watch is aligned with the standard charging position of the second electronic device; when the difference between the magnetic flux at the first position and the magnetic flux at the second position is greater than the preset difference, it is determined that the watch is aligned with the second electronic device along the charging position. Moving in a clockwise direction; when the difference between the magnetic flux at the first position and the magnetic flux at the second position is greater than the prese
  • an embodiment of the present application provides an electronic device, where the electronic device includes a memory for storing instructions executed by one or more processors of the electronic device, and
  • the processor is one of the processors of the electronic device, configured to execute the first aspect and the human-computer interaction method in various possible implementation manners of the first aspect.
  • the embodiment of the present application provides a computer-readable storage medium, and instructions are stored in the computer-readable medium, and it is characterized in that, when the instructions are executed on the electronic equipment, the electronic equipment executes the above-mentioned first aspect and the first aspect Various possible implementations of human-computer interaction methods.
  • the embodiment of the present application provides a computer program product, which, when the computer program product runs on the electronic device, causes the electronic device to execute the above-mentioned first aspect and the human-computer interaction method of various possible implementation modes of the first aspect .
  • Fig. 1 is a schematic diagram of a magnetic suction charging scene of a stylus provided by some embodiments
  • Fig. 2 is a schematic diagram of the change of magnetic flux in a stylus provided by some embodiments
  • Fig. 3 is a schematic diagram of changes in magnetic flux in a stylus provided by some embodiments.
  • Fig. 4 is a schematic diagram of user interface (user interface, UI) change of an example tablet computer provided by some embodiments for prompting the charging position of the stylus;
  • Fig. 5 is a schematic diagram of charging a smart watch provided by some embodiments.
  • Fig. 6 is a schematic diagram of UI changes of an example of a smart watch providing charging location prompts provided by some embodiments
  • Fig. 7 is a schematic structural diagram of tablet computer software implementing the method of the present application provided by some embodiments.
  • Fig. 8 is a schematic diagram of the interaction between tablet computer software structures when implementing the method of the present application provided by some embodiments;
  • Fig. 9 is a schematic flowchart of an example of the applicant's computer interaction method provided by some embodiments.
  • Fig. 10 is a schematic diagram of UI changes of an example of launching a shortcut application on a tablet computer provided by some embodiments;
  • Fig. 11 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
  • Fig. 12 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
  • Fig. 13 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
  • Fig. 14 is a schematic diagram of a tablet computer displaying a shortcut application option menu UI provided by some embodiments;
  • Fig. 15 is a schematic diagram of the interaction between tablet computer software structures when implementing the method of the present application provided by some embodiments;
  • Fig. 16 is a schematic flowchart of a method for displaying a shortcut application option menu on a tablet computer provided by some embodiments;
  • Fig. 17 is a schematic diagram of the hardware structure of a stylus provided by some embodiments.
  • Fig. 18 is a schematic diagram of a hardware structure of a tablet computer provided by some embodiments.
  • the embodiment of the present application provides a human-computer interaction method.
  • the tablet computer 100 when the user magnetically attaches the stylus 200 to the tablet computer 100 for charging, the tablet computer 100 not only indicates the battery level, but also indicates whether the stylus 200 is aligned with the magnetic charging position and whether it is aligned with the magnetic attraction.
  • the prompt of the relative position of the charging position is to prompt the user to adjust the position of the stylus 200 so that it can be charged at the magnetic charging position, so as to avoid the heating phenomenon that occurs when the stylus 200 is not aligned with the magnetic charging position for charging, which is beneficial
  • the maintenance of the stylus 200 battery improves the service life of the stylus 200.
  • the tablet computer 100 determines that the stylus 200 is in the magnetic charging state, according to the difference between the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 and the preset first The difference determines the position of the stylus 200 relative to the magnetic charging location.
  • the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right, and the stylus 200 is moving toward the magnetic charging position relative to the magnetic attraction.
  • the preset first difference is the difference between the left and right magnetic flux in the magnetic coil of the stylus 200 when the stylus 200 is aligned with the magnetic charging position for charging, and the preset first difference can be 0, for example.
  • the magnetic flux WL on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux WR on the right side, that is, (WL-WR) is greater than ⁇ W, which can indicate that the stylus 200 is relatively magnetically charged. 200' offset right.
  • the tablet computer 100 After determining the relative position of the stylus 200 and the magnetic charging position 200 ′, the tablet computer 100 displays the position prompt information corresponding to the relative position, so that the user can adjust the position of the stylus 200 according to the prompt information until the stylus 200 is in contact with the magnetic attraction.
  • the charging position is aligned. For example, when the stylus 200 deviates to the left relative to the magnetic charging position 200 ′, the tablet computer 100 displays a position mark deviated to the left; when the stylus 200 deviates to the right relative to the magnetic charging position 200 ′, the tablet 100 Shows position markers offset to the right.
  • the tablet computer 100 can determine whether the stylus 200 is in the magnetic charging state according to the magnitude relationship between the magnetic flux in the magnetic coil of the stylus 200 and the preset first magnetic flux.
  • the preset magnetic first flux may be the magnetic flux at a certain moment when the stylus 200 is magnetically charged before the stylus 200 is completely separated from the tablet computer 100 , and the preset first magnetic flux may be W0, for example.
  • the size of the magnetic flux in the magnetic coil of the stylus 200 in Figure 3(A) is W4, which is less than the preset first magnetic flux W0, then the stylus 200 and the tablet The computer 100 is separated, that is, the stylus 200 is not in the magnetic charging state.
  • the magnetic flux in the magnetic coil of the stylus 200 is W5, which is greater than the preset first magnetic flux W0, and the stylus 200 is in the magnetic charging state.
  • the tablet computer 100 can also determine whether the stylus 200 is in the magnetic charging state through the proximity light sensor.
  • the stylus 200 and the tablet computer 100 are in the magnetic charging state.
  • the tablet computer 100 determines that the stylus 200 and the tablet computer 100 are in the separated state through the proximity light sensor, it is determined that the stylus 200 and the tablet computer 100 are not in the magnetic charging state.
  • the present application does not limit the manner in which the tablet computer 100 determines whether the stylus 200 is in the magnetic charging state.
  • the applicant's computer interaction method will be described below by taking the relationship between the magnitude of the magnetic flux in the magnetic coil of the stylus 200 and the preset first magnetic flux magnitude to determine whether the stylus 200 is in the magnetic charging state as an example.
  • the "left” and “right” in the left and right sides of the above-mentioned stylus 200 are relative terms, which depend on the phase placement position of the stylus 200 and the tablet computer 100. In other embodiments, the stylus may also be 200 up and down sides, and so on.
  • the applicant's computer interaction method can be applied to various electronic devices that support magnetic charging, including stylus, such as smart watches, smart phones, smart rings, smart headphones, smart speakers, smart sweeping robots, etc.
  • stylus such as smart watches, smart phones, smart rings, smart headphones, smart speakers, smart sweeping robots, etc.
  • This application does not impose any limitation on the specific type of electronic equipment.
  • the applicant's computer interaction method is introduced by using the tablet computer 100 as the stylus 200 for magnetic charging.
  • FIG. 4 shows a schematic diagram of changes in the UI of the stylus 200 performing magnetic charging under the computer interaction method of the present applicant.
  • a pop-up window 110 will pop up on the display interface of the tablet computer 100, and the handwriting will be displayed in the pop-up window 110 simultaneously.
  • the above-mentioned pop-up window 110 can disappear after being displayed for a preset duration, so as to avoid affecting other operations of the user by being displayed for a long time.
  • the present application does not limit the display duration of the pop-up window 110 .
  • the user places the stylus 200 at the position shown in FIG. 4(B) for magnetic charging.
  • the stylus 200 deviates to the right relative to the above-mentioned magnetic charging position 200 ′, and the pop-up window 110 will display
  • the stylus 200 deviates to the right from the position mark 103 of the magnetic charging position, and in order to prompt the user to adjust the position of the stylus 200 to the left, the pop-up window 110 will still display the dotted position mark 101 .
  • the user adjusts the position of the stylus 200 according to the position mark 101 and the position mark 103, and aligns it with the magnetic charging position, as shown in FIG. .
  • the pop-up window 110 will display The stylus 200 deviates to the left from the position mark 104 of the magnetic charging position, and in order to prompt the user to adjust the position of the stylus 200 to the right, the pop-up window 110 will still display the dotted position mark 101 .
  • the user adjusts the position of the stylus 200 according to the position mark 101 and the position mark 104, and aligns it with the magnetic charging position, as shown in FIG. .
  • the user can place the stylus 200 at the magnetic attraction position 200′ for magnetic charging under the prompt of the pop-up window of the tablet computer 100, so as to avoid the phenomenon that the stylus 200 is heated before charging, and improve the use of the stylus. life.
  • the tablet computer 100 when the tablet computer 100 prompts the user to adjust the position of the stylus 200, it can not only use the pop-up window 110 to provide visual prompts, but also remind the user in combination with voice, vibration, etc. This is not limited.
  • the "arrow" used above as the position mark of the stylus 200 is exemplary and does not constitute a limitation on the form of the charging position mark in this application. In other embodiments, the above position mark can also be other This application does not limit this to the symbol of prompting function.
  • the prompting on the tablet computer 100 about the charging capacity and the charging position above is also exemplary.
  • the stylus 200 is also equipped with hardware such as a display device, a voice prompt device or a device, the above prompts can also be performed on the stylus 200, or simultaneously performed on the stylus 200 and the tablet computer 100, which is not limited in this application.
  • a brief introduction will be made below in conjunction with a schematic diagram of the hardware structure of the stylus 200 .
  • the above method is also applicable to the smart watch 300 that supports magnetic charging.
  • the charging process of the smart watch 300 using the above method will be described below with reference to FIG. 5 and FIG. 6 .
  • the difference between the charging method of the smart watch 300 and the magnetic charging method of the stylus 200 is mainly reflected in the prompts about the charging position and the charging quantity, which will be introduced below.
  • FIG. 5(A) and FIG. 5(B) respectively show the display interface 310 and the back 320 of the smart watch 300, wherein the display interface 310 is used to display prompt information about the charging location and charging capacity and realize other smart watches.
  • the display function possessed by the watch 300 is provided with a charging area 330 for magnetic charging on the back 320.
  • the magnetic charging position 331 in the charging area 330 is the same as that in the charging area 410 of the charging device 400 shown in FIG. 5(C).
  • the magnetic suction charging position 411 of the smart watch 300 is matched and placed to realize the magnetic suction charging of the smart watch 300 .
  • the display interface 310 of the smart watch 300 displays a prompt message 313 of the charging state, a current battery level 311, and the current deviation of the smart watch 300 from the figure.
  • the position mark 312 of the magnetic charging position 411 in 5(C) at this time, the user only needs to turn the smart watch 300 clockwise or the charging device 400 counterclockwise in the direction indicated by the position mark 312 until the display interface 310 of the smart watch 300 6(C) shows the position mark 315 in order to realize the magnetic charging of the smart watch 300.
  • the display interface 310 of the smart watch 300 displays the prompt information 313 of the charging state, the current battery 311, and the current smart watch 300 deviates from the position shown in Figure 5 (C)
  • the position mark 314 of the magnetic charging position 411 in (C) at this time, the user only needs to turn the smart watch 300 counterclockwise or the charging device 400 clockwise in the direction indicated by the position mark 314 until the display interface 310 of the smart watch 300 It is displayed as a position mark 315 shown in FIG. 6(C).
  • the user can align the magnetic charging position 331 of the smart watch 300 with the magnetic charging position of the charging device 400 by turning the smart watch 300 or the charging device 400 under the prompt of relevant information on the display interface 310 of the smart watch 300 .
  • the position 411 is used for magnetic charging, avoiding the heating phenomenon caused by the smart watch 300 not being aligned with the magnetic charging position 411 during charging, and improving the service life of the battery of the smart watch 300 .
  • FIG. 7 shows a schematic block diagram of a system architecture of a tablet computer 100 for implementing the human-computer interaction method of the present application according to an embodiment of the present application.
  • the system of the tablet computer 100 includes an application layer 1310 , a framework layer 1320 , a kernel layer 1330 and a hardware layer 1340 .
  • the application layer 1310 may include a series of application packages, such as shorthand application 1310a, drawing application 1310b, address book application 1310c and other programs.
  • the framework layer 1320 includes a window management service (Windows Manager Service) 1320a, a shortcut application option menu determination module 1320b, a magnetic flux acquisition module 1320c, and a position mark determination module 1320d.
  • a window management service Windows Manager Service
  • a shortcut application option menu determination module 1320b a shortcut application option menu determination module
  • a magnetic flux acquisition module 1320c a magnetic flux acquisition module
  • a position mark determination module 1320d a position mark determination module
  • system of the tablet computer 100 may further include a system library layer, which is located between the framework layer and the kernel layer, which is not limited here.
  • the kernel layer 1330 includes a display driver 1330a.
  • the kernel layer 1330 may also include other drivers, such as touch driver, audio driver, etc., which are not limited here.
  • the hardware layer 1340 includes a display screen 1340a.
  • the hardware layer 1340 may also include physical devices such as speakers, motors, Hall sensors, etc., which is not limited here.
  • FIG. 8 shows a schematic diagram of the interaction process in the system of the tablet computer 100 corresponding to the user removing the stylus 200 from the tablet computer 100 . It can be understood that, in the interaction process shown in FIG. 8 , the execution sequence of each step is not limited.
  • the interaction process 800 includes:
  • the Hall sensor 230 on the stylus 200 collects magnetic flux in the stylus 200 .
  • the tablet computer 100 obtains the magnetic flux in the magnetic coil of the stylus 200 through the Hall sensor provided on the stylus 200 .
  • the tablet computer 100 can obtain the magnetic flux on the left side of the magnetic coil of the stylus 200 through the Hall sensor 230L arranged on the left side of the stylus 200 , and obtain the magnetic flux on the left side of the magnetic coil of the stylus 200 through the Hall sensor 230L arranged on the right side of the stylus 200 .
  • the sensor 230R is used to obtain the magnetic flux on the right side of the magnetic coil of the stylus 200 .
  • the Hall sensor 230 of the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320c of the tablet computer 100 .
  • the connection between the stylus 200 and the tablet computer 100 can be established through an untrusted communication module, or based on a communication protocol. This application is not limited to this. After the stylus 200 establishes a communication connection with the tablet computer 100 , the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320 c of the tablet computer 100 .
  • the magnetic flux acquisition module 1320c of the tablet computer 100 sends the received magnetic flux of the stylus 200 to the position marker determination module 1320d.
  • the position marker determination module 1320d determines whether the magnetic flux of the stylus 200 is greater than or equal to a preset first magnetic flux. If so, it is determined that the stylus 200 is in the magnetic charging state, and then enters 804, that is, the direction of movement of the stylus 200 is determined according to the change of the magnetic flux on the left and right sides of the stylus 200, that is, according to the change of the magnetic flux on the left and right sides of the stylus 200 The relative position of the stylus 200 and the magnetic charging position 200 ′ is determined. If not, it means that the stylus 200 is separated from the tablet computer 100 , and then go to 801 , that is, the Hall sensor 230 of the stylus 200 continues to collect the magnetic flux of the stylus 200 .
  • the position mark determination module 1320d determines the magnitude relationship between the difference between the magnetic fluxes on the left and right sides of the stylus 200 and the preset first difference, and according to the difference between the magnetic fluxes on the left and right sides of the stylus 200 and the preset first difference The size relationship between them determines the moving direction of the stylus 200 and the corresponding position mark.
  • the position mark module 1320 d determines the position mark 103 (as shown in FIG. 4(B )) where the stylus 200 deviates to the right.
  • the difference W ⁇ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference ⁇ W, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right side, and it can be determined that the stylus 200 is relatively
  • the magnetic charging position 200 ′ deviates to the left, and the position mark module 1320 d determines the position mark 104 of the position mark 104 that the stylus 200 deviates to the right (as shown in FIG. 4(C) ).
  • the position flag module 1320d determines that the position flag is handwritten The position marker 101 where the pen 200 deviates to the right (as shown in FIG. 4(D)).
  • the location marker determining module 1320d reports the moving direction of the stylus 200 and the identifier corresponding to the location marker to the window management service 1320a.
  • the moving direction of the stylus 200 and the information corresponding to the position mark can be a kind of identification, for example, the position mark of deviation to the left and the position deviation to the left can be the mark "left", deviation to the right and direction to the left
  • the right-deviating position flag may be the flag "right”.
  • the above identifier may take other forms, such as numbers, character strings, etc., which are not limited in the present application.
  • the window management service 1320a sends to the resource management module 1320e an instruction requesting to call the display resource corresponding to the shortcut application option menu.
  • the resource management module 1320e stores the display resource information related to the charging power and the location mark of the stylus 200, and when the window management service 1320a needs to display the corresponding position mark and charging power, it needs to initiate the resource management module 1320e. Resource request directive.
  • the above display resource information includes, but is not limited to, the charging quantity or the display position, display icon, display size, etc. of the location mark.
  • the resource management module 1320a returns corresponding display resource data to the window management service 1320a.
  • the window management service 1320a sends the display resource data to the display driver 1330a.
  • the display driver 1330a sends display resource data to the display screen 1340a.
  • the display screen 1340a displays the above display resource data.
  • the following human-computer interaction method can be implemented on the tablet computer 100, or can be implemented on the stylus 200, and can also be implemented by the cooperation of the tablet computer 100 and the stylus 200, for example, on the tablet computer 100 Carry out relevant data processing, display the prompt information of the current battery level on the stylus 200 and the prompt information of the relative position between the stylus 200 and the magnetic charging position 200 ′, or perform relevant data processing on the stylus 200 , and display the prompt information on the tablet computer 100
  • the power prompt information and the prompt information of the relative position of the stylus 200 and the magnetic charging position 200 ′ are displayed on the screen, which is not limited in the present application.
  • implementation of the method on the tablet computer 100 is taken as an example for description below.
  • the method 700 includes:
  • the difference W ⁇ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is greater than the preset first difference ⁇ W, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux on the right side, so it can be determined
  • the stylus 200 deviates to the right relative to the magnetic charging position 200 ′, and then enters 905 , that is, the tablet computer 100 displays the position mark 103 of the stylus 200 deviated to the right (as shown in FIG. 4(B) ).
  • the difference W ⁇ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference ⁇ W, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right side, and it can be determined that the stylus 200 is relatively If the magnetic charging position 200' deviates to the left, go to 906, that is, the tablet computer 100 displays the position mark 104 of the stylus 200 deviated to the left relative to the magnetic charging position 200' (as shown in FIG. 4(C)).
  • the difference W ⁇ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is equal to the preset first difference ⁇ W, it indicates that the stylus 200 has been aligned with the magnetic charging position 200′, and then enters 907, that is, the tablet computer 100 displays handwriting The pen 200 is aligned with the position mark 101 of the magnetic charging position 200' (as shown in FIG. 4(D)).
  • FIGS. 10(A) to 10(B) when the user picks up the stylus 200 being magnetically charged from the tablet computer 100 shown in FIG. 10(A), The tablet computer 100 enters the shorthand application interface 130 shown in FIG. 10(B) from the lock screen interface 120 shown in FIG. 10(A), so that the user can realize the shorthand function.
  • lock screen interface 120 in FIG. 10(A) is only exemplary, and in other embodiments, it can also be other interfaces, such as the main interface of the tablet computer 100, or interfaces of other applications, such as WeChat Application interface, Kugou Music The application interface and the like are not limited in this application.
  • the shorthand application interface in FIG. 10(B) is also exemplary.
  • the tablet computer 100 can start and enter the interface of other applications , such as memo interface, iQiyi
  • the application interface and the like are not limited in this application.
  • the interface displayed on the tablet 100 is the same as that of the tablet 100 when the user places the stylus 200 on the tablet 100 for magnetic charging. related to the displayed interface. For example, when the user is using the above-mentioned WeChat application to chat, the user places the stylus 200 on the tablet computer 100 for charging, and then the tablet computer 100 displays the chat interface of the WeChat application.
  • the tablet computer 100 may directly enter the lock screen state shown in FIG. 10(A) from the currently displayed interface, or, when the user puts the After the stylus 200 is placed on the tablet computer 100, at intervals of several seconds, when the user's next operation on the tablet computer 100 is not detected, the screen lock state as shown in FIG. 10(A) will be entered again. No limit.
  • the user can set the above-mentioned shortcut application as an application frequently used by the user through the system settings of the tablet computer 100, then when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 starts and Enter the interface of the application set by the user.
  • the tablet computer 100 in order to avoid conflicts between the applications started by the tablet computer 100, when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 can determine whether other applications are currently running on the tablet computer 100, if If there are no other application programs running on the tablet computer 100, start the above-mentioned shortcut application and enter the above-mentioned shortcut application interface; No restrictions are imposed.
  • the above-mentioned method of starting and entering the shortcut application is beneficial to save the user's operation steps and improve the user experience.
  • the above-mentioned method of directly entering the shortcut application interface does not give the user sufficient choice space, that is, when the user removes the stylus 200 from the tablet computer 100, he can only passively accept the information displayed on the tablet computer 100. interface, it is impossible to independently select and control the shortcut applications to be accessed by the tablet computer 100 .
  • the tablet computer 100 when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 does not directly enter the interface of a certain application, but It is an option menu interface that displays various applications. Moreover, the content of the option menu interface changes according to the direction in which the user removes the stylus 200 from the tablet computer 100 , so as to provide sufficient selection space for the user and improve user experience.
  • the tablet computer 100 judges handwriting according to the relationship between the difference between the magnetic flux on the left and right sides of the magnetic coil and the preset second difference when the stylus 200 is separated from the tablet computer 100 .
  • the orientation of the pen 200 when detached relative to the tablet computer 100 is the preset second difference is the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 at the position where the stylus 200 is magnetically charged before it is separated from the tablet 100, and the second difference is preset For example, it can be 0. It can be understood that when the user picks up the stylus 200 from the tablet computer 100 and the stylus 200 is aligned with the magnetic charging position 200 ′, the preset second difference is equal to the preset first difference.
  • the first shortcut application option menu interface is displayed. If the tablet computer 100 is separated from the tablet computer 100 according to the stylus 200, the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 100 is less than the preset second difference value, it indicates that the stylus 200 moves in a direction opposite to the position corresponding to the preset second difference, and then a second shortcut application option menu interface different from the first shortcut application option menu interface is displayed.
  • the tablet computer 100 can determine whether the stylus 200 is in the magnetic charging state according to the magnitude of the magnetic flux in the magnetic coil of the stylus 200, that is, whether the stylus 200 is connected to the tablet.
  • the computer 100 is separated.
  • the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to the preset second magnetic flux, it is determined that the stylus 200 will be separated from the tablet computer 100, and then according to the difference between the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 at this time and the predetermined
  • the relationship between the first difference values is assumed to determine the direction of the stylus 200 when it is separated from the tablet computer 100 .
  • the preset second magnetic flux is the magnetic flux at a certain moment before the stylus 200 is separated from the tablet computer 100 , the preset second magnetic flux is less than or equal to the preset first magnetic flux, and the preset second magnetic flux can be, for example, W1.
  • FIG. 11 shows a schematic diagram of UI changes of the shortcut application option menu displayed on the tablet computer 100 when the stylus 200 is separated from the tablet computer 100 in different directions.
  • the S area of the tablet computer 100 displays an option menu interface 150, which Including "browser application” 143, “camera application” 144, “phone application” 145, “short message application” 146, and “contact application” 147. Comparing FIG. 11(A), it can be seen that the applications included in the interface 150 are equivalent to the applications included in the interface 140 moving to the left.
  • the S area of the tablet computer 100 displays an option menu interface 160, which It includes "gallery application” 138, “shorthand application” 139, “health application” 141, “weather application” 142, and “browser application” 143. Comparing FIG. 11(A), it can be seen that the applications included in the interface 160 are equivalent to the applications included in the interface 140 moving to the right.
  • the applications included in the above-mentioned various option menu interfaces are only exemplary.
  • the above-mentioned various option menu interfaces may also include other applications, and the arrangement order of the applications included in each option menu interface may be It has an arrangement rule similar to that of the applications included in the interface 140, the interface 150, and the interface 160, which is not limited in the present application.
  • the user picks up the smart watch 300 relative to the charging device 400, and the smart watch 300 enters an option menu interface 330 as shown in FIG. , "Camera Application” 302, "Phone Application” 303.
  • the user picks up the smart watch 300 to the right relative to the charging device 400, and the smart watch 300 enters an option menu interface 340 as shown in FIG. 13(B), and the interface 330 includes "Gallery Application” 301 , “Camera Application” 302 , “Phone Application” 303 , “Message Application” 304 , and “Contacts Application” 305 .
  • the applications included in the interface 340 in FIG. 13(B) are obtained by rotating the applications included in the interface 330 clockwise.
  • the user picks up the smart watch 300 to the left relative to the charging device 400, and the smart watch 300 enters the option menu interface 350 as shown in FIG. 14(B), and the interface 330 includes "camera application” 302 , "phone application” 303 , "information application” 304 , "contact application” 305 , and "gallery application” 306 .
  • the applications included in the interface 360 in FIG. 14(B) are obtained by rotating the applications included in the interface 330 counterclockwise.
  • the tablet computer 100 can provide the user with an option menu interface including abundant shortcut applications according to the direction in which the user picks up the stylus 200 from the tablet computer 100 for the user to choose.
  • the smart watch 300 can also provide the user with an option menu interface including a variety of shortcut applications according to the direction in which the user picks up the smart watch 300 from the charging device 400 for the user to choose.
  • FIG. 15 shows a schematic diagram of the interaction process in the system of the tablet computer 100 corresponding to the user removing the stylus 200 from the tablet computer 100 . It can be understood that, in the interaction process shown in FIG. 15 , the execution sequence of each step is not limited. In addition, for the implementation process in method 1500 that is the same as or similar to that in the above method, reference may be made to the above related description, and details will not be repeated below.
  • the interaction process 1500 includes:
  • the Hall sensor 230 on the stylus 200 collects the magnetic flux in the stylus 200 .
  • the Hall sensor 230 of the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320c of the tablet computer 100 .
  • the magnetic flux acquisition module 1320c of the tablet computer 100 sends the received magnetic flux of the stylus 200 to the shortcut application option menu determination module 1320b.
  • the shortcut application option menu determination module 1320b determines whether the magnetic flux of the stylus 200 is greater than or equal to a preset second magnetic flux. If yes, it is determined that the stylus 200 and the tablet computer 100 are about to be separated, and then go to 1505 , that is, determine the moving direction of the stylus 200 according to the change of the magnetic flux on the left and right sides of the stylus 200 . If not, it indicates that the stylus 200 is in the charging state, and then go to step 1501 , that is, the Hall sensor 230 of the stylus 200 continues to collect the magnetic flux of the stylus 200 .
  • the shortcut application option menu determination module 1320b determines the size relationship between the difference between the magnetic flux on the left and right sides of the stylus 200 and the preset second difference, and according to the difference between the magnetic flux on the left and right sides of the stylus 200 and the preset second difference The magnitude relationship between the difference values determines the moving direction of the stylus 200 and the corresponding shortcut application option menu.
  • the shortcut application option menu determination module 1320b reports the moving direction of the stylus 200 and the corresponding identifier of the shortcut application option menu to the window management service 1320a.
  • the window management service 1320a sends an instruction to the resource management module 1320e requesting to call the display resource corresponding to the shortcut application option menu.
  • the resource management module 1320a returns the corresponding display resource data to the window management service 1320a.
  • the window management service 1320a sends the display resource data to the display driver 1330a.
  • the display driver 1330a sends display resource data to the display screen 1340a.
  • the display screen 1340a displays the above display resource data.
  • method 1600 includes:
  • the manner in which the tablet computer 100 obtains the magnetic flux of the magnetic coil of the stylus 200 is consistent with the method 701 described above, and will not be repeated here.
  • step 1602. Determine whether the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to a preset second magnetic flux. If the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to the preset second magnetic flux, it indicates that the stylus 200 will be separated from the tablet computer 100, and then enter 1603, that is, continue to judge the magnetic flux of the left and right sides of the magnetic coil of the stylus 100 The magnitude between the difference and the preset second difference is used to determine the direction of the stylus 100 when it is separated from the tablet computer 100; Still in the magnetic charging stage, go to step 1602 , that is, continuously detect the magnitude of the magnetic flux in the magnetic coil of the stylus 200 to determine when the stylus 200 will be separated from the tablet computer 100 .
  • the way of judging the change of the magnetic flux in the stylus 200 can refer to the relevant description in the above method 700, and will not be repeated here.
  • the preset second difference is the difference between the magnetic fluxes on the left and right sides of the magnetic coil when the stylus 200 is charging before the stylus 200 is separated from the tablet computer 100 .
  • the process enters 1605, that is, the second shortcut application option menu is displayed.
  • step 1606 When the stylus 200 is separated from the tablet computer 100, if the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is equal to the preset second difference, it indicates that the stylus 200 has not occurred when the tablet 100 is separated. If there is a deviation in the relative direction (as shown in FIG. 11(A)), go to step 1606, that is, display the third shortcut application option menu.
  • the preset second difference is W2 (and W2 is greater than 0).
  • the difference in magnetic flux between the left and right sides of the magnetic coil of the stylus 200 is W3, if W3 is greater than W2, It indicates that the difference between the magnetic flux on the left side and the magnetic flux on the right side in the magnetic coil of the stylus 200 further increases, that is, the stylus 200 moves to the right again relative to the above-mentioned magnetic charging position 200 ′, and at this time, the first Quick app menu.
  • the first shortcut application option menu can be set by the user through the system settings of the tablet computer 100 according to his own preferences. In some other embodiments, the first shortcut application option menu may also be generated by the tablet computer 100 according to the usage habits of the user. Wherein, the tablet computer 100 may update the first shortcut application option menu at preset time intervals according to the user's habit of using a certain application. For example, the tablet computer 100 may update the first shortcut application option menu at preset intervals according to the number of times the user uses a specific application. Wherein, the preset duration may be 1 day, 2 days or 7 days, etc., which is not limited in this application.
  • the setting method of the second shortcut application option menu is similar to that of the first shortcut application option menu above, and will not be repeated here.
  • the application options included in the second shortcut application options menu may be partly the same as the application options included in the first shortcut application options menu, for example, as shown in FIG. 11(A) to FIG. 11(C), the option Menu 140 has the same applications as options menu 150 and options menu 160 .
  • the application options included in the second shortcut application option menu may be completely different from the application options included in the first shortcut application option menu. This application is not limited to this.
  • the setting method of the third shortcut application option menu is similar to that of the first shortcut application option menu and the second shortcut application option menu above, and will not be repeated here.
  • FIG. 17 shows a schematic diagram of a hardware structure of a stylus 200 provided by an embodiment of the present application.
  • the stylus 200 may include a microprocessor 210 , a memory 220 , a Hall sensor 230 , a proximity light sensor 240 , a power management unit 250 , and a power supply 260 . It can be understood that the results shown in the embodiment of the present application do not constitute a specific limitation on the stylus 200 .
  • the stylus 200 may include more or fewer components than those shown in the illustration, for example, a display screen, a motor, a speaker, a pressure sensor, etc., or some components may be combined, or some components may be separated. components, or different arrangements of components.
  • the illustrated components may be realized in hardware, software, or a combination of software and hardware. This application is not limited to this.
  • the microprocessor 210 is used to analyze and process the data collected by the various sensors of the stylus 200, such as the Hall sensor 230 and the proximity light sensor 240, and store the processing results in the memory 220, or through the wireless communication module (in the figure) not shown) to the tablet computer 100 for subsequent processing.
  • the microprocessor 210 can use the above method to determine whether the stylus 200 is being magnetically charged according to the magnetic flux in the magnetic coil of the stylus 200 acquired by the Hall sensor 230, and the stylus 200 is relatively The position of the tablet computer 100 is moved, and then the processing result is sent to the tablet computer 100, so that the tablet computer 100 displays corresponding prompt information or a shortcut application option menu interface according to the processing result.
  • the memory 220 may be used to store computer-executable program code, which includes instructions.
  • the memory 220 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, an application program required by at least one function, and the like.
  • the storage data area can store data created during the use of the tablet computer 100 , such as the magnetic flux of the stylus 200 acquired by the tablet computer 100 or the intermediate results generated when the microprocessor 210 implements the methods described in the above-mentioned embodiments.
  • the memory 220 may store the display data of the display interface corresponding to the above-mentioned FIGS. 4 to 14 and the magnetic flux of the stylus 200 .
  • the power management module 250 is configured to receive charging input from the charger.
  • the power management module 250 is used for connecting the battery 260 and the microprocessor 10 .
  • the power management module 250 receives the input of the battery 260 to provide power for the microprocessor 210 , the memory 220 , the Hall sensor 230 and the proximity light sensor 240 .
  • the stylus 200 can determine whether the stylus 200 is being magnetically charged according to the detected charging power of the power management module 250. For example, assuming that the charging power is 90% when charging at full power, then when When the power management module 250 detects that the charging power of the stylus 200 is less than 5%, it can determine that the stylus 200 is not in the magnetic charging state at this time, which is not limited in this application.
  • Proximity light sensing 240 may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light diodes.
  • the tablet computer 100 emits infrared light through the LED. Tablet 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the tablet computer 100 . When insufficient reflected light is detected, the tablet computer 100 may determine that there is no object near the tablet computer 100 .
  • the tablet computer 100 can use the proximity light sensor 240 to detect that the user holds the stylus 200 away from the tablet computer 100 to determine that the stylus 200 will be separated from the tablet computer 100 .
  • the Hall sensor 230 is used to detect the magnitude of the magnetic flux passing through the magnetic coil of the stylus 200 .
  • the magnitude of the magnetic flux detected by the Hall sensor 230 can not only be expressed directly by magnetic flux (unit: Weber), but also can be expressed in other indirect ways.
  • the Hall sensor 230 can express the magnitude of the magnetic flux by current (unit: ampere) or voltage (unit: : volts), which is not limited in this application.
  • Hall sensors 230 there may be multiple Hall sensors 230 , which are arranged regularly or randomly on the side of the stylus 200 where magnetic charging is performed.
  • the Hall sensor 230 can also be arranged in the stylus 200 in the form of a Hall sensor array. It should be understood that the present application does not limit the number and arrangement of the Hall sensors 230 .
  • FIG. 18 shows a schematic structural diagram of a tablet computer 100 according to an embodiment of the present application.
  • the tablet computer 100 may include a processor 10, a screen 21, an internal memory 11, a SIM card interface 14, a USB interface 15, a charge management module 16, a power management module 16A, a battery 16B, a motor 17, a proximity light sensor 18A, and a Hall sensor 18B , speaker 19, wireless communication module 20, display screen 21.
  • the structure shown in the embodiment of the present application does not constitute a specific limitation on the tablet computer 100 .
  • the tablet computer 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 10 may include one or more processing units, for example: the processor 10 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • a memory may also be provided in the processor 10 for storing instructions and data.
  • the processor 10 may execute the methods described in the foregoing embodiments.
  • the internal memory 11 may be used to store computer-executable program codes including instructions.
  • the internal memory 11 may include an area for storing programs and an area for storing data.
  • the stored program area can store an operating system, an application program required by at least one function, and the like.
  • the storage data area can store data created during the use of the tablet computer 100 , such as the magnetic flux of the stylus 200 acquired by the tablet computer 100 or the intermediate results generated when the processor 10 implements the methods described in the above-mentioned embodiments.
  • the internal memory 11 may store the display data of the corresponding display interfaces in FIGS. 4 to 12 and the magnetic flux of the stylus 200 acquired by the tablet computer 100 .
  • the external memory interface 13 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 100.
  • the external memory card communicates with the processor 10 through the external memory interface 13 to realize the data storage function.
  • the magnetic flux data of the above-mentioned stylus 200 is stored in the external memory interface 13 .
  • USB interface 130 is the interface that accords with USB standard specification, specifically can be Mini USB interface, Micro USB interface, USB Type C interface etc.
  • the charging management module 16 is configured to receive charging input from the charger.
  • the power management module 16A is used for connecting the battery 16B, the charging management module 16 and the processor 10 .
  • the power management module 16A receives the input from the battery 16B and/or the charging management module 16 to provide power for the processor 10 , the internal memory 11 , the display screen 21 and the wireless communication module 20 .
  • the display screen 21 is used to display images, videos and the like.
  • the tablet computer 100 displays on the display screen 21 the battery prompt information of the stylus 200 , the alignment status prompt information, and the like.
  • the tablet computer 100 displays UI interfaces related to the above-mentioned embodiments on the display screen 21 .
  • the wireless communication module 20 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), nearfield communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • WLAN wireless local area networks
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC nearfield communication
  • IR infrared technology
  • the tablet computer 100 and the stylus 200 establish a communication connection through the wireless communication module 20 for data transmission.
  • the tablet computer 100 sends the result of judging the size of the magnetic flux of the stylus 200 to the stylus 200, and then the stylus 200 displays a power prompt and an alignment status prompt message about the stylus 200, or the stylus 200 passes through the wireless communication module 20.
  • the magnetic flux obtained by using the Hall sensor 230 is transmitted to the tablet computer 100 , so that the tablet computer 100 can subsequently determine the charging state and position of the stylus 200 . It should be understood that the present application does not impose any limitation on the data transmission process and the transmitted data between the tablet computer 100 and the stylus 200 .
  • the speaker 19 is a transducing device that converts electrical signals into acoustic signals.
  • the speaker 19 can cooperate with the motor 17 and the display screen 21 to realize the battery prompt of the stylus 200 and the The function of prompting the status is not limited in this application.
  • the speaker 19 voice broadcasts the current battery level of the stylus 200, and the voice playback prompts the user how to move the stylus 200 so that it can be aligned with the magnetic charging position. This application is not limited to this.
  • the motor 17 can generate vibration prompts.
  • Motor 17 can be used for incoming call vibration reminder.
  • the motor 17 can cooperate with the speaker 19 and the display screen 21 to realize the reminder of the battery level and the alignment state of the stylus 200.
  • the motor 17 Different vibration feedback effects can be obtained. For example, if the stylus 200 is aligned with the magnetic attraction position, the motor 17 can vibrate 3 times. If the stylus 200 deviates from the magnetic attraction position to the right, the motor 17 can vibrate 4 times. When deviating from the magnetic suction position to the left, the motor 17 can vibrate twice. This application is not limited to this.
  • Proximity light sensor 18A may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diodes may be infrared light diodes.
  • the tablet computer 100 emits infrared light through the LED. Tablet 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the tablet computer 100. When insufficient reflected light is detected, the tablet computer 100 may determine that there is no object near the tablet computer 100 .
  • the tablet computer 100 can use the proximity light sensor 18A to detect that the user holds the stylus 200 away from the tablet computer 100 to determine that the stylus 200 will be separated from the tablet computer 100 .
  • the embodiment of the present application also provides an electronic device, the electronic device includes: a Hall sensor, the user acquires the magnetic flux in the magnetic coil in the electronic device, at least one processor, a memory, and stored in the memory and can be A computer program running on the at least one processor, when the processor executes the computer program, the steps in any of the foregoing method embodiments are implemented.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
  • An embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the method of the above-mentioned embodiments in the present application can be completed by instructing related hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form.
  • the computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • a photographing device/terminal device a recording medium
  • a computer memory a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media such as U disk, mobile hard disk, magnetic disk or optical disk, etc.
  • computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
  • the disclosed device/network device and method may be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the term “if” may be construed as “when” or “once” or “in response to determining” or “in response to detecting” depending on the context.
  • the phrase “if determined” or “if [the described condition or event] is detected” may be construed, depending on the context, to mean “once determined” or “in response to the determination” or “once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
  • references to "one embodiment” or “some embodiments” or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.

Abstract

The present application relates to the technical field of terminals, and in particular to a human-machine interaction method, and an electronic device and a medium thereof. In the human-machine interaction method of the present application, when a tablet computer charges a handwriting pen, a position mark may be synchronously displayed on the tablet computer or the handwriting pen, and the position mark can present, to a user, the position of the handwriting pen relative to a standard charging position of the tablet computer, such that the user can know, according to the position mark, whether the handwriting pen is aligned with the standard charging position of the tablet computer; and when the handwriting pen is not aligned with the charging position, the user can adjust the position of the handwriting pen or the tablet computer according to the position mark, so that the handwriting pen is aligned with the standard charging position of the tablet computer. By means of the method, a heat emission phenomenon in the current technical solution that is caused by a handwriting pen being charged at a low power due to the handwriting pen not being aligned with a standard charging position (or a magnetic attraction charging position) of a tablet computer can be ameliorated.

Description

人机交互方法、电子设备及其介质Human-computer interaction method, electronic equipment and its medium
本申请要求于2021年12月06日提交中国专利局、申请号为202111480808.0、申请名称为“人机交互方法、电子设备及其介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111480808.0 and the application title "Human-computer interaction method, electronic equipment and its medium" filed with the China Patent Office on December 06, 2021, the entire contents of which are incorporated by reference in In this application.
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种人机交互方法、电子设备及其介质。The present application relates to the technical field of terminals, and in particular to a human-computer interaction method, electronic equipment and media thereof.
背景技术Background technique
通常,手写笔200是以图1所示的方式磁吸收纳在平板电脑100上的,与此同时平板电脑100会向手写笔200充电,以保证手写笔200的电量充足。Usually, the stylus 200 is magnetically accommodated on the tablet computer 100 in the manner shown in FIG.
在这个过程中,平板电脑100会显示手写笔200的当前电量,但是对用户的提示也仅限于此。在实际应用中,手写笔200可能会因为没有对准磁吸充电位置,导致手写笔200在充电过程中产生发热现象,不利于手写笔200电池的维护,进而影响手写笔200使用寿命。During this process, the tablet computer 100 will display the current power level of the stylus 200, but the prompt to the user is limited to this. In practical applications, the stylus 200 may generate heat during charging because it is not aligned with the magnetic charging position, which is not conducive to the maintenance of the battery of the stylus 200 and further affects the service life of the stylus 200 .
发明内容Contents of the invention
为了改善上述设计,本申请提供了一种人机交互方法、电子设备及其介质。在本申请的人机交互方法中,在平板电脑为手写笔充电的时候,平板电脑上会显示位置标志,该位置标志可以表示手写笔相对于平板电脑磁吸充电位置的相对位置变化,以使用户可以根据该位置标志调整手写笔或平板电脑的位置,使得手写笔能够对准平板电脑的磁吸充电位置,进行全功率充电,避免未对准情况下磁吸充电时产生的发热现象。In order to improve the above design, the present application provides a human-computer interaction method, electronic equipment and its medium. In the human-computer interaction method of the present application, when the tablet computer is charging the stylus, a position mark will be displayed on the tablet computer, which can indicate the relative position change of the stylus relative to the magnetic charging position of the tablet computer, so that The user can adjust the position of the stylus or the tablet according to the position mark, so that the stylus can be aligned with the magnetic charging position of the tablet for full power charging, avoiding the heat generated during magnetic charging under misalignment.
下面对此展开介绍。This is described below.
第一方面,本申请提供了一种人机交互方法,该方法应用于第一电子设备与第二电子设备,该方法包括:检测到第一电子设备位于第二电子设备提供的磁场中;通过获取的第一电子设备上多个不同位置处的磁通量的变化情况,确定第一电子设备与第二电子设备的相对位置变化;根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容。In a first aspect, the present application provides a human-computer interaction method, which is applied to a first electronic device and a second electronic device, and the method includes: detecting that the first electronic device is located in a magnetic field provided by the second electronic device; Determine the relative position changes between the first electronic device and the second electronic device based on the obtained changes in the magnetic flux at multiple different positions on the first electronic device; The corresponding display content on the device.
其中,在一些实施例中,第一电子设备或第二电子设备可以通过第一电子设备上设置的霍尔传感器检测第一电子设备是否位于第二电子设备提供的磁场中。Wherein, in some embodiments, the first electronic device or the second electronic device may detect whether the first electronic device is located in the magnetic field provided by the second electronic device through a Hall sensor provided on the first electronic device.
可以理解,在第一电子设备相对于第二电子设备移动的情况下,第一电子设备中通过的第二电子设备磁场的磁通量会发生变化,所以可以通过在第一电子设备上多个不同位置处设置霍尔传感器,并根据多个不同位置处的霍尔传感器采集到的磁通量的变化情况,来判断第一电子设备相对于第二电子设备的相对位置变化,并根据第一电子设备相对于第二电子设备的相对位置变化情况,确定第一电子设备或第二电子设备上对应的显示内容。It can be understood that when the first electronic device moves relative to the second electronic device, the magnetic flux of the second electronic device's magnetic field passing through the first electronic device will change, so it can pass through multiple different positions on the first electronic device Hall sensors are installed at different positions, and the change of the relative position of the first electronic device relative to the second electronic device is judged according to the change of the magnetic flux collected by the Hall sensors at multiple different positions, and according to the relative position change of the first electronic device relative to the second electronic device, The relative position change of the second electronic device determines the corresponding display content on the first electronic device or the second electronic device.
通过这种方式,第一电子设备或第二电子设备即可将第一电子设备相对于第二电子设备的相对位置变化情况,以可视化的形式展示给用户,使用户可根据该相对位置变化情况,调整第一电子设备或第二电子设备的位置。并且,在第二电子设备提供的磁场能够为第一电子设备充电的场景下,用户可以根据该相对位置变化情况,使得第一电子设备能够对准第二电子设备的标准充电位置(或下文中磁吸充电位置),进行全功率充电。In this way, the first electronic device or the second electronic device can display the relative position change of the first electronic device relative to the second electronic device to the user in a visual form, so that the user can to adjust the position of the first electronic device or the second electronic device. Moreover, in the scenario where the magnetic field provided by the second electronic device can charge the first electronic device, the user can align the first electronic device with the standard charging position of the second electronic device (or hereinafter referred to as Magnetic charging position) for full power charging.
具体地,结合上述第一方面,在第一方面的一种可能的实现方式中,第二电子设备提供的磁 场能够用于为第一电子设备充电,并且根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容,包括:在第二电子设备处于为第一电子设备充电的状态下,在第一电子设备或者第二电子设备上,显示表示第一电子设备相对于第二电子设备的相对位置的第一标志。Specifically, in combination with the first aspect above, in a possible implementation of the first aspect, the magnetic field provided by the second electronic device can be used to charge the first electronic device, and according to the determined relative position change, determine the The corresponding display content on an electronic device or a second electronic device includes: when the second electronic device is in the state of charging the first electronic device, on the first electronic device or the second electronic device, displaying that the first electronic device A first indication of a relative position with respect to the second electronic device.
可以理解,在第一电子设备处于第二电子设备的磁场中时,第一电子设备未必处于充电状态,比如第一电子设备虽然能检测到第二电子设备的磁场,但是与第二电子设备之间的距离,所接收到的磁通量不足以进行充电。故在一些实施例中,可以通过第一电子设备中的磁通量与预设第一磁通量之间的关系,来判断第二电子设备是否处于为第一电子设备充电的状态。例如,当第一电子设备中的磁通量大于或等于预设第一磁通量,则表明第二电子设备处于为第一电子设备充电的状态。当第一电子设备中的磁通量小于预设第一磁通量时,则表明第二电子设备不处于为第一电子设备充电的状态。具体判断方式将在下文具体实施例部分进行介绍,此处不再赘述。It can be understood that when the first electronic device is in the magnetic field of the second electronic device, the first electronic device is not necessarily in a charging state. For example, although the first electronic device can detect the magnetic field of the second electronic device, the distance between the first electronic device and the second electronic device The distance between them, the received magnetic flux is not enough for charging. Therefore, in some embodiments, whether the second electronic device is in the state of charging the first electronic device can be determined according to the relationship between the magnetic flux in the first electronic device and the preset first magnetic flux. For example, when the magnetic flux in the first electronic device is greater than or equal to the preset first magnetic flux, it indicates that the second electronic device is in a state of charging the first electronic device. When the magnetic flux in the first electronic device is smaller than the preset first magnetic flux, it indicates that the second electronic device is not in the state of charging the first electronic device. The specific judgment method will be introduced in the specific embodiment section below, and will not be repeated here.
可以理解,第一标志表示第一电子设备相对于第二电子设备的相对位置,故只要第二电子设备在为第一电子设备充电,则第一电子设备或第二电子设备上即显示第一标志,而无关第一电子设备是否对准第二电子设备的标准充电位置。It can be understood that the first sign indicates the relative position of the first electronic device relative to the second electronic device, so as long as the second electronic device is charging the first electronic device, the first electronic device or the second electronic device will display the first mark, regardless of whether the first electronic device is aligned with the standard charging position of the second electronic device.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容,包括:第一标志的移动方向与第一电子设备相对于第二电子设备的移动方向相同。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, according to the determined relative position change, determining the corresponding display content on the first electronic device or the second electronic device includes: : The moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device.
可以理解,为了体现第一电子设备相对于第二电子设备的位置变化情况,第一标志可以跟随第一电子设备相对于第二电子设备的移动方向移动。例如,如果第一电子设备相对于第二电子设备向右移动,则第一标志也向右移动,然后用户在调整第一电子设备,以使其与第二电子设备的标准充电位置对准时,只需朝与第一标志移动方向相反的方向移动第一电子设备即可。It can be understood that, in order to reflect the position change of the first electronic device relative to the second electronic device, the first mark may move along the moving direction of the first electronic device relative to the second electronic device. For example, if the first electronic device moves to the right relative to the second electronic device, the first sign also moves to the right, and then when the user adjusts the first electronic device to align with the standard charging position of the second electronic device, It is only necessary to move the first electronic device in a direction opposite to the direction in which the first sign moves.
可以理解,在其他实施例中,第一标志的移动方向也可以与第一电子设备相对于第二电子设备的移动方向相反,此时,用户在调整第一电子设备,以使其与第二电子设备的标准充电位置对准时,则需朝与第一标志移动方向相同的方向移动第一电子设备。It can be understood that, in other embodiments, the moving direction of the first sign can also be opposite to the moving direction of the first electronic device relative to the second electronic device. When the standard charging position of the electronic device is aligned, the first electronic device needs to be moved in the same direction as the moving direction of the first sign.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容,还包括:With reference to the above-mentioned first aspect and possible implementation manners, in another possible implementation manner of the first aspect, according to the determined relative position change, determine the corresponding display content on the first electronic device or the second electronic device, and further include:
在第一电子设备或者第二电子设备上,显示第一电子设备相对于第二电子设备的标准充电位置的第二标志,其中,第二标志的位置在第一电子设备相对于第二电子设备移动的过程中保持不变。On the first electronic device or the second electronic device, display the second mark of the standard charging position of the first electronic device relative to the second electronic device, wherein the position of the second mark is between the first electronic device and the second electronic device remain unchanged during the move.
可以理解,为了便于用户准确调整第一电子设备以及第二电子设备的位置,以使第一电子设备能够对准第二电子设备的标准充电位置,在第一电子设备或第二电子设备上,还可以同时显示第一电子设备对准第二电子设备标准充电位置的第二标志,并且该第二标志的位置和形态在第一电子设备相对于第二电子设备移动的过程中保持不变,以起到类似于位置标定的作用。It can be understood that in order to facilitate the user to accurately adjust the positions of the first electronic device and the second electronic device so that the first electronic device can be aligned with the standard charging position of the second electronic device, on the first electronic device or the second electronic device, A second sign indicating that the first electronic device is aligned with the standard charging position of the second electronic device can also be displayed at the same time, and the position and shape of the second sign remain unchanged during the movement of the first electronic device relative to the second electronic device, To play a role similar to position calibration.
那么可以理解,在第一电子设备相对于第二电子设备移动的过程中,在第一电子设备或第二电子设备上同时显示第一标志和第二标志,用户可以根据第一标志和第二标志的相对位置,来更加准确地调整第一电子设备或第二电子设备的位置,以使第一电子设备能够对准第二电子设备的标准充电位置。Then it can be understood that during the movement of the first electronic device relative to the second electronic device, the first logo and the second logo are simultaneously displayed on the first electronic device or the second electronic device, and the user can The relative position of the mark is used to adjust the position of the first electronic device or the second electronic device more accurately, so that the first electronic device can be aligned with the standard charging position of the second electronic device.
还可以理解,在一些实施例中,当第一电子设备对准第二电子设备的标准充电位置后,第一标志和第二标志的位置是重合的,此时可以主要显示第二标志,也可以主要显示第一标志。It can also be understood that, in some embodiments, when the first electronic device is aligned with the standard charging position of the second electronic device, the positions of the first mark and the second mark are coincident, and at this time the second mark can be mainly displayed, or The first logo may be mainly displayed.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一标志和第二标志具有相同的形状和不同的颜色。这样有利用用户区分第一位置和第二位置。可以理解,在一些实施例中,第一标志和第二标志也可以具有不同的形状不同的颜色,或者第一标志和第二标志也可以具有不同的形状和相同的颜色,本申请对此不作限制。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the first logo and the second logo have the same shape and different colors. This allows the user to distinguish between the first location and the second location. It can be understood that, in some embodiments, the first logo and the second logo may also have different shapes and different colors, or the first logo and the second logo may also have different shapes and the same color, and this application does not make any limit.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一标志的移动方向与第一电子设备相对于第二电子设备的移动方向相同,包括:在第一电子设备相对于第二电子设备向左移动或者向右移动的情况下,第一标志相对于第二标志的向左移动或者向右移动。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, including: When the first electronic device moves left or right relative to the second electronic device, the first sign moves left or right relative to the second sign.
可以理解,由于第二标志是第一电子设备对准第二电子设备的标准充电位置时的位置标志,而第一标志是表示第一电子设备相对于第二电子设备的位置变化的标志,并且第一标志的移动方向与第一电子设备相对于第二电子设备的移动方向相同,故当第一电子设备相对于第二电子设备向左移动或向右移动的情况下,第一标志会相对于第二标志向左移动或向右移动。It can be understood that since the second mark is the position mark when the first electronic device is aligned with the standard charging position of the second electronic device, and the first mark is a mark indicating the position change of the first electronic device relative to the second electronic device, and The moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, so when the first electronic device moves left or right relative to the second electronic device, the first sign will be opposite to the second electronic device. Move left or right at the second sign.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一电子设备包括手写笔,第二电子设备包括平板电脑。With reference to the foregoing first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the first electronic device includes a stylus, and the second electronic device includes a tablet computer.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一电子设备包括手表,第二电子设备包括手表的充电设备。With reference to the foregoing first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the first electronic device includes a watch, and the second electronic device includes a charging device for the watch.
可以理解,在一些实施例中,第一电子设备相对于第二电子设备的移动可能不是向左、向右或向上、向下之类的平移,第一电子设备可能相对于第二电子设备发生旋转。It can be understood that, in some embodiments, the movement of the first electronic device relative to the second electronic device may not be a translation such as left, right, up, or down, and the first electronic device may move relative to the second electronic device. rotate.
故,结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一标志的移动方向与第一电子设备相对于第二电子设备的移动方向相同,包括:在第一电子设备相对于第二电子设备顺时针旋转或者逆时针旋转的情况下:第一标志相对于第二标志顺时针旋转或者逆时针旋转,或者第一标志绕以第一电子设备或者第二电子设备的屏幕中心为圆心的圆,顺时针行进或者逆时针行进。Therefore, in combination with the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, including : In the case that the first electronic device rotates clockwise or counterclockwise relative to the second electronic device: the first logo rotates clockwise or counterclockwise relative to the second logo, or the first logo rotates around the first electronic device or The center of the screen of the second electronic device is a circle with a center, and the circle moves clockwise or counterclockwise.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容,包括:在第一电子设备远离第二电子设备并进入未充电的状态时,使得桌面上显示的至少一个图标的移动方向,与第一电子设备相对于第二电子设备的移动方向相同或者相反。其中,在一些实施例中,可以通过第一电子设备中磁通量与预设第一磁通量以及预设第二磁通量的关系,来判断第一电子设备远离第二电子设备并进入未充电的状态,也即第一电子设备处于未充电状态且第一电子设备尚未脱离第二电子设备。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, according to the determined relative position change, determining the corresponding display content on the first electronic device or the second electronic device includes: : When the first electronic device is away from the second electronic device and enters an uncharged state, the movement direction of at least one icon displayed on the desktop is the same as or opposite to the movement direction of the first electronic device relative to the second electronic device. Wherein, in some embodiments, it can be judged that the first electronic device is far away from the second electronic device and enters an uncharged state based on the relationship between the magnetic flux in the first electronic device and the preset first magnetic flux and the preset second magnetic flux. That is, the first electronic device is in an uncharged state and the first electronic device has not been separated from the second electronic device.
在一些实施例中,为了提高用户体验,第一电子设备或第二电子设备桌面上的图标也可以随着用户拿起第一电子设备的过程中,第一电子设备相对于第二电子设备的相对位置变化而变化,以使用户能够根据需求,控制拿起第一电子设备的方向,以选择并点击相应的图标,启动对应的应用。可以理解,所提及的图标可以是直接显示在桌面上,也可以是以快捷应用菜单的形式显示在桌面上,本申请对此不作限制。In some embodiments, in order to improve the user experience, the icon on the desktop of the first electronic device or the second electronic device can also be changed as the user picks up the first electronic device. The relative position changes so that the user can control the direction of picking up the first electronic device according to the requirement, so as to select and click the corresponding icon to start the corresponding application. It can be understood that the mentioned icons may be directly displayed on the desktop, or may be displayed on the desktop in the form of a shortcut application menu, which is not limited in the present application.
故,结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,使得桌面上显示的至少一个图标的移动方向,与第一电子设备相对于第二电子设备的移动方向相同,包括:在检测到第一电子设备相对于第二电子设备向左移动或者向右移动的情况下,桌面上显示的至少一个图标向左移动或者向右移动。其中,图标的移动将在下文结合图11具体介绍。Therefore, in combination with the above-mentioned first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the movement direction of at least one icon displayed on the desktop is the same as that of the first electronic device relative to the second electronic device. The moving directions are the same, including: when it is detected that the first electronic device moves left or right relative to the second electronic device, at least one icon displayed on the desktop moves left or right. Wherein, the movement of icons will be specifically introduced below in conjunction with FIG. 11 .
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,使得桌面上显示的至少一个图标的移动方向,与第一电子设备相对于第二电子设备的移动方向相同,包括:在检测到第一电子设备相对于第二电子设备顺时针旋转或者逆时针旋转的情况下:桌面上显示的至少一个图标绕以第一电子设备或者第二电子设备的屏幕中心为圆心的圆,顺时针行进或者逆时针行进。其中,此部分设计的图标的移动将在下文结合图12至图14介绍。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device The direction is the same, including: when the clockwise or counterclockwise rotation of the first electronic device relative to the second electronic device is detected: at least one icon displayed on the desktop revolves around the center of the screen of the first electronic device or the second electronic device A circle with the center as the center, travels clockwise or counterclockwise. Wherein, the movement of the icons designed in this part will be introduced below in conjunction with FIG. 12 to FIG. 14 .
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,使得桌面上显示的至少一个图标的移动方向,与第一电子设备相对于第二电子设备的移动方向相反,包括:在检测到第一电子设备相对于第二电子设备向左移动或者向右移动的情况下,桌面上显示的至少一个图标向右移动或者向左移动。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device The opposite direction includes: when it is detected that the first electronic device moves left or right relative to the second electronic device, at least one icon displayed on the desktop moves right or left.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,使得桌面上显示的至少一个图标的移动方向,与第一电子设备相对于第二电子设备的移动方向相反,包括:在检测到第一电子设备相对于第二电子设备顺时针旋转或者逆时针旋转的情况下:桌面上显示的至少一个图标绕以第一电子设备或者第二电子设备的屏幕中心为圆心的圆,逆时针行进或者顺时针行进。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the movement direction of at least one icon displayed on the desktop is related to the movement direction of the first electronic device relative to the second electronic device The direction is opposite, including: when it is detected that the first electronic device rotates clockwise or counterclockwise relative to the second electronic device: at least one icon displayed on the desktop revolves around the center of the screen of the first electronic device or the second electronic device For the circle with the center, travel counterclockwise or clockwise.
为了进一步提高用户的体验,使用户在拿起第一电子设备时,也即在第一电子设备远离第二电子设备并进入未充电的状态时,第一电子设备或第二电子设备可以根据用户拿起第一电子设备的过程中,第一电子设备相对于第二电子设备的相对位置变化,显示不同的应用选项菜单。其中,在一些实施例中,不同的快捷应用菜单中的各个应用图标的显示规律可以与上文所述的图标移动方向类似。例如,当用户相对于第二电子设备朝右拿起第一电子设备时,第一电子设备上显示第一快捷应用选项菜单,当用户相对于第二电子设备朝左拿起第一电子设备时,第一电子设备上显示第二快捷应用选项菜单,且第二快捷应用选项菜单中的各个应用图标相对于第一快捷应用选项菜单中的应用图标,向左发生移动。In order to further improve the user experience, when the user picks up the first electronic device, that is, when the first electronic device is far away from the second electronic device and enters an uncharged state, the first electronic device or the second electronic device can During the process of picking up the first electronic device, the relative position of the first electronic device relative to the second electronic device changes, and different application option menus are displayed. Wherein, in some embodiments, the display rules of the respective application icons in the different shortcut application menus may be similar to the moving direction of the icons described above. For example, when the user picks up the first electronic device to the right relative to the second electronic device, the first shortcut application option menu is displayed on the first electronic device; when the user picks up the first electronic device to the left relative to the second electronic device , the second shortcut application option menu is displayed on the first electronic device, and each application icon in the second shortcut application option menu moves to the left relative to the application icon in the first shortcut application option menu.
故,结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,根据确定的相对位置变化,确定在第一电子设备或者第二电子设备上对应的显示内容,包括:在第一电子设备远离第二电子设备并进入未充电的状态时,显示与相对位置变化对应的应用选项菜单,应用选项菜单中包括多个应用的图标。其中,与相对位置变化对应的应用选项菜单中的多个应用图标可以部分相同。其中,此部分内容将在下文结合图11具体介绍。Therefore, in combination with the above-mentioned first aspect and possible implementation manners, in another possible implementation manner of the first aspect, according to the determined relative position change, determine the corresponding display content on the first electronic device or the second electronic device , including: when the first electronic device is far away from the second electronic device and enters an uncharged state, displaying an application option menu corresponding to the relative position change, where the application option menu includes icons of multiple applications. Wherein, the plurality of application icons in the application option menu corresponding to the relative position change may be partly the same. Among them, this part of the content will be specifically introduced below in conjunction with FIG. 11 .
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一电子设备包括手写笔,并且第一电子设备上的多个不同位置包括:手写笔的第一端和第二端;并且通过获取的第一电子设备上多个不同位置处的磁通量的变化情况,确定第一电子设备与第二电子设备的相对位置变化,包括:在第一端的磁通量与第二端的磁通量之差等于预设差值的情况下,确定手写笔对准第二电子设备的标准充电位置;在第一端的磁通量与第二端的磁通量之差大于预设差值的情况下,确定手写笔的第一端相对于第二端更靠近标准充电位置;在第一端的磁通量与第二端的磁通量之差小于预设差值的情况下,确定手写笔的第二端相较于第一端更靠近标准充电位置。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the first electronic device includes a stylus, and the multiple different positions on the first electronic device include: the first electronic device of the stylus One end and the second end; and by obtaining changes in the magnetic flux at multiple different positions on the first electronic device, determine the relative position change between the first electronic device and the second electronic device, including: the magnetic flux at the first end When the difference between the magnetic flux of the second end and the second end is equal to the preset difference, determine that the stylus is aligned with the standard charging position of the second electronic device; when the difference between the magnetic flux of the first end and the magnetic flux of the second end is greater than the preset difference In this case, it is determined that the first end of the stylus is closer to the standard charging position than the second end; when the difference between the magnetic flux of the first end and the magnetic flux of the second end is less than the preset difference, it is determined that the second end of the stylus is closer to the charging position. It is closer to the standard charging position than the first end.
可以理解,在第一端的磁通量与第二端的磁通量之差大于预设差值的情况下,表明手写笔的第一端相对于第二端更靠近标准充电位置,此时可以表明手写笔朝第二端所指的方向偏离第二电子设备的标准充电位置;在第一端的磁通量与第二端的磁通量之差小于预设差值的情况下,表明手写笔的第二端相较于第一端更靠近标准充电位置,也即手写笔朝第一端所指的方向偏离第二电 子设备的标准充电位置。此部分内容将在下文结合图2进行说明。It can be understood that when the difference between the magnetic flux at the first end and the magnetic flux at the second end is greater than the preset difference, it indicates that the first end of the stylus is closer to the standard charging position than the second end, and at this time it can be indicated that the stylus is moving toward The direction pointed by the second end deviates from the standard charging position of the second electronic device; when the difference between the magnetic flux of the first end and the magnetic flux of the second end is less than a preset difference, it indicates that the second end of the stylus is compared with the second end One end is closer to the standard charging position, that is, the stylus pen deviates from the standard charging position of the second electronic device in the direction pointed by the first end. This part of the content will be described below in conjunction with FIG. 2 .
其中,需要说明的是,上文所提及的预设差值对应下文具体实施例中的预设第一差值。Wherein, it should be noted that the preset difference mentioned above corresponds to the preset first difference in the following specific embodiments.
结合上述第一方面以及可能的实现方式,在第一方面的另一种可能的实现方式中,第一电子设备包括手表;并且第一电子设备上的多个不同位置包括:位于手表周边的第一位置以及第二位置,第一位置在第二位置的逆时针方向,且第一位置与手表圆心的连线与第二位置与手表圆心的连线的夹角小于180度;并且通过获取的第一电子设备上多个不同位置处的磁通量的变化情况,确定第一电子设备与第二电子设备的相对位置,包括:在第一位置的磁通量与第二位置的磁通量之差等于预设差值的情况下,确定手表对准第二电子设备的标准充电位置;在第一位置的磁通量与第二位置的磁通量之差大于预设差值的情况下,确定手表相对于第二电子设备沿着顺时针方向移动;在第一端的磁通量与第二端的磁通量之差小于预设差值的情况下,确定手写笔相对于第二电子设备沿着顺时针方向移动。With reference to the above first aspect and possible implementation manners, in another possible implementation manner of the first aspect, the first electronic device includes a watch; and the multiple different positions on the first electronic device include: a first electronic device located around the watch A position and a second position, the first position is in the counterclockwise direction of the second position, and the angle between the line connecting the first position and the center of the watch and the line connecting the second position and the center of the watch is less than 180 degrees; and through the acquired The variation of the magnetic flux at multiple different positions on the first electronic device, determining the relative position of the first electronic device and the second electronic device, including: the difference between the magnetic flux at the first position and the magnetic flux at the second position is equal to a preset difference value, it is determined that the watch is aligned with the standard charging position of the second electronic device; when the difference between the magnetic flux at the first position and the magnetic flux at the second position is greater than the preset difference, it is determined that the watch is aligned with the second electronic device along the charging position. Moving in a clockwise direction; when the difference between the magnetic flux at the first end and the magnetic flux at the second end is less than a preset difference, it is determined that the stylus is moving in a clockwise direction relative to the second electronic device.
第二方面,本申请实施例提供了一种电子设备,该电子设备包括存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a memory for storing instructions executed by one or more processors of the electronic device, and
处理器,是电子设备的处理器之一,用于执行上述第一方面以及第一方面各种可能的实现方式的人机交互方法。The processor is one of the processors of the electronic device, configured to execute the first aspect and the human-computer interaction method in various possible implementation manners of the first aspect.
第三方面,本申请实施例提供了一种计算机可读存储介质,计算机可读介质中存储有指令,其特征在于,指令在电子设备上执行时使电子设备执行上述第一方面以及第一方面各种可能的实现方式的人机交互方法。In the third aspect, the embodiment of the present application provides a computer-readable storage medium, and instructions are stored in the computer-readable medium, and it is characterized in that, when the instructions are executed on the electronic equipment, the electronic equipment executes the above-mentioned first aspect and the first aspect Various possible implementations of human-computer interaction methods.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面以及第一方面各种可能的实现方式的人机交互方法。In the fourth aspect, the embodiment of the present application provides a computer program product, which, when the computer program product runs on the electronic device, causes the electronic device to execute the above-mentioned first aspect and the human-computer interaction method of various possible implementation modes of the first aspect .
可以理解的是,上述第二方面至第四方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the above-mentioned second aspect to the fourth aspect, reference can be made to the relevant description in the above-mentioned first aspect, and details are not repeated here.
附图说明Description of drawings
图1是一些实施例提供的一例手写笔磁吸充电场景示意图;Fig. 1 is a schematic diagram of a magnetic suction charging scene of a stylus provided by some embodiments;
图2是一些实施例提供的一例手写笔中磁通量的变化示意图;Fig. 2 is a schematic diagram of the change of magnetic flux in a stylus provided by some embodiments;
图3是一些实施例提供的一例手写笔中磁通量的变化示意图;Fig. 3 is a schematic diagram of changes in magnetic flux in a stylus provided by some embodiments;
图4是一些实施例提供的一例平板电脑进行手写笔充电位置提示的用户界面(user interface,UI)变化示意图;Fig. 4 is a schematic diagram of user interface (user interface, UI) change of an example tablet computer provided by some embodiments for prompting the charging position of the stylus;
图5是一些实施例提供的一例智能手表进行充电的示意图;Fig. 5 is a schematic diagram of charging a smart watch provided by some embodiments;
图6是一些实施例提供的一例智能手表进行充电位置提示的UI变化示意图;Fig. 6 is a schematic diagram of UI changes of an example of a smart watch providing charging location prompts provided by some embodiments;
图7是一些实施例提供的一例实现本申请方法的平板电脑软件结构示意图;Fig. 7 is a schematic structural diagram of tablet computer software implementing the method of the present application provided by some embodiments;
图8是一些实施例提供的一例实现本申请方法时平板电脑软件结构之间的交互示意图;Fig. 8 is a schematic diagram of the interaction between tablet computer software structures when implementing the method of the present application provided by some embodiments;
图9是一些实施例提供的一例本申请人机交互方法的流程示意图;Fig. 9 is a schematic flowchart of an example of the applicant's computer interaction method provided by some embodiments;
图10是一些实施例提供的一例平板电脑启动快捷应用的UI变化示意图;Fig. 10 is a schematic diagram of UI changes of an example of launching a shortcut application on a tablet computer provided by some embodiments;
图11是一些实施例提供的一例平板电脑显示快捷应用选项菜单的UI示意图;Fig. 11 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
图12是一些实施例提供的一例平板电脑显示快捷应用选项菜单的UI示意图;Fig. 12 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
图13是一些实施例提供的一例平板电脑显示快捷应用选项菜单的UI示意图;Fig. 13 is a schematic UI diagram of an example of a tablet computer displaying a shortcut application option menu provided by some embodiments;
图14是一些实施例提供的一例平板电脑显示快捷应用选项菜单UI示意图;Fig. 14 is a schematic diagram of a tablet computer displaying a shortcut application option menu UI provided by some embodiments;
图15是一些实施例提供的一例实现本申请方法时平板电脑软件结构之间的交互示意图;Fig. 15 is a schematic diagram of the interaction between tablet computer software structures when implementing the method of the present application provided by some embodiments;
图16是一些实施例提供的一例平板电脑显示快捷应用选项菜单的方法流程示意图;Fig. 16 is a schematic flowchart of a method for displaying a shortcut application option menu on a tablet computer provided by some embodiments;
图17是一些实施例提供的一例手写笔的硬件结构示意图;Fig. 17 is a schematic diagram of the hardware structure of a stylus provided by some embodiments;
图18是一些实施例提供的一例平板电脑的硬件结构示意图。Fig. 18 is a schematic diagram of a hardware structure of a tablet computer provided by some embodiments.
具体实施方式Detailed ways
下面将使用本领域技术人员通常采用的术语来描述说明性实施例的各个方面。Various aspects of the illustrative embodiments are described below using terms commonly employed by those skilled in the art.
为解决上述技术问题,本申请实施例提供了一种人机交互方法。在本申请的人机交互方法中,用户将手写笔200磁吸到平板电脑100上充电时,平板电脑100上除了电量提示以外,还有手写笔200是否对准磁吸充电位置以及与磁吸充电位置的相对位置的提示,以提示用户调整手写笔200的位置使其能够对准磁吸充电位置进行充电,避免手写笔200没有对准磁吸充电位置进行充电时产生的发热现象,有利于手写笔200电池的维护保养,提高手写笔200的使用寿命。In order to solve the above technical problem, the embodiment of the present application provides a human-computer interaction method. In the human-computer interaction method of the present application, when the user magnetically attaches the stylus 200 to the tablet computer 100 for charging, the tablet computer 100 not only indicates the battery level, but also indicates whether the stylus 200 is aligned with the magnetic charging position and whether it is aligned with the magnetic attraction. The prompt of the relative position of the charging position is to prompt the user to adjust the position of the stylus 200 so that it can be charged at the magnetic charging position, so as to avoid the heating phenomenon that occurs when the stylus 200 is not aligned with the magnetic charging position for charging, which is beneficial The maintenance of the stylus 200 battery improves the service life of the stylus 200.
具体地,在本申请的人机交互方法中,平板电脑100在确定手写笔200处于磁吸充电状态的情况下,根据手写笔200磁吸线圈中左右两侧磁通量的差值与预设第一差值确定手写笔200相对于磁吸充电位置的位置。当手写笔200磁吸线圈中左右两侧磁通量的差值小于预设第一差值,则表明手写笔200磁吸线圈中左侧磁通量小于右侧磁通量,手写笔200相对于磁吸充电位置向左偏离,当手写笔200磁吸线圈中左右两磁通量的差值大于预设第一差值,则表明手写笔200磁吸线圈中左侧磁通量大于右侧磁通量,手写笔200相对于磁吸充电位置向右偏离。应理解,预设第一差值为手写笔200与磁吸充电位置对准充电时,手写笔200磁吸线圈中左右两侧磁通量的差值,预设第一差值例如可以为0。Specifically, in the human-computer interaction method of the present application, when the tablet computer 100 determines that the stylus 200 is in the magnetic charging state, according to the difference between the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 and the preset first The difference determines the position of the stylus 200 relative to the magnetic charging location. When the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right, and the stylus 200 is moving toward the magnetic charging position relative to the magnetic attraction. Left deviation, when the difference between the left and right magnetic fluxes in the magnetic coil of the stylus 200 is greater than the preset first difference, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux on the right, and the stylus 200 is charged relative to the magnetic attraction The position is offset to the right. It should be understood that the preset first difference is the difference between the left and right magnetic flux in the magnetic coil of the stylus 200 when the stylus 200 is aligned with the magnetic charging position for charging, and the preset first difference can be 0, for example.
例如,假设图2(A)中,在手写笔200对准上述磁吸充电位置200′时,手写笔200左右两侧的磁通量之间的差值为ΔW=0。那么如图2(B)所示,手写笔200磁吸线圈中右侧的磁通量WR要比左侧的磁通量WL多,即WL-WR)小于ΔW,可表明手写笔200相对于磁吸充电位置200′向左偏移。如图2(C)所示,手写笔200磁吸线圈中左侧的磁通量WL要比右侧的磁通量WR多,即(WL-WR)大于ΔW,可表明手写笔200相对于磁吸充电位置200′向右偏移。For example, assume that in FIG. 2(A), when the stylus 200 is aligned with the magnetic charging position 200 ′, the difference between the magnetic fluxes on the left and right sides of the stylus 200 is ΔW=0. Then, as shown in FIG. 2(B), the magnetic flux WR on the right side of the magnetic coil of the stylus 200 is more than the magnetic flux WL on the left side, that is, WL-WR) is less than ΔW, which can indicate that the stylus 200 is relatively magnetically charged. 200' offset to the left. As shown in Figure 2(C), the magnetic flux WL on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux WR on the right side, that is, (WL-WR) is greater than ΔW, which can indicate that the stylus 200 is relatively magnetically charged. 200' offset right.
在确定手写笔200与磁吸充电位置200′的相对位置后,平板电脑100显示与该相对位置对应的位置提示信息,以便用户按照提示信息调整手写笔200的位置,直至手写笔200与磁吸充电位置对齐。例如,当手写笔200相对于磁吸充电位置200′向左偏离,则平板电脑100显示向左偏离的位置标志,当手写笔200相对于磁吸充电位置200′向右偏离,则平板电脑100显示向右偏离的位置标志。After determining the relative position of the stylus 200 and the magnetic charging position 200 ′, the tablet computer 100 displays the position prompt information corresponding to the relative position, so that the user can adjust the position of the stylus 200 according to the prompt information until the stylus 200 is in contact with the magnetic attraction. The charging position is aligned. For example, when the stylus 200 deviates to the left relative to the magnetic charging position 200 ′, the tablet computer 100 displays a position mark deviated to the left; when the stylus 200 deviates to the right relative to the magnetic charging position 200 ′, the tablet 100 Shows position markers offset to the right.
可以理解,手写笔200距离平板电脑100越远,通过手写笔200磁吸线圈中的磁通量就越少。故在一些实施例中,平板电脑100可以根据手写笔200磁吸线圈中磁通量与预设第一磁通量的大小关系,确定手写笔200是否处于磁吸充电状态。当手写笔200磁吸线圈中磁通量大于或等于预设第一磁通量时,确定手写笔200处于磁吸充电状态,当手写笔200磁吸线圈中磁通量小于预设第一磁通量时,则确定手写笔200不处于磁吸充电状态。其中,预设磁第一通量可以是手写笔200与平板电脑100尚未完全分开前,且手写笔200进行磁吸充电时对应的某一时刻的磁通量,预设第一磁通量例如可以为W0。It can be understood that the farther the stylus 200 is from the tablet computer 100 , the less magnetic flux passes through the magnetic coil of the stylus 200 . Therefore, in some embodiments, the tablet computer 100 can determine whether the stylus 200 is in the magnetic charging state according to the magnitude relationship between the magnetic flux in the magnetic coil of the stylus 200 and the preset first magnetic flux. When the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to the preset first magnetic flux, it is determined that the stylus 200 is in the magnetic charging state; when the magnetic flux in the magnetic coil of the stylus 200 is less than the preset first magnetic flux, it is determined that the stylus 200 is not in the magnetic charging state. Wherein, the preset magnetic first flux may be the magnetic flux at a certain moment when the stylus 200 is magnetically charged before the stylus 200 is completely separated from the tablet computer 100 , and the preset first magnetic flux may be W0, for example.
例如,如图3(A)和图3(B)所示,图3(A)中手写笔200磁吸线圈中磁通量的大小为W4,小于预设第一磁通量W0,则手写笔200与平板电脑100分离,即手写笔200不处于磁吸充电状态。图3(B)中手写笔200磁吸线圈中磁通量的大小为W5,大于预设第一磁通量W0,则手写笔200处于磁吸充电状态。For example, as shown in Figure 3(A) and Figure 3(B), the size of the magnetic flux in the magnetic coil of the stylus 200 in Figure 3(A) is W4, which is less than the preset first magnetic flux W0, then the stylus 200 and the tablet The computer 100 is separated, that is, the stylus 200 is not in the magnetic charging state. In FIG. 3(B), the magnetic flux in the magnetic coil of the stylus 200 is W5, which is greater than the preset first magnetic flux W0, and the stylus 200 is in the magnetic charging state.
在另一些实施例中,平板电脑100也可以通过接近光传感器来判断手写笔200是否处于磁吸充电状态,当平板电脑100通过接近光传感器确定手写笔200与平板电脑100处于接触状态,则确定手写笔200与平板电脑100处于磁吸充电状态,当平板电脑100通过接近光传感器确定手写笔200与平板电脑100处于分离状态,则确定手写笔200与平板电脑100不处于磁吸充电状态。本申请对平板电脑100判断手写笔200是否处于磁吸充电状态的方式不作限制。下文为了便于说明,以根据手写笔200磁吸线圈中磁通量大小与预设第一磁通量大小之间的关系确定手写笔200是否处于磁吸充电状态为例介绍本申请人机交互方法。In some other embodiments, the tablet computer 100 can also determine whether the stylus 200 is in the magnetic charging state through the proximity light sensor. The stylus 200 and the tablet computer 100 are in the magnetic charging state. When the tablet computer 100 determines that the stylus 200 and the tablet computer 100 are in the separated state through the proximity light sensor, it is determined that the stylus 200 and the tablet computer 100 are not in the magnetic charging state. The present application does not limit the manner in which the tablet computer 100 determines whether the stylus 200 is in the magnetic charging state. For ease of description, the applicant's computer interaction method will be described below by taking the relationship between the magnitude of the magnetic flux in the magnetic coil of the stylus 200 and the preset first magnetic flux magnitude to determine whether the stylus 200 is in the magnetic charging state as an example.
可以理解,上述手写笔200左右两侧中“左”“右”是相对而言的,其取决于手写笔200与平板电脑100的相位摆放位置,在其他实施例中,也可以是手写笔200上下两侧,等等。It can be understood that the "left" and "right" in the left and right sides of the above-mentioned stylus 200 are relative terms, which depend on the phase placement position of the stylus 200 and the tablet computer 100. In other embodiments, the stylus may also be 200 up and down sides, and so on.
可以理解,本申请人机交互方法可应用于包括手写笔在内的各种支持磁吸式充电的电子设备,例如智能手表、智能手机、智能戒指、智能耳机、智能音箱、智能扫地机器人等等本申请对电子设备的具体类型不作任何限制。下文为了便于说明,以平板电脑100为手写笔200进行磁吸充电介绍本申请人机交互方法。It can be understood that the applicant's computer interaction method can be applied to various electronic devices that support magnetic charging, including stylus, such as smart watches, smart phones, smart rings, smart headphones, smart speakers, smart sweeping robots, etc. This application does not impose any limitation on the specific type of electronic equipment. In the following, for the convenience of explanation, the applicant's computer interaction method is introduced by using the tablet computer 100 as the stylus 200 for magnetic charging.
具体地,图4示出了在本申请人机交互方法下,手写笔200进行磁吸充电的UI变化示意图。Specifically, FIG. 4 shows a schematic diagram of changes in the UI of the stylus 200 performing magnetic charging under the computer interaction method of the present applicant.
如图4(A)所示,当用户将手写笔200放置在磁吸充电位置200′处进行磁吸充电,平板电脑100的显示界面会弹出弹窗110,且该弹窗110中同时显示手写笔200的当前电量102以及手写笔200对准磁吸充电位置200′的位置标志101。可以理解,在一些实施例中,上述弹窗110可以在显示超过预设时长后,即可消失,以避免长时间显示影响用户的其他操作,本申请对弹窗110显示的时长不作限制。As shown in FIG. 4(A), when the user places the stylus 200 at the magnetic charging position 200' for magnetic charging, a pop-up window 110 will pop up on the display interface of the tablet computer 100, and the handwriting will be displayed in the pop-up window 110 simultaneously. The current battery level 102 of the pen 200 and the position mark 101 of the stylus 200 aligned with the magnetic charging position 200'. It can be understood that, in some embodiments, the above-mentioned pop-up window 110 can disappear after being displayed for a preset duration, so as to avoid affecting other operations of the user by being displayed for a long time. The present application does not limit the display duration of the pop-up window 110 .
现假设用户将手写笔200放置在如图4(B)所示的位置处进行磁吸充电,此时手写笔200相对于上述磁吸充电位置200′向右偏离,则弹窗110内会显示手写笔200向右偏离磁吸充电位置的位置标志103,且为了提示用户向左调整手写笔200的位置,弹窗110中仍会显示虚线化的位置标志101。当用户按照位置标志101以及位置标志103调整手写笔200的位置,对准磁吸充电位置后,如图4(D)所示,弹窗110内显示实线化的位置标志101以及当前电量102。Assume now that the user places the stylus 200 at the position shown in FIG. 4(B) for magnetic charging. At this time, the stylus 200 deviates to the right relative to the above-mentioned magnetic charging position 200 ′, and the pop-up window 110 will display The stylus 200 deviates to the right from the position mark 103 of the magnetic charging position, and in order to prompt the user to adjust the position of the stylus 200 to the left, the pop-up window 110 will still display the dotted position mark 101 . When the user adjusts the position of the stylus 200 according to the position mark 101 and the position mark 103, and aligns it with the magnetic charging position, as shown in FIG. .
再假设用户将手写笔200放置在如图4(C)所示的位置处进行磁吸充电,此时手写笔200相对于上述磁吸充电位置200′向左偏离,则弹窗110内会显示手写笔200向左偏离磁吸充电位置的位置标志104,且为了提示用户向右调整手写笔200的位置,弹窗110中仍会显示虚线化的位置标志101。当用户按照位置标志101以及位置标志104调整手写笔200的位置,对准磁吸充电位置后,如图4(D)所示,弹窗110内显示实线化的位置标志101以及当前电量102。Assume that the user places the stylus 200 at the position shown in Figure 4(C) for magnetic charging. At this time, the stylus 200 deviates to the left relative to the above-mentioned magnetic charging position 200', and the pop-up window 110 will display The stylus 200 deviates to the left from the position mark 104 of the magnetic charging position, and in order to prompt the user to adjust the position of the stylus 200 to the right, the pop-up window 110 will still display the dotted position mark 101 . When the user adjusts the position of the stylus 200 according to the position mark 101 and the position mark 104, and aligns it with the magnetic charging position, as shown in FIG. .
通过上述方法,用户可在平板电脑100的弹窗提示下,将手写笔200放置在对准磁吸位置200′处进行磁吸充电,避免手写笔200此前充电发热的现象,提高手写笔的使用寿命。Through the above method, the user can place the stylus 200 at the magnetic attraction position 200′ for magnetic charging under the prompt of the pop-up window of the tablet computer 100, so as to avoid the phenomenon that the stylus 200 is heated before charging, and improve the use of the stylus. life.
应理解,在一些实施例中,平板电脑100在提示用户调整的手写笔200的位置时,不仅可以利用弹窗110进行可视化提示,还可以结合语音、振动等方式对用户进行提醒,本申请对此不作限制。It should be understood that, in some embodiments, when the tablet computer 100 prompts the user to adjust the position of the stylus 200, it can not only use the pop-up window 110 to provide visual prompts, but also remind the user in combination with voice, vibration, etc. This is not limited.
也应理解,上文以“箭头”作为手写笔200的位置标志是示例性的,并不构成对本申请中关于充电位置标志形式的限制,在其他实施例中,上述位置标志也可以为其他具有提示作用的标志,本申请对此也不作限制。It should also be understood that the "arrow" used above as the position mark of the stylus 200 is exemplary and does not constitute a limitation on the form of the charging position mark in this application. In other embodiments, the above position mark can also be other This application does not limit this to the symbol of prompting function.
还应理解,上文在平板电脑100上进行关于充电电量以及充电位置的提示也是示例性的,在其他实施例中,如果手写笔200上也配置安装了显示装置、语音提示装置或者马达等硬件设备, 那么上述提示也可以在手写笔200上进行,或者在手写笔200和平板电脑100上同时进行,本申请对此也不作限制。关于这点,将在下文结合手写笔200的硬件结构示意图简要介绍。It should also be understood that the prompting on the tablet computer 100 about the charging capacity and the charging position above is also exemplary. In other embodiments, if the stylus 200 is also equipped with hardware such as a display device, a voice prompt device or a device, the above prompts can also be performed on the stylus 200, or simultaneously performed on the stylus 200 and the tablet computer 100, which is not limited in this application. Regarding this point, a brief introduction will be made below in conjunction with a schematic diagram of the hardware structure of the stylus 200 .
如上文所言,上述方法同样适用于支持磁吸式充电的智能手表300。下面结合图5和图6介绍智能手表300利用上述方法进行充电的过程。需要说明的是,智能手表300的充电方式与手写笔200的磁吸充电方式之间的差别主要体现在二者关于充电位置以及充电电量的提示方面,下面对此展开介绍。As mentioned above, the above method is also applicable to the smart watch 300 that supports magnetic charging. The charging process of the smart watch 300 using the above method will be described below with reference to FIG. 5 and FIG. 6 . It should be noted that the difference between the charging method of the smart watch 300 and the magnetic charging method of the stylus 200 is mainly reflected in the prompts about the charging position and the charging quantity, which will be introduced below.
具体地,图5(A)和图5(B)分别示出了智能手表300的显示界面310和背面320,其中,显示界面310用于显示关于充电位置以及充电电量的提示信息以及实现其他智能手表300具备的显示功能,背面320上则设置有用于磁吸充电的充电区域330,该充电区域330中的磁吸充电位置331与图5(C)所示的充电装置400的充电区域410中的磁吸充电位置411配合放置,以实现智能手表300的磁吸充电。Specifically, FIG. 5(A) and FIG. 5(B) respectively show the display interface 310 and the back 320 of the smart watch 300, wherein the display interface 310 is used to display prompt information about the charging location and charging capacity and realize other smart watches. The display function possessed by the watch 300 is provided with a charging area 330 for magnetic charging on the back 320. The magnetic charging position 331 in the charging area 330 is the same as that in the charging area 410 of the charging device 400 shown in FIG. 5(C). The magnetic suction charging position 411 of the smart watch 300 is matched and placed to realize the magnetic suction charging of the smart watch 300 .
现假设用户将智能手表300放置在如图6(A)所示的位置进行充电,则智能手表300的显示界面310上显示充电状态的提示信息313、当前电量311,以及当前智能手表300偏离图5(C)中磁吸充电位置411的位置标志312,此时用户只需按照位置标志312所指示的方向顺时针转动智能手表300或者逆时针转动充电装置400,直至智能手表300的显示界面310上显示为图6(C)所示的位置标志315,以实现智能手表300的磁吸充电。Assuming that the user places the smart watch 300 at the position shown in Figure 6(A) for charging, the display interface 310 of the smart watch 300 displays a prompt message 313 of the charging state, a current battery level 311, and the current deviation of the smart watch 300 from the figure. The position mark 312 of the magnetic charging position 411 in 5(C), at this time, the user only needs to turn the smart watch 300 clockwise or the charging device 400 counterclockwise in the direction indicated by the position mark 312 until the display interface 310 of the smart watch 300 6(C) shows the position mark 315 in order to realize the magnetic charging of the smart watch 300.
假设用户将智能手表300放置在如图6(B)所示的位置进行充电,则智能手表300的显示界面310上显示充电状态的提示信息313、当前电量311,以及当前智能手表300偏离图5(C)中磁吸充电位置411的位置标志314,此时用户只需按照位置标志314所指示的方向逆时针转动智能手表300或者顺时针转动充电装置400,直至智能手表300的显示界面310上显示为图6(C)所示的位置标志315。Assuming that the user puts the smart watch 300 in the position shown in Figure 6(B) for charging, the display interface 310 of the smart watch 300 displays the prompt information 313 of the charging state, the current battery 311, and the current smart watch 300 deviates from the position shown in Figure 5 (C) The position mark 314 of the magnetic charging position 411 in (C), at this time, the user only needs to turn the smart watch 300 counterclockwise or the charging device 400 clockwise in the direction indicated by the position mark 314 until the display interface 310 of the smart watch 300 It is displayed as a position mark 315 shown in FIG. 6(C).
通过上述方法,用户即可在智能手表300显示界面310上相关信息的提示下,通过转动智能手表300或者充电装置400,使智能手表300的磁吸充电位置331对准充电装置400的磁吸充电位置411进行磁吸充电,避免智能手表300因未对准磁吸充电位置411导致在充电过程中产生的发热现象,提高智能手表300电池的使用寿命。Through the above method, the user can align the magnetic charging position 331 of the smart watch 300 with the magnetic charging position of the charging device 400 by turning the smart watch 300 or the charging device 400 under the prompt of relevant information on the display interface 310 of the smart watch 300 . The position 411 is used for magnetic charging, avoiding the heating phenomenon caused by the smart watch 300 not being aligned with the magnetic charging position 411 during charging, and improving the service life of the battery of the smart watch 300 .
基于上述界面变化图,下面将结合附图7详细介绍平板电脑100实现本申请的充电管理的方法所采用的系统架构以及平板电脑100上实施本申请的人机交互方法的具体过程。Based on the interface change diagram above, the system architecture adopted by the tablet computer 100 to implement the charging management method of the present application and the specific process of implementing the human-computer interaction method of the present application on the tablet computer 100 will be introduced in detail below in conjunction with FIG. 7 .
图7根据本申请实施例示出了一种用于实现本申请的人机交互方法的平板电脑100的系统架构示意框图。FIG. 7 shows a schematic block diagram of a system architecture of a tablet computer 100 for implementing the human-computer interaction method of the present application according to an embodiment of the present application.
如图7所示,平板电脑100的系统包括应用层1310、框架层1320、内核层1330以及硬件层1340。As shown in FIG. 7 , the system of the tablet computer 100 includes an application layer 1310 , a framework layer 1320 , a kernel layer 1330 and a hardware layer 1340 .
应用层1310可以包括一系列应用程序包,例如速记应用1310a,绘图应用1310b,通讯录应用1310c等程序包括。The application layer 1310 may include a series of application packages, such as shorthand application 1310a, drawing application 1310b, address book application 1310c and other programs.
框架层1320包括窗口管理服务(Windows Manager Service)1320a、快捷应用选项菜单确定模块1320b,磁通量获取模块1320c,位置标志确定模块1320d。The framework layer 1320 includes a window management service (Windows Manager Service) 1320a, a shortcut application option menu determination module 1320b, a magnetic flux acquisition module 1320c, and a position mark determination module 1320d.
在另一些实施例中,平板电脑100的系统还可以包括系统库层,该系统库层位于框架层和内核层之间,在此不做限制。In other embodiments, the system of the tablet computer 100 may further include a system library layer, which is located between the framework layer and the kernel layer, which is not limited here.
内核层1330包括显示驱动1330a。在其他实施例中,内核层1330还可以包括其他驱动,例如触控驱动、音频驱动等等在此不作限制。The kernel layer 1330 includes a display driver 1330a. In other embodiments, the kernel layer 1330 may also include other drivers, such as touch driver, audio driver, etc., which are not limited here.
硬件层1340包括显示屏1340a。在其他实施例中,硬件层1340还可以包括扬声器、马达、霍尔传感器等等实体器件,在此不作限制。The hardware layer 1340 includes a display screen 1340a. In other embodiments, the hardware layer 1340 may also include physical devices such as speakers, motors, Hall sensors, etc., which is not limited here.
基于上述图7所示的平板电脑100的系统框架,下面结合交互流程示意图具体说明时图7所示的平板电脑100实施本申请的充电管理的方法的过程中平板电脑100的系统各结构之间的具体交互过程,并具体介绍图7所示系统架构中各结构的具体功能。Based on the above-mentioned system framework of the tablet computer 100 shown in FIG. 7 , the interaction between the various structures of the tablet computer 100 system during the implementation of the charging management method of the present application by the tablet computer 100 shown in FIG. The specific interaction process, and specifically introduce the specific functions of each structure in the system architecture shown in Figure 7.
图8示出了用户从平板电脑100上拿开手写笔200所对应的平板电脑100系统内的交互过程示意图。可以理解,图8所示的交互过程中,并不限定各步骤的执行顺序。FIG. 8 shows a schematic diagram of the interaction process in the system of the tablet computer 100 corresponding to the user removing the stylus 200 from the tablet computer 100 . It can be understood that, in the interaction process shown in FIG. 8 , the execution sequence of each step is not limited.
如图8所示,该交互过程800包括:As shown in Figure 8, the interaction process 800 includes:
801,手写笔200上的霍尔传感器230采集手写笔200中磁通量。801. The Hall sensor 230 on the stylus 200 collects magnetic flux in the stylus 200 .
在本申请的一些实施例中,平板电脑100通过设置在手写笔200上的霍尔传感器获取手写笔200的磁吸线圈中磁通量。例如,如上图2中所示的,平板电脑100可以通过设置在手写笔200左侧的霍尔传感器230L获取手写笔200磁吸线圈左侧的磁通量,以及通过设置在手写笔200右侧的霍尔传感器230R来获取手写笔200磁吸线圈右侧的磁通量。In some embodiments of the present application, the tablet computer 100 obtains the magnetic flux in the magnetic coil of the stylus 200 through the Hall sensor provided on the stylus 200 . For example, as shown in FIG. 2 above, the tablet computer 100 can obtain the magnetic flux on the left side of the magnetic coil of the stylus 200 through the Hall sensor 230L arranged on the left side of the stylus 200 , and obtain the magnetic flux on the left side of the magnetic coil of the stylus 200 through the Hall sensor 230L arranged on the right side of the stylus 200 . The sensor 230R is used to obtain the magnetic flux on the right side of the magnetic coil of the stylus 200 .
802,手写笔200的霍尔传感器230将采集到的磁通量发送至平板电脑100的磁通量获取模块1320c。802 , the Hall sensor 230 of the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320c of the tablet computer 100 .
在一些实施例中,手写笔200与平板电脑100之间可以通过无信通信模块建立连接,也可以是基于通信协议连接。本申请对此不作限制。在手写笔200与平板电脑100建立通信连接后,手写笔200将采集到的磁通量发送至平板电脑100的磁通量获取模块1320c。In some embodiments, the connection between the stylus 200 and the tablet computer 100 can be established through an untrusted communication module, or based on a communication protocol. This application is not limited to this. After the stylus 200 establishes a communication connection with the tablet computer 100 , the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320 c of the tablet computer 100 .
803,平板电脑100的磁通量获取模块1320c将接收到的手写笔200的磁通量发送至位置标志确定模块1320d。803. The magnetic flux acquisition module 1320c of the tablet computer 100 sends the received magnetic flux of the stylus 200 to the position marker determination module 1320d.
804,位置标志确定模块1320d判断手写笔200的磁通量是否大于或等于预设第一磁通量。若是,则确定手写笔200处于磁吸充电状态,则进入804,即根据手写笔200左右两侧磁通量的变化情况确定手写笔200的移动方向,也即根据手写笔200左右两侧磁通量的变化情况确定手写笔200与上述磁吸充电位置200′的相对位置。若否,则表明手写笔200与平板电脑100分离,则进入801,即手写笔200的霍尔传感器230持续采集手写笔200的磁通量。804, the position marker determination module 1320d determines whether the magnetic flux of the stylus 200 is greater than or equal to a preset first magnetic flux. If so, it is determined that the stylus 200 is in the magnetic charging state, and then enters 804, that is, the direction of movement of the stylus 200 is determined according to the change of the magnetic flux on the left and right sides of the stylus 200, that is, according to the change of the magnetic flux on the left and right sides of the stylus 200 The relative position of the stylus 200 and the magnetic charging position 200 ′ is determined. If not, it means that the stylus 200 is separated from the tablet computer 100 , and then go to 801 , that is, the Hall sensor 230 of the stylus 200 continues to collect the magnetic flux of the stylus 200 .
805,位置标志确定模块1320d确定手写笔200左右两侧磁通量之间差与预设第一差值之间的大小关系,并根据手写笔200左右两侧的磁通量之差与预设第一差值之间的大小关系,确定手写笔200的移动方向以及对应的位置标志。805. The position mark determination module 1320d determines the magnitude relationship between the difference between the magnetic fluxes on the left and right sides of the stylus 200 and the preset first difference, and according to the difference between the magnetic fluxes on the left and right sides of the stylus 200 and the preset first difference The size relationship between them determines the moving direction of the stylus 200 and the corresponding position mark.
如上文所言,如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ大于预设第一差值ΔW,则表明手写笔200磁吸线圈中左侧磁通量大于右侧磁通量,故可以确定手写笔200相对于磁吸充电位置200′朝右偏离,则位置标志模块1320d确定位置标志位手写笔200朝右偏离的位置标志103(如图4(B)所示)。As mentioned above, if the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is greater than the preset first difference ΔW, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux on the right side, so it can be determined When the stylus 200 deviates to the right relative to the magnetic charging position 200 ′, the position mark module 1320 d determines the position mark 103 (as shown in FIG. 4(B )) where the stylus 200 deviates to the right.
如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ小于预设第一差值ΔW,则表明手写笔200磁吸线圈中左侧磁通量小于右侧磁通量,则可以确定手写笔200相对于磁吸充电位置200′朝左偏离,则位置标志模块1320d确定位置标志位手写笔200朝右偏离的位置标志104(如图4(C)所示)。If the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference ΔW, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right side, and it can be determined that the stylus 200 is relatively The magnetic charging position 200 ′ deviates to the left, and the position mark module 1320 d determines the position mark 104 of the position mark 104 that the stylus 200 deviates to the right (as shown in FIG. 4(C) ).
如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ等于预设第一差值ΔW,则表明手写笔200已经对准磁吸充电位置200′,则位置标志模块1320d确定位置标志位手写笔200朝右偏离的位置标志101(如图4(D)所示)。If the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is equal to the preset first difference ΔW, it indicates that the stylus 200 has been aligned with the magnetic charging position 200′, and the position flag module 1320d determines that the position flag is handwritten The position marker 101 where the pen 200 deviates to the right (as shown in FIG. 4(D)).
806,位置标志确定模块1320d向窗口管理服务1320a上报手写笔200的移动方向以及位置标志对应的标识。806, the location marker determining module 1320d reports the moving direction of the stylus 200 and the identifier corresponding to the location marker to the window management service 1320a.
可以理解,在一些实施例中,手写笔200的移动方向以及位置标志对应的信息可以为一种标识,例如朝左偏离以及朝左偏离的位置标志可以为标识“left”,朝右偏离以及朝右偏离的位置标志可以为标识“right”。可以理解,在其他实施例中,上述标识可以采用其他形式,例如数字、字符串等等,本申请对此不作限制。It can be understood that, in some embodiments, the moving direction of the stylus 200 and the information corresponding to the position mark can be a kind of identification, for example, the position mark of deviation to the left and the position deviation to the left can be the mark "left", deviation to the right and direction to the left The right-deviating position flag may be the flag "right". It can be understood that, in other embodiments, the above identifier may take other forms, such as numbers, character strings, etc., which are not limited in the present application.
807,窗口管理服务1320a向资源管理模块1320e发送请求调用对应快捷应用选项菜单的显示资源的指令。807, the window management service 1320a sends to the resource management module 1320e an instruction requesting to call the display resource corresponding to the shortcut application option menu.
可以理解,资源管理模块1320e中存储了与手写笔200的充电电量、位置标志等相关的显示资源信息,当窗口管理服务1320a需要显示对应的位置标志和充电电量时,需要向资源管理模块1320e发起资源请求指令。It can be understood that the resource management module 1320e stores the display resource information related to the charging power and the location mark of the stylus 200, and when the window management service 1320a needs to display the corresponding position mark and charging power, it needs to initiate the resource management module 1320e. Resource request directive.
可以理解,上述显示资源信息包括但不限于充电电量或位置标志的显示位置、显示图标、显示大小等等。It can be understood that the above display resource information includes, but is not limited to, the charging quantity or the display position, display icon, display size, etc. of the location mark.
808,资源管理模块1320a向窗口管理服务1320a返回对应的显示资源数据。808, the resource management module 1320a returns corresponding display resource data to the window management service 1320a.
809,窗口管理服务1320a将显示资源数据发送至显示驱动1330a。809, the window management service 1320a sends the display resource data to the display driver 1330a.
810,显示驱动1330a将显示资源数据发送至显示屏1340a。810. The display driver 1330a sends display resource data to the display screen 1340a.
811,显示屏1340a显示上述显示资源数据。811. The display screen 1340a displays the above display resource data.
上述为平板电脑100在实现本申请方法时,其内部软件结构之间的交互图。为了更好地理解本申请人机交互方法的实现方式,下面基于图9,结合上图4所示的手写笔200与平板电脑100之间的充电方式介绍本申请人机交互方法的实施细节。The foregoing is an interaction diagram of the internal software structures of the tablet computer 100 when implementing the method of the present application. In order to better understand the implementation of the applicant's computer-computer interaction method, the implementation details of the applicant's computer-computer interaction method are introduced below based on FIG.
可以理解,下述人机交互方法可以是在平板电脑100上实现的,也可以是在手写笔200上实现的,还可以是平板电脑100与手写笔200配合实现的,例如在平板电脑100上进行相关的数据处理,在手写笔200上显示当前电量提示信息以及手写笔200与磁吸充电位置200′的相对位置的提示信息,或者在手写笔200上进行相关的数据处理,在平板电脑100上显示电量提示信息以及手写笔200与磁吸充电位置200′的相对位置的提示信息,本申请对此不作限制。下文为了便于描述,以在平板电脑100实现该方法为例进行说明。It can be understood that the following human-computer interaction method can be implemented on the tablet computer 100, or can be implemented on the stylus 200, and can also be implemented by the cooperation of the tablet computer 100 and the stylus 200, for example, on the tablet computer 100 Carry out relevant data processing, display the prompt information of the current battery level on the stylus 200 and the prompt information of the relative position between the stylus 200 and the magnetic charging position 200 ′, or perform relevant data processing on the stylus 200 , and display the prompt information on the tablet computer 100 The power prompt information and the prompt information of the relative position of the stylus 200 and the magnetic charging position 200 ′ are displayed on the screen, which is not limited in the present application. For ease of description, implementation of the method on the tablet computer 100 is taken as an example for description below.
具体地,如图9所示,方法700包括:Specifically, as shown in FIG. 9, the method 700 includes:
901,获取手写笔200磁吸线圈中的磁通量。901. Acquire the magnetic flux in the magnetic coil of the stylus 200.
902,判断手写笔200磁吸线圈的磁通量是否大于预设第一磁通量。902. Determine whether the magnetic flux of the magnetic coil of the stylus 200 is greater than a preset first magnetic flux.
903,确定手写笔200不处于磁吸充电状态。903. Determine that the stylus 200 is not in the magnetic charging state.
904,确定手写笔200磁吸线圈中的左右两侧磁通量的差值与预设第一差值之间的大小。904. Determine the magnitude between the difference between the left and right magnetic fluxes in the magnetic coil of the stylus 200 and a preset first difference.
如上文所言,如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ大于预设第一差值ΔW,则表明手写笔200磁吸线圈中左侧磁通量大于右侧磁通量,故可以确定手写笔200相对于磁吸充电位置200′朝右偏离,则进入905,即平板电脑100显示手写笔200朝右偏离的位置标志103(如图4(B)所示)。As mentioned above, if the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is greater than the preset first difference ΔW, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is greater than the magnetic flux on the right side, so it can be determined The stylus 200 deviates to the right relative to the magnetic charging position 200 ′, and then enters 905 , that is, the tablet computer 100 displays the position mark 103 of the stylus 200 deviated to the right (as shown in FIG. 4(B) ).
如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ小于预设第一差值ΔW,则表明手写笔200磁吸线圈中左侧磁通量小于右侧磁通量,则可以确定手写笔200相对于磁吸充电位置200′朝左偏离,则进入906,即平板电脑100显示手写笔200相对于磁吸充电位置200′朝左偏离的位置标志104(如图4(C)所示)。If the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is less than the preset first difference ΔW, it indicates that the magnetic flux on the left side of the magnetic coil of the stylus 200 is smaller than the magnetic flux on the right side, and it can be determined that the stylus 200 is relatively If the magnetic charging position 200' deviates to the left, go to 906, that is, the tablet computer 100 displays the position mark 104 of the stylus 200 deviated to the left relative to the magnetic charging position 200' (as shown in FIG. 4(C)).
如果手写笔200磁吸线圈中左右两侧磁通量的差值Wδ等于预设第一差值ΔW,则表明手写笔200已经对准磁吸充电位置200′,则进入907,即平板电脑100显示手写笔200对准磁吸充电位置200′的位置标志101(如图4(D)所示)。If the difference Wδ of the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 is equal to the preset first difference ΔW, it indicates that the stylus 200 has been aligned with the magnetic charging position 200′, and then enters 907, that is, the tablet computer 100 displays handwriting The pen 200 is aligned with the position mark 101 of the magnetic charging position 200' (as shown in FIG. 4(D)).
905,显示手写笔200朝右偏离的位置标志。905. Display the position mark of the stylus 200 deviated to the right.
906,显示手写笔200朝左偏离的位置标志。906. Display the position mark of the stylus 200 deviated to the left.
907,显示手写笔200对准磁吸充电位置的标志。907 , displaying a sign that the stylus 200 is aligned with the magnetic charging position.
上面介绍了本申请实施例提供的人机交互方法的实现过程,为了进一步提高用户体验,在用户从平板电脑100上拿下手写笔200时,平板电脑100将直接启动快捷应用,节省用户启动应用程序的时间。The implementation process of the human-computer interaction method provided by the embodiment of the present application is described above. In order to further improve the user experience, when the user takes the stylus 200 off the tablet computer 100, the tablet computer 100 will directly start the shortcut application, saving the user from starting the application. program time.
具体地,在一些实施例中,如图10(A)至图10(B)所示,当用户从图10(A)所示的平板电脑100上拿起正在磁吸充电的手写笔200,平板电脑100即从图10(A)所示的锁屏界面120进入图10(B)所示的速记应用界面130,以使用户能够实现速记功能。Specifically, in some embodiments, as shown in FIGS. 10(A) to 10(B), when the user picks up the stylus 200 being magnetically charged from the tablet computer 100 shown in FIG. 10(A), The tablet computer 100 enters the shorthand application interface 130 shown in FIG. 10(B) from the lock screen interface 120 shown in FIG. 10(A), so that the user can realize the shorthand function.
可以理解,图10(A)中的锁屏界面120仅为示例性的,在其他实施例中,也可以为其他界面,例如平板电脑100的主界面,或者其他应用的界面,比如微信
Figure PCTCN2022134054-appb-000001
应用的界面、酷狗音乐
Figure PCTCN2022134054-appb-000002
应用的界面等等,本申请对此不作限制。
It can be understood that the lock screen interface 120 in FIG. 10(A) is only exemplary, and in other embodiments, it can also be other interfaces, such as the main interface of the tablet computer 100, or interfaces of other applications, such as WeChat
Figure PCTCN2022134054-appb-000001
Application interface, Kugou Music
Figure PCTCN2022134054-appb-000002
The application interface and the like are not limited in this application.
对应地,图10(B)中的速记应用界面也为示例性的,在一些实施例中,当用户从平板电脑100上拿开手写笔200时,平板电脑100可以启动并进入其他应用的界面,例如备忘录界面、爱奇艺
Figure PCTCN2022134054-appb-000003
应用界面等等,本申请对此也不作限制。
Correspondingly, the shorthand application interface in FIG. 10(B) is also exemplary. In some embodiments, when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 can start and enter the interface of other applications , such as memo interface, iQiyi
Figure PCTCN2022134054-appb-000003
The application interface and the like are not limited in this application.
可以理解,在一些实施例中,用户从平板电脑100上拿开手写笔200之前,平板电脑100上显示的界面,与用户将手写笔200放置在平板电脑100上进行磁吸充电时平板电脑100显示的界面有关。例如,在用户在使用上述微信应用聊天时,用户将手写笔200放置在平板电脑100上进行充电,那么此时平板电脑100上就显示微信应用的聊天界面。It can be understood that, in some embodiments, before the user removes the stylus 200 from the tablet 100, the interface displayed on the tablet 100 is the same as that of the tablet 100 when the user places the stylus 200 on the tablet 100 for magnetic charging. related to the displayed interface. For example, when the user is using the above-mentioned WeChat application to chat, the user places the stylus 200 on the tablet computer 100 for charging, and then the tablet computer 100 displays the chat interface of the WeChat application.
在另一些实施例中,当用户将手写笔200放置在平板电脑100上时,平板电脑100也可以直接从当前显示的界面进入图10(A)所示的锁屏状态,或者,当用户将手写笔200放置在平板电脑100上后,间隔若干秒,没有检测到用户在平板电脑100上的下一步操作时,再进入如图10(A)所示的锁屏状态,本申请对此也不作限制。In some other embodiments, when the user places the stylus 200 on the tablet computer 100, the tablet computer 100 may directly enter the lock screen state shown in FIG. 10(A) from the currently displayed interface, or, when the user puts the After the stylus 200 is placed on the tablet computer 100, at intervals of several seconds, when the user's next operation on the tablet computer 100 is not detected, the screen lock state as shown in FIG. 10(A) will be entered again. No limit.
还可以理解,在用户从平板电脑100上拿开手写笔200时,平板电脑100启动并进入何种应用界面,可以为平板电脑100的系统默认设置,例如用户一般使用手写笔200进行速记或者绘画,故平板电脑100可以将速记应用或者绘画应用界面作为系统默认设置界面,那么在用户从平板电脑100上拿开手写笔200时,平板电脑100则启动并进入如图10(B)所示的速记或绘图应用界面。It can also be understood that when the user removes the stylus 200 from the tablet 100, what kind of application interface the tablet 100 starts and enters can be the system default setting of the tablet 100, for example, the user generally uses the stylus 200 for shorthand or drawing , so the tablet computer 100 can use the shorthand application or drawing application interface as the system default setting interface, then when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 starts and enters the interface shown in Figure 10(B) Shorthand or drawing application interface.
在另一些实施例中,用户可以通过平板电脑100的系统设置,将上述快捷应用设置为用户经常使用的应用,那么在用户从平板电脑100上拿开手写笔200时,平板电脑100则启动并进入用户设置的应用的界面。在又一些实施例中,为了避免平板电脑100启动的应用发生冲突,在用户从平板电脑100上拿开手写笔200时,平板电脑100可以判断当前平板电脑100上有无运行其他应用程序,如果平板电脑100上没有运行其他应用程序,则启动上述快捷应用并进入上述快捷应用界面,如果平板电脑100上运行有其他应用程序,则进入用户最近使用且未关闭的应用的界面,本申请对此不作任何限制。In other embodiments, the user can set the above-mentioned shortcut application as an application frequently used by the user through the system settings of the tablet computer 100, then when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 starts and Enter the interface of the application set by the user. In some other embodiments, in order to avoid conflicts between the applications started by the tablet computer 100, when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 can determine whether other applications are currently running on the tablet computer 100, if If there are no other application programs running on the tablet computer 100, start the above-mentioned shortcut application and enter the above-mentioned shortcut application interface; No restrictions are imposed.
可以看出,上述启动并进入快捷应用的方法在一定程度上,有利于节省用户的操作步骤,提 高用户体验。但是,不难理解,上述直接进入快捷应用界面的方式,并未给予用户充分的选择空间,也即用户在从平板电脑100上拿开手写笔200时,只能被动地接受平板电脑100显示的界面,无法自主选择并控制平板电脑100要进入的快捷应用。It can be seen that, to a certain extent, the above-mentioned method of starting and entering the shortcut application is beneficial to save the user's operation steps and improve the user experience. However, it is not difficult to understand that the above-mentioned method of directly entering the shortcut application interface does not give the user sufficient choice space, that is, when the user removes the stylus 200 from the tablet computer 100, he can only passively accept the information displayed on the tablet computer 100. interface, it is impossible to independently select and control the shortcut applications to be accessed by the tablet computer 100 .
为了进一步提高用户体验,为用户提供充分的选择,在本申请的另一些实施例中,当用户从平板电脑100上拿开手写笔200时,平板电脑100不是直接进入某个应用的界面,而是显示包括多种应用的选项菜单界面。并且,该选项菜单界面的内容,随着用户从平板电脑100上拿开手写笔200的方向不同而变化,以为用户提供充分的选择空间,提高用户体验。In order to further improve the user experience and provide users with sufficient choices, in other embodiments of the present application, when the user removes the stylus 200 from the tablet computer 100, the tablet computer 100 does not directly enter the interface of a certain application, but It is an option menu interface that displays various applications. Moreover, the content of the option menu interface changes according to the direction in which the user removes the stylus 200 from the tablet computer 100 , so as to provide sufficient selection space for the user and improve user experience.
具体地,在本申请的实施例中,平板电脑100根据手写笔200与平板电脑100分离时,磁吸线圈左右两侧的磁通量的差值与预设第二差值之间的关系,判断手写笔200相对于平板电脑100分离时的方向。其中,预设第二差值为手写笔200与平板电脑100分离前,进行磁吸充电时所处位置的,手写笔200磁吸线圈左右两侧的磁通量的差值,预设第二差值例如可以为0。可以理解,当用户从平板电脑100上拿起手写笔200时,手写笔200处于对准上述磁吸充电位置200′的状态,则预设第二差值与上述预设第一差值相等。Specifically, in the embodiment of the present application, the tablet computer 100 judges handwriting according to the relationship between the difference between the magnetic flux on the left and right sides of the magnetic coil and the preset second difference when the stylus 200 is separated from the tablet computer 100 . The orientation of the pen 200 when detached relative to the tablet computer 100 . Wherein, the preset second difference is the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 at the position where the stylus 200 is magnetically charged before it is separated from the tablet 100, and the second difference is preset For example, it can be 0. It can be understood that when the user picks up the stylus 200 from the tablet computer 100 and the stylus 200 is aligned with the magnetic charging position 200 ′, the preset second difference is equal to the preset first difference.
如果手写笔200与平板电脑100分离时,手写笔100磁吸线圈左右两侧的磁通量的差值大于预设第二差值,则表明手写笔200朝着与预设第二差值对应的位置相同的方向移动,则显示第一快捷应用选项菜单界面,如果平板电脑100根据手写笔200与平板电脑100分离时,手写笔100磁吸线圈左右两侧的磁通量的差值小于预设第二差值,则表明手写笔200朝着与预设第二差值对应的位置相反的方向移动,则显示与第一快捷应用选项菜单界面不同的第二快捷应用选项菜单界面。If when the stylus 200 is separated from the tablet computer 100, the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 100 is greater than the preset second difference, indicating that the stylus 200 is moving towards the position corresponding to the preset second difference. Moving in the same direction, the first shortcut application option menu interface is displayed. If the tablet computer 100 is separated from the tablet computer 100 according to the stylus 200, the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 100 is less than the preset second difference value, it indicates that the stylus 200 moves in a direction opposite to the position corresponding to the preset second difference, and then a second shortcut application option menu interface different from the first shortcut application option menu interface is displayed.
在本申请的一些实施例中,如上述所述,平板电脑100可以根据手写笔200磁吸线圈中磁通量的大小,来确定手写笔200是否处于磁吸充电状态,也即手写笔200是否与平板电脑100分离。当手写笔200磁吸线圈中磁通量大于或等于预设第二磁通量时,确定手写笔200将要与平板电脑100分离,然后根据此时手写笔200磁吸线圈中左右两侧磁通量的差值与预设第一差值之间的关系,判断手写笔200相对于平板电脑100分离时的方向。其中,预设第二磁通量为手写笔200与平板电脑100分离前某一时刻的磁通量,预设第二磁通量小于或等于预设第一磁通量,预设第二磁通量例如可以为W1。In some embodiments of the present application, as described above, the tablet computer 100 can determine whether the stylus 200 is in the magnetic charging state according to the magnitude of the magnetic flux in the magnetic coil of the stylus 200, that is, whether the stylus 200 is connected to the tablet. The computer 100 is separated. When the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to the preset second magnetic flux, it is determined that the stylus 200 will be separated from the tablet computer 100, and then according to the difference between the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 at this time and the predetermined The relationship between the first difference values is assumed to determine the direction of the stylus 200 when it is separated from the tablet computer 100 . Wherein, the preset second magnetic flux is the magnetic flux at a certain moment before the stylus 200 is separated from the tablet computer 100 , the preset second magnetic flux is less than or equal to the preset first magnetic flux, and the preset second magnetic flux can be, for example, W1.
具体地,图11示出了在手写笔200相对于平板电脑100朝不同方向分离时,平板电脑100上显示的快捷应用选项菜单UI变化示意图。Specifically, FIG. 11 shows a schematic diagram of UI changes of the shortcut application option menu displayed on the tablet computer 100 when the stylus 200 is separated from the tablet computer 100 in different directions.
如图11(A)所示,在用户从相对于图2中的磁吸充电位置200′垂直向上拿起手写笔200情况下,平板电脑100的S区域显示选项菜单界面140,该界面140内包括“健康应用”141、“天气应用”142、“浏览器应用”143、“相机应用”144、“电话应用”145。As shown in FIG. 11(A), when the user picks up the stylus 200 vertically upwards relative to the magnetic charging position 200' in FIG. Including "Health Application" 141 , "Weather Application" 142 , "Browser Application" 143 , "Camera Application" 144 , and "Phone Application" 145 .
如图11(B)所示,在用户从相对于图2中磁吸充电位置200′向左拿起手写笔200的情况下,平板电脑100的S区域则显示选项菜单界面150,该界面150内包括“浏览器应用”143、“相机应用”144、“电话应用”145、“短消息应用”146、“联系人应用”147。对比图11(A)可看出,界面150中包括的应用相当于是界面140中包括的应用向左发生移动。As shown in Figure 11(B), when the user picks up the stylus 200 from the magnetic charging position 200' in Figure 2 to the left, the S area of the tablet computer 100 displays an option menu interface 150, which Including "browser application" 143, "camera application" 144, "phone application" 145, "short message application" 146, and "contact application" 147. Comparing FIG. 11(A), it can be seen that the applications included in the interface 150 are equivalent to the applications included in the interface 140 moving to the left.
如图11(C)所示,在用户从相对于图2中磁吸充电位置200′向右拿起手写笔200的情况下,平板电脑100的S区域则显示选项菜单界面160,该界面160内包括“图库应用”138、“速记应用”139、“健康应用”141、“天气应用”142、“浏览器应用”143。对比图11(A)可看出,界面160中包括的应用相当于是界面140中包括的应用向右发生移动。As shown in Figure 11 (C), when the user picks up the stylus 200 from the magnetic charging position 200' in Figure 2 to the right, the S area of the tablet computer 100 displays an option menu interface 160, which It includes "gallery application" 138, "shorthand application" 139, "health application" 141, "weather application" 142, and "browser application" 143. Comparing FIG. 11(A), it can be seen that the applications included in the interface 160 are equivalent to the applications included in the interface 140 moving to the right.
可以理解,上述各个选项菜单界面中包括的应用仅为示例性的,在一些实施例中,上述各个选项菜单界面中还可以包括其他应用,并且各个选项菜单界面中包括的应用的排布顺序可以是具有类似于界面140、界面150、界面160所包括的应用的排布规律,本申请对此不作限制。It can be understood that the applications included in the above-mentioned various option menu interfaces are only exemplary. In some embodiments, the above-mentioned various option menu interfaces may also include other applications, and the arrangement order of the applications included in each option menu interface may be It has an arrangement rule similar to that of the applications included in the interface 140, the interface 150, and the interface 160, which is not limited in the present application.
可以理解,上述各个选项菜单界面中包括的应用可以是在用户通过平板电脑100系统设置好就固定不变的,也可以动态变化的,例如每间隔若干时长后就按照用户使用习惯刷新上述各个选项菜单中包括的应用,本申请对此也不作任何限制。It can be understood that the applications included in the above-mentioned various option menu interfaces may be fixed after the user sets the system through the tablet computer 100, or may change dynamically. The applications included in the menu are not limited by this application.
可以理解,上述在平板电脑100上根据用户拿起手写笔200时的不同方向,而显示的不同的选项菜单界面的方法同样也可以适用于智能手表300。下面结合图12至图13对此展开介绍。其中,关于用户从充电装置拿起智能手表300前,智能手表300的显示界面的内容可参考上文有关平板电脑100显示界面的描述,此处不再赘述。It can be understood that the above method of displaying different option menu interfaces on the tablet computer 100 according to different directions when the user picks up the stylus 200 can also be applied to the smart watch 300 . This will be introduced below in conjunction with FIG. 12 to FIG. 13 . For the content of the display interface of the smart watch 300 before the user picks up the smart watch 300 from the charging device, please refer to the above description about the display interface of the tablet computer 100 , which will not be repeated here.
如图12(A)所示,用户相对于充电装置400向上拿起智能手表300,智能手表300则进入如图12(B)所示的选项菜单界面330,该界面330包括“图库应用”301、“相机应用”302、“电话应用”303。As shown in FIG. 12(A), the user picks up the smart watch 300 relative to the charging device 400, and the smart watch 300 enters an option menu interface 330 as shown in FIG. , "Camera Application" 302, "Phone Application" 303.
如图13(A)所示,用户相对于充电装置400向右拿起智能手表300,智能手表300则进入如图13(B)所示的选项菜单界面340,该界面330包括“图库应用”301、“相机应用”302、“电话应用”303、“信息应用”304、“联系人应用”305。对比图12(B)可知,图13(B)界面340包括的应用相当于是界面330中包括的应用顺时针旋转得到的。As shown in FIG. 13(A), the user picks up the smart watch 300 to the right relative to the charging device 400, and the smart watch 300 enters an option menu interface 340 as shown in FIG. 13(B), and the interface 330 includes "Gallery Application" 301 , “Camera Application” 302 , “Phone Application” 303 , “Message Application” 304 , and “Contacts Application” 305 . Comparing FIG. 12(B), it can be seen that the applications included in the interface 340 in FIG. 13(B) are obtained by rotating the applications included in the interface 330 clockwise.
如图14(A)所示,用户相对于充电装置400向左拿起智能手表300,智能手表300则进入如图14(B)所示的选项菜单界面350,该界面330包括“相机应用”302、“电话应用”303、“信息应用”304、“联系人应用”305、“图库应用”306。对比图12(B)可知,图14(B)界面360包括的应用相当于是界面330中包括的应用逆时针旋转得到的。As shown in FIG. 14(A), the user picks up the smart watch 300 to the left relative to the charging device 400, and the smart watch 300 enters the option menu interface 350 as shown in FIG. 14(B), and the interface 330 includes "camera application" 302 , "phone application" 303 , "information application" 304 , "contact application" 305 , and "gallery application" 306 . Comparing FIG. 12(B), it can be seen that the applications included in the interface 360 in FIG. 14(B) are obtained by rotating the applications included in the interface 330 counterclockwise.
通过上述方法,平板电脑100即可根据用户从平板电脑100上拿起手写笔200的方向,为用户提供包括丰富快捷应用的选项菜单界面,供用户选择。同理,智能手表300也可以根据用户从充电装置400上拿起智能手表300的方向的不同,为用户提供包括多种快捷应用的选项菜单界面,供用户选择。Through the above method, the tablet computer 100 can provide the user with an option menu interface including abundant shortcut applications according to the direction in which the user picks up the stylus 200 from the tablet computer 100 for the user to choose. Similarly, the smart watch 300 can also provide the user with an option menu interface including a variety of shortcut applications according to the direction in which the user picks up the smart watch 300 from the charging device 400 for the user to choose.
图15示出了用户从平板电脑100上拿开手写笔200所对应的平板电脑100系统内的交互过程示意图。可以理解,图15所示的交互过程中,并不限定各步骤的执行顺序。并且,方法1500中与上述方法中相同或近似的实现过程可参考上述相关描述,下文也不再赘述。FIG. 15 shows a schematic diagram of the interaction process in the system of the tablet computer 100 corresponding to the user removing the stylus 200 from the tablet computer 100 . It can be understood that, in the interaction process shown in FIG. 15 , the execution sequence of each step is not limited. In addition, for the implementation process in method 1500 that is the same as or similar to that in the above method, reference may be made to the above related description, and details will not be repeated below.
如图15所示,该交互过程1500包括:As shown in Figure 15, the interaction process 1500 includes:
1501,手写笔200上的霍尔传感器230采集手写笔200中磁通量。1501. The Hall sensor 230 on the stylus 200 collects the magnetic flux in the stylus 200 .
1502,手写笔200的霍尔传感器230将采集到的磁通量发送至平板电脑100的磁通量获取模块1320c。1502 , the Hall sensor 230 of the stylus 200 sends the collected magnetic flux to the magnetic flux acquisition module 1320c of the tablet computer 100 .
1503,平板电脑100的磁通量获取模块1320c将接收到的手写笔200的磁通量发送至快捷应用选项菜单确定模块1320b。1503, the magnetic flux acquisition module 1320c of the tablet computer 100 sends the received magnetic flux of the stylus 200 to the shortcut application option menu determination module 1320b.
1503,快捷应用选项菜单确定模块1320b判断手写笔200的磁通量是否大于或等于预设第二磁通量。若是,则确定手写笔200与平板电脑100处于将要分离的状态,则进入1505,即根据手写笔200左右两侧磁通量的变化情况确定手写笔200的移动方向。若否,则表明手写笔200处于充电状态,则进入1501,即手写笔200的霍尔传感器230持续采集手写笔200的磁通量。1503. The shortcut application option menu determination module 1320b determines whether the magnetic flux of the stylus 200 is greater than or equal to a preset second magnetic flux. If yes, it is determined that the stylus 200 and the tablet computer 100 are about to be separated, and then go to 1505 , that is, determine the moving direction of the stylus 200 according to the change of the magnetic flux on the left and right sides of the stylus 200 . If not, it indicates that the stylus 200 is in the charging state, and then go to step 1501 , that is, the Hall sensor 230 of the stylus 200 continues to collect the magnetic flux of the stylus 200 .
1505,快捷应用选项菜单确定模块1320b确定手写笔200左右两侧磁通量之间差与预设第二 差值之间的大小关系,并根据手写笔200左右两侧的磁通量之差与预设第二差值之间的大小关系,确定手写笔200的移动方向以及对应的快捷应用选项菜单。1505, the shortcut application option menu determination module 1320b determines the size relationship between the difference between the magnetic flux on the left and right sides of the stylus 200 and the preset second difference, and according to the difference between the magnetic flux on the left and right sides of the stylus 200 and the preset second difference The magnitude relationship between the difference values determines the moving direction of the stylus 200 and the corresponding shortcut application option menu.
其中,具体实施细节将下下文方法1600中介绍。Wherein, specific implementation details will be introduced in method 1600 below.
1506,快捷应用选项菜单确定模块1320b向窗口管理服务1320a上报手写笔200的移动方向以及快捷应用选项菜单对应的标识。1506, the shortcut application option menu determination module 1320b reports the moving direction of the stylus 200 and the corresponding identifier of the shortcut application option menu to the window management service 1320a.
1507,窗口管理服务1320a向资源管理模块1320e发送请求调用对应快捷应用选项菜单的显示资源的指令。1507, the window management service 1320a sends an instruction to the resource management module 1320e requesting to call the display resource corresponding to the shortcut application option menu.
1508,资源管理模块1320a向窗口管理服务1320a返回对应的显示资源数据。1508, the resource management module 1320a returns the corresponding display resource data to the window management service 1320a.
1509,窗口管理服务1320a将显示资源数据发送至显示驱动1330a。1509, the window management service 1320a sends the display resource data to the display driver 1330a.
1510,显示驱动1330a将显示资源数据发送至显示屏1340a。1510. The display driver 1330a sends display resource data to the display screen 1340a.
1511,显示屏1340a显示上述显示资源数据。1511. The display screen 1340a displays the above display resource data.
为了更好地理解上述方法的实现方式,下面基于图16,结合图11所示的平板电脑100启动并显示快捷应用选项菜单界面的方式介绍上述方法在平板电脑100上的实施细节。In order to better understand the implementation of the above method, the implementation details of the above method on the tablet computer 100 will be introduced below based on FIG. 16 and in combination with the way the tablet computer 100 shown in FIG.
具体地,如图16所示,方法1600包括:Specifically, as shown in Figure 16, method 1600 includes:
1601,获取手写笔200的磁吸线圈的磁通量。1601. Acquire the magnetic flux of the magnetic coil of the stylus 200.
其中,平板电脑100获取手写笔200的磁吸线圈的磁通量的方式与上述方法701中一致,此处不再赘述。Wherein, the manner in which the tablet computer 100 obtains the magnetic flux of the magnetic coil of the stylus 200 is consistent with the method 701 described above, and will not be repeated here.
1602,判断手写笔200磁吸线圈中磁通量是否大于或等于预设第二磁通量。如果手写笔200磁吸线圈中磁通量大于或等于预设第二磁通量,则表明手写笔200将要与平板电脑100分离,则进入1603,即继续判断手写笔100磁吸线圈中左右两侧的磁通量的差值与预设第二差值之间的大小,以判断手写笔100相对于平板电脑100分离时的方向;如果手写笔200磁吸线圈中磁通量小于预设第二磁通量,则表明手写笔200仍处于磁吸充电阶段,则进入1602,即持续检测手写笔200磁吸线圈中磁通量的大小,以确定手写笔200何时将要与平板电脑100分离。1602. Determine whether the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to a preset second magnetic flux. If the magnetic flux in the magnetic coil of the stylus 200 is greater than or equal to the preset second magnetic flux, it indicates that the stylus 200 will be separated from the tablet computer 100, and then enter 1603, that is, continue to judge the magnetic flux of the left and right sides of the magnetic coil of the stylus 100 The magnitude between the difference and the preset second difference is used to determine the direction of the stylus 100 when it is separated from the tablet computer 100; Still in the magnetic charging stage, go to step 1602 , that is, continuously detect the magnitude of the magnetic flux in the magnetic coil of the stylus 200 to determine when the stylus 200 will be separated from the tablet computer 100 .
其中,判断手写笔200中磁通量变化情况的方式可参考上述方法700中的相关描述,此处不再赘述。Wherein, the way of judging the change of the magnetic flux in the stylus 200 can refer to the relevant description in the above method 700, and will not be repeated here.
1603,判断手写笔200磁吸线圈中左右两侧的磁通量的差值与预设第二差值之差的正负。1603. Determine whether the difference between the magnetic flux on the left and right sides of the magnetic coil of the stylus 200 and the difference between the preset second difference is positive or negative.
如上文所述,预设第二差值是手写笔200与平板电脑100分离前,手写笔200进行充电时的磁吸线圈左右两侧的磁通量的差值。As mentioned above, the preset second difference is the difference between the magnetic fluxes on the left and right sides of the magnetic coil when the stylus 200 is charging before the stylus 200 is separated from the tablet computer 100 .
可以理解,当手写笔200与平板电脑100分离时,手写笔200磁吸线圈中左右两侧的磁通量的差值如果大于预设第二差值,则表明手写笔200朝着与预设第二差值对应的方向相同的方向移动,则进入1604,即显示第一快捷应用选项菜单。It can be understood that when the stylus 200 is separated from the tablet computer 100, if the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is greater than the preset second difference, it indicates that the stylus 200 is moving towards the preset second difference. If the direction corresponding to the difference value moves in the same direction, go to step 1604, that is, display the first shortcut application option menu.
当手写笔200与平板电脑100分离时,手写笔200磁吸线圈中左右两侧的磁通量的差值如果小于预设第二差值,则表明手写笔200朝着与预设第二差值对应的方向相反的方向移动,则进入1605,即显示第二快捷应用选项菜单。When the stylus 200 is separated from the tablet computer 100, if the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is less than the preset second difference, it indicates that the stylus 200 is moving towards the preset second difference. If the user moves in the opposite direction to the above, the process enters 1605, that is, the second shortcut application option menu is displayed.
当手写笔200与平板电脑100分离时,手写笔200磁吸线圈中左右两侧的磁通量的差值如果等于预设第二差值,则表明手写笔200在于平板电脑100分离时,并未发生相对方向上的偏离(如图11(A)所示),则进入1606,即显示第三快捷应用选项菜单。When the stylus 200 is separated from the tablet computer 100, if the difference between the magnetic fluxes on the left and right sides of the magnetic coil of the stylus 200 is equal to the preset second difference, it indicates that the stylus 200 has not occurred when the tablet 100 is separated. If there is a deviation in the relative direction (as shown in FIG. 11(A)), go to step 1606, that is, display the third shortcut application option menu.
例如,假设手写笔200与平板电脑100分离前,手写笔200进行磁吸充电的位置在上述磁吸充电位置200′的右侧,此时预设第二差值为W2(且W2大于0),且手写笔200与平板电脑100 分离时的方向也是朝右,那么在手写笔200与平板电脑100分离时,手写笔200磁吸线圈中左右两侧磁通量之差为W3,如果W3大于W2,则表明手写笔200磁吸线圈中左侧的磁通量与右侧的磁通量之差进一步增大,也即手写笔200相对于上述磁吸充电位置200′再次向右发生移动,此时则显示第一快捷应用菜单。For example, assuming that before the stylus 200 is separated from the tablet computer 100, the magnetic charging position of the stylus 200 is on the right side of the above-mentioned magnetic charging position 200′, at this time, the preset second difference is W2 (and W2 is greater than 0). , and the direction when the stylus 200 is separated from the tablet computer 100 is also towards the right, then when the stylus 200 is separated from the tablet computer 100, the difference in magnetic flux between the left and right sides of the magnetic coil of the stylus 200 is W3, if W3 is greater than W2, It indicates that the difference between the magnetic flux on the left side and the magnetic flux on the right side in the magnetic coil of the stylus 200 further increases, that is, the stylus 200 moves to the right again relative to the above-mentioned magnetic charging position 200 ′, and at this time, the first Quick app menu.
可以理解,上述判断过程同样适用于预设第二差值小于0或者等于0的情况,本申请对此不作赘述。It can be understood that the above judgment process is also applicable to the case where the preset second difference is less than 0 or equal to 0, which will not be described in detail in this application.
1604,显示第一快捷应用选项菜单。1604. Display the first shortcut application option menu.
在一些实施例中,第一快捷应用选项菜单可以是用户根据自身喜好,通过平板电脑100的系统设置自行设置的。在另一些实施例中,第一快捷应用选项菜单也可以是平板电脑100按照用户的使用习惯生成的。其中,平板电脑100可以根据用户使用某个应用的习惯,每间隔预设时长更新第一快捷应用选项菜单。例如,平板电脑100可以根据用户使用具体应用的次数,每间隔预设时长更新第一快捷应用选项菜单。其中,预设时长可以为1天、2天或7天等时长,本申请对此不作限制。In some embodiments, the first shortcut application option menu can be set by the user through the system settings of the tablet computer 100 according to his own preferences. In some other embodiments, the first shortcut application option menu may also be generated by the tablet computer 100 according to the usage habits of the user. Wherein, the tablet computer 100 may update the first shortcut application option menu at preset time intervals according to the user's habit of using a certain application. For example, the tablet computer 100 may update the first shortcut application option menu at preset intervals according to the number of times the user uses a specific application. Wherein, the preset duration may be 1 day, 2 days or 7 days, etc., which is not limited in this application.
1605,显示第二快捷应用选项菜单。1605. Display a second shortcut application option menu.
其中,第二快捷应用选项菜单的设置与上第一快捷应用选项菜单的设置方式类似,此处不再赘述。在一些实施例中,第二快捷应用选项菜单中包括的应用选项可以与第一快捷应用选项菜单中包括的应用选项部分相同,例如图11(A)至图11(C)所示的,选项菜单140与选项菜单150以及选项菜单160中有相同的应用程序。在另一些实施例中,第二快捷应用选项菜单中包括的应用选项可与第一快捷应用选项菜单中包括的应用选项完全不同。本申请对此不作限制。Wherein, the setting method of the second shortcut application option menu is similar to that of the first shortcut application option menu above, and will not be repeated here. In some embodiments, the application options included in the second shortcut application options menu may be partly the same as the application options included in the first shortcut application options menu, for example, as shown in FIG. 11(A) to FIG. 11(C), the option Menu 140 has the same applications as options menu 150 and options menu 160 . In some other embodiments, the application options included in the second shortcut application option menu may be completely different from the application options included in the first shortcut application option menu. This application is not limited to this.
1606,显示第三快捷应用选项菜单。1606. Display a third shortcut application option menu.
其中,第三快捷应用选项菜单的设置与上第一快捷应用选项菜单、第二快捷应用选项菜单的设置方式类似,此处不再赘述。Wherein, the setting method of the third shortcut application option menu is similar to that of the first shortcut application option menu and the second shortcut application option menu above, and will not be repeated here.
在介绍了本申请各实施例提供的方法后,下面介绍上述各个实施例中涉及到的部分硬件结构及其功能。After introducing the methods provided by the various embodiments of the present application, the following describes the partial hardware structures and functions involved in the above-mentioned various embodiments.
图17示出了本申请的实施例提供的一例手写笔200的硬件结构示意图。FIG. 17 shows a schematic diagram of a hardware structure of a stylus 200 provided by an embodiment of the present application.
手写笔200可以包括微处理器210,存储器220,霍尔传感器230,接近光传感器240,电源管理单元250,电源260。可以理解的是,本申请实施例示意的结果并不构成对手写笔200的具体限定。The stylus 200 may include a microprocessor 210 , a memory 220 , a Hall sensor 230 , a proximity light sensor 240 , a power management unit 250 , and a power supply 260 . It can be understood that the results shown in the embodiment of the present application do not constitute a specific limitation on the stylus 200 .
在本申请的另一些实施例中,手写笔200可以包括比图示更多或更少的部件,例如,显示屏、马达、扬声器、压力传感器等等,或者组合某些部件,或者拆分某些部件,或者不同的部件的布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。本申请对此不作限制。In other embodiments of the present application, the stylus 200 may include more or fewer components than those shown in the illustration, for example, a display screen, a motor, a speaker, a pressure sensor, etc., or some components may be combined, or some components may be separated. components, or different arrangements of components. The illustrated components may be realized in hardware, software, or a combination of software and hardware. This application is not limited to this.
微处理器210,用于对手写笔200各个传感器,例如霍尔传感器230、接近光传感器240采集到的数据进行分析处理,并且将处理结果存储在存储器220中,或者通过无线通信模块(图中未示出)发送至平板电脑100,以进行后续处理。在本申请的一些实施例中,微处理器210可以利用上述方法,根据霍尔传感器230获取的手写笔200磁吸线圈中的磁通量判断手写笔200是否正在进行磁吸充电,以及手写笔200相对于平板电脑100发生的位置移动,然后,将处理结果发送至平板电脑100上,使平板电脑100根据处理结果显示相应的提示信息或者快捷应用选项菜单界面。The microprocessor 210 is used to analyze and process the data collected by the various sensors of the stylus 200, such as the Hall sensor 230 and the proximity light sensor 240, and store the processing results in the memory 220, or through the wireless communication module (in the figure) not shown) to the tablet computer 100 for subsequent processing. In some embodiments of the present application, the microprocessor 210 can use the above method to determine whether the stylus 200 is being magnetically charged according to the magnetic flux in the magnetic coil of the stylus 200 acquired by the Hall sensor 230, and the stylus 200 is relatively The position of the tablet computer 100 is moved, and then the processing result is sent to the tablet computer 100, so that the tablet computer 100 displays corresponding prompt information or a shortcut application option menu interface according to the processing result.
存储器220可以用于存储计算机可执行程序代码,可执行程序代码包括指令。存储器220可 以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序等。存储数据区可存储平板电脑100使用过程中所创建的数据,例如平板电脑100获取的手写笔200的磁通量或者微处理器210实现上述各个实施例所述方法时产生的中间结果。在本申请的实施例,存储器220中可以存储上述图4至图14中对应的显示界面的显示数据,以及手写笔200的磁通量。The memory 220 may be used to store computer-executable program code, which includes instructions. The memory 220 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, an application program required by at least one function, and the like. The storage data area can store data created during the use of the tablet computer 100 , such as the magnetic flux of the stylus 200 acquired by the tablet computer 100 or the intermediate results generated when the microprocessor 210 implements the methods described in the above-mentioned embodiments. In the embodiment of the present application, the memory 220 may store the display data of the display interface corresponding to the above-mentioned FIGS. 4 to 14 and the magnetic flux of the stylus 200 .
电源管理模块250用于从充电器接收充电输入。电源管理模块250用于连接电池260,微处理器10。电源管理模块250接收电池260的输入,为微处理器210,存储器220,霍尔传感器230,接近光传感器240供电。在本申请的一些实施例中,手写笔200可以根据电源管理模块250的检测的充电功率来判断手写笔200是否正进行磁吸充电,例如,假设全功率充电时充电功率为90%,那么当电源管理模块250检测到手写笔200的充电功率小于5%时,即可确定手写笔200此时不处于磁吸充电状态,本申请对此不作限制。The power management module 250 is configured to receive charging input from the charger. The power management module 250 is used for connecting the battery 260 and the microprocessor 10 . The power management module 250 receives the input of the battery 260 to provide power for the microprocessor 210 , the memory 220 , the Hall sensor 230 and the proximity light sensor 240 . In some embodiments of the present application, the stylus 200 can determine whether the stylus 200 is being magnetically charged according to the detected charging power of the power management module 250. For example, assuming that the charging power is 90% when charging at full power, then when When the power management module 250 detects that the charging power of the stylus 200 is less than 5%, it can determine that the stylus 200 is not in the magnetic charging state at this time, which is not limited in this application.
接近光传感240,可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外光二极管。平板电脑100通过发光二极管向外发射红外光。平板电脑100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定平板电脑100附近有物体。当检测到不充分的反射光时,平板电脑100可以确定平板电脑100附近没有物体。平板电脑100可以利用接近光传感器240检测用户手持手写笔200离开平板电脑100,以确定手写笔200将要与平板电脑100分离。 Proximity light sensing 240, may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light diodes. The tablet computer 100 emits infrared light through the LED. Tablet 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the tablet computer 100 . When insufficient reflected light is detected, the tablet computer 100 may determine that there is no object near the tablet computer 100 . The tablet computer 100 can use the proximity light sensor 240 to detect that the user holds the stylus 200 away from the tablet computer 100 to determine that the stylus 200 will be separated from the tablet computer 100 .
霍尔传感器230,用于检测通过手写笔200磁吸线圈中磁通量的大小。霍尔传感器230检测到的磁通量大小不仅可以直接以磁通量(单位:韦伯)表示,也可以通过其他间接方式表示,例如霍尔传感器230可以将磁通量的大小以电流(单位:安培)或者电压(单位:伏特)的方式间接表示出来,本申请对此不做限制。在本申请的一些实施例中,霍尔传感器230可以为2个(230L和230R),分别设置在如图6或图7所示的手写笔200的左右两侧,以检测手写笔200左右两侧的磁通量大小。在另一些实施例中,霍尔传感器230也可以是多个,按照一定规律或者无序地排布在手写笔200进行磁吸充电的一侧。在其他实施例中,霍尔传感器230还可以以霍尔传感器阵列的形式设置在手写笔200内。应理解,本申请对霍尔传感器230的数量以及排布方式不作限制。The Hall sensor 230 is used to detect the magnitude of the magnetic flux passing through the magnetic coil of the stylus 200 . The magnitude of the magnetic flux detected by the Hall sensor 230 can not only be expressed directly by magnetic flux (unit: Weber), but also can be expressed in other indirect ways. For example, the Hall sensor 230 can express the magnitude of the magnetic flux by current (unit: ampere) or voltage (unit: : volts), which is not limited in this application. In some embodiments of the present application, there may be two Hall sensors 230 (230L and 230R), which are respectively arranged on the left and right sides of the stylus 200 as shown in FIG. 6 or FIG. side magnetic flux. In some other embodiments, there may be multiple Hall sensors 230 , which are arranged regularly or randomly on the side of the stylus 200 where magnetic charging is performed. In other embodiments, the Hall sensor 230 can also be arranged in the stylus 200 in the form of a Hall sensor array. It should be understood that the present application does not limit the number and arrangement of the Hall sensors 230 .
图18示出了根据本申请的实施例的平板电脑100的结构示意图。FIG. 18 shows a schematic structural diagram of a tablet computer 100 according to an embodiment of the present application.
平板电脑100可以包括处理器10,屏幕21,内部存储器11,SIM卡接口14,USB接口15,充电管理模块16,电源管理模块16A,电池16B,马达17,接近光传感器18A,霍尔传感器18B,扬声器19,无线通信模块20,显示屏21。The tablet computer 100 may include a processor 10, a screen 21, an internal memory 11, a SIM card interface 14, a USB interface 15, a charge management module 16, a power management module 16A, a battery 16B, a motor 17, a proximity light sensor 18A, and a Hall sensor 18B , speaker 19, wireless communication module 20, display screen 21.
可以理解的是,本申请实施例示意的结构并不构成对平板电脑100的具体限定。在本申请另一些实施例中,平板电脑100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in the embodiment of the present application does not constitute a specific limitation on the tablet computer 100 . In some other embodiments of the present application, the tablet computer 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器10可以包括一个或多个处理单元,例如:处理器10可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 10 may include one or more processing units, for example: the processor 10 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
处理器10中还可以设置存储器,用于存储指令和数据。在本申请的实施例中,处理器10可以执行上述各个实施例所述的方法。A memory may also be provided in the processor 10 for storing instructions and data. In the embodiments of the present application, the processor 10 may execute the methods described in the foregoing embodiments.
内部存储器11可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器11可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序等。存储数据区可存储平板电脑100使用过程中所创建的数据,例如平板电脑100获取的手写笔200的磁通量或者处理器10实现上述各个实施例所述方法时产生的中间结果。在本申请的实施例中,内部存储器11中可以存储上述图4至图12中对应的显示界面的显示数据,以及平板电脑100获取的手写笔200的磁通量。The internal memory 11 may be used to store computer-executable program codes including instructions. The internal memory 11 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, an application program required by at least one function, and the like. The storage data area can store data created during the use of the tablet computer 100 , such as the magnetic flux of the stylus 200 acquired by the tablet computer 100 or the intermediate results generated when the processor 10 implements the methods described in the above-mentioned embodiments. In the embodiment of the present application, the internal memory 11 may store the display data of the corresponding display interfaces in FIGS. 4 to 12 and the magnetic flux of the stylus 200 acquired by the tablet computer 100 .
外部存储器接口13可以用于连接外部存储卡,例如Micro SD卡,实现扩展平板电脑100的存储能力。外部存储卡通过接外部存储器接口13与处理器10通信,实现数据存储功能。例如,将上述手写笔200的磁通量数据,存储在外部存储器接口13。The external memory interface 13 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the tablet computer 100. The external memory card communicates with the processor 10 through the external memory interface 13 to realize the data storage function. For example, the magnetic flux data of the above-mentioned stylus 200 is stored in the external memory interface 13 .
通用串行总线(universal serial bus,USB)接口15,USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。Universal serial bus (universal serial bus, USB) interface 15, USB interface 130 is the interface that accords with USB standard specification, specifically can be Mini USB interface, Micro USB interface, USB Type C interface etc.
充电管理模块16用于从充电器接收充电输入。电源管理模块16A用于连接电池16B,充电管理模块16与处理器10。电源管理模块16A接收电池16B和/或充电管理模块16的输入,为处理器10,内部存储器11,显示屏21和无线通信模块20等供电。The charging management module 16 is configured to receive charging input from the charger. The power management module 16A is used for connecting the battery 16B, the charging management module 16 and the processor 10 . The power management module 16A receives the input from the battery 16B and/or the charging management module 16 to provide power for the processor 10 , the internal memory 11 , the display screen 21 and the wireless communication module 20 .
显示屏21用于显示图像,视频等。在本申请的实施例中,平板电脑100在显示屏21上显示手写笔200的电量提示信息、对准状态提示信息等等。在一些实施例中,平板电脑100在显示屏21上显示上述各个实施例相关的UI界面。The display screen 21 is used to display images, videos and the like. In the embodiment of the present application, the tablet computer 100 displays on the display screen 21 the battery prompt information of the stylus 200 , the alignment status prompt information, and the like. In some embodiments, the tablet computer 100 displays UI interfaces related to the above-mentioned embodiments on the display screen 21 .
无线通信模块20可以提供应用在平板电脑100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(nearfield communication,NFC),红外技术(infrared,IR)等的无线通信的解决方案。在本申请的实施例中,平板电脑100与手写笔200通过无线通信模块20建立通信连接,以进行数据传输。例如,平板电脑100将判断手写笔200磁通量大小的结果,发送至手写笔200,然后手写笔200上显示关于手写笔200的电量提示以及对准状态提示信息,或者手写笔200通过无线通信模块20将其利用霍尔传感器230获得的磁通量传输至平板电脑100,以便平板电脑100进行后续的手写笔200充电状态的判断以及位置的判断。应理解,本申请对平板电脑100与手写笔200之间的数据传输的过程以及传输的数据不作任何限制。The wireless communication module 20 can provide wireless local area network (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), nearfield communication (NFC), and infrared technology (IR). In the embodiment of the present application, the tablet computer 100 and the stylus 200 establish a communication connection through the wireless communication module 20 for data transmission. For example, the tablet computer 100 sends the result of judging the size of the magnetic flux of the stylus 200 to the stylus 200, and then the stylus 200 displays a power prompt and an alignment status prompt message about the stylus 200, or the stylus 200 passes through the wireless communication module 20. The magnetic flux obtained by using the Hall sensor 230 is transmitted to the tablet computer 100 , so that the tablet computer 100 can subsequently determine the charging state and position of the stylus 200 . It should be understood that the present application does not impose any limitation on the data transmission process and the transmitted data between the tablet computer 100 and the stylus 200 .
扬声器19,扬声器19是一种把电信号转变为声信号的换能器件,在本申请的一些实施例中,扬声器19可以配合马达17以及显示屏21共同实现关于手写笔200的电量提示以及对准状态提示的功能,本申请对此不作限制。例如,扬声器19语音播报手写笔200的当前电量,以及语音播放向用户提示该如何移动手写笔200以使其能够对准磁吸充电的位置。本申请对此不作限制。Speaker 19, the speaker 19 is a transducing device that converts electrical signals into acoustic signals. In some embodiments of the present application, the speaker 19 can cooperate with the motor 17 and the display screen 21 to realize the battery prompt of the stylus 200 and the The function of prompting the status is not limited in this application. For example, the speaker 19 voice broadcasts the current battery level of the stylus 200, and the voice playback prompts the user how to move the stylus 200 so that it can be aligned with the magnetic charging position. This application is not limited to this.
马达17,可以产生振动提示。马达17可以用于来电振动提示。在一些实施例中,如上文所言,马达17可以与扬声器19、显示屏21配合实现关于手写笔200的电量提示以及对准状态的提示,具体地,对应于不同的对准状态,马达17可以由不同的振动反馈效果,例如如果手写笔200对准磁吸位置时,马达17可以振动3次,若手写笔200向右偏离磁吸位置时,马达17可以振动4次,若手写笔200向左偏离磁吸位置时,马达17可以振动2次。本申请对此不作限制。The motor 17 can generate vibration prompts. Motor 17 can be used for incoming call vibration reminder. In some embodiments, as mentioned above, the motor 17 can cooperate with the speaker 19 and the display screen 21 to realize the reminder of the battery level and the alignment state of the stylus 200. Specifically, corresponding to different alignment states, the motor 17 Different vibration feedback effects can be obtained. For example, if the stylus 200 is aligned with the magnetic attraction position, the motor 17 can vibrate 3 times. If the stylus 200 deviates from the magnetic attraction position to the right, the motor 17 can vibrate 4 times. When deviating from the magnetic suction position to the left, the motor 17 can vibrate twice. This application is not limited to this.
接近光传感器18A,可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外光二极管。平板电脑100通过发光二极管向外发射红外光。平板电脑100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定平板电脑100附 近有物体。当检测到不充分的反射光时,平板电脑100可以确定平板电脑100附近没有物体。平板电脑100可以利用接近光传感器18A检测用户手持手写笔200离开平板电脑100,以确定手写笔200将要与平板电脑100分离。Proximity light sensor 18A, may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diodes may be infrared light diodes. The tablet computer 100 emits infrared light through the LED. Tablet 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the tablet computer 100. When insufficient reflected light is detected, the tablet computer 100 may determine that there is no object near the tablet computer 100 . The tablet computer 100 can use the proximity light sensor 18A to detect that the user holds the stylus 200 away from the tablet computer 100 to determine that the stylus 200 will be separated from the tablet computer 100 .
本申请实施例还提供了一种电子设备,该电子设备包括:霍尔传感器,用户获取该电子设备中磁吸线圈中的磁通量,至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。The embodiment of the present application also provides an electronic device, the electronic device includes: a Hall sensor, the user acquires the magnetic flux in the magnetic coil in the electronic device, at least one processor, a memory, and stored in the memory and can be A computer program running on the at least one processor, when the processor executes the computer program, the steps in any of the foregoing method embodiments are implemented.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be realized.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the foregoing method embodiments when executed.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the method of the above-mentioned embodiments in the present application can be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to a photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device/network device and method may be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
以上描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细 说明,以免不必要的细节妨碍本申请的描述。In the above description, specific details such as specific system structures and technologies are presented for illustration rather than limitation, so as to thoroughly understand 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 without 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 when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components, but does not exclude one or more other Presence or addition of features, wholes, steps, operations, elements, components and/or collections thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and/or" used in the description of the present application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当…时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and the appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.

Claims (19)

  1. 一种人机交互方法,其特征在于,应用于第一电子设备和第二电子设备,包括:A human-computer interaction method, characterized in that it is applied to a first electronic device and a second electronic device, comprising:
    检测到第一电子设备位于第二电子设备提供的磁场中;detecting that the first electronic device is located within the magnetic field provided by the second electronic device;
    通过获取的所述第一电子设备上多个不同位置处的磁通量的变化情况,确定所述第一电子设备与所述第二电子设备的相对位置变化;Determining relative position changes between the first electronic device and the second electronic device by using the acquired changes in magnetic flux at multiple different positions on the first electronic device;
    根据确定的所述相对位置变化,确定在所述第一电子设备或者第二电子设备上对应的显示内容。According to the determined relative position change, the corresponding display content on the first electronic device or the second electronic device is determined.
  2. 根据权利要求1所述的方法,其特征在于,所述第二电子设备提供的磁场能够用于为所述第一电子设备充电,并且The method of claim 1, wherein the magnetic field provided by the second electronic device can be used to charge the first electronic device, and
    所述根据确定的所述相对位置变化,确定在所述第一电子设备或者所述第二电子设备上对应的显示内容,包括:The determining the corresponding display content on the first electronic device or the second electronic device according to the determined relative position change includes:
    在所述第二电子设备处于为所述第一电子设备充电的状态下,在所述第一电子设备或者所述第二电子设备上,显示表示所述第一电子设备相对于所述第二电子设备的相对位置的第一标志。When the second electronic device is in the state of charging the first electronic device, on the first electronic device or the second electronic device, a display indicating that the first electronic device is The first sign of the relative position of the electronic device.
  3. 根据权利要求2所述的方法,其特征在于,所述根据确定的所述相对位置变化,确定在所述第一电子设备或者所述第二电子设备上对应的显示内容,包括:The method according to claim 2, wherein the determining the corresponding display content on the first electronic device or the second electronic device according to the determined relative position change includes:
    所述第一标志的移动方向与所述第一电子设备相对于所述第二电子设备的移动方向相同。The moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device.
  4. 根据权利要求2或3所述的方法,其特征在于,所述根据确定的所述相对位置变化,确定在所述第一电子设备或者所述第二电子设备上对应的显示内容,还包括:The method according to claim 2 or 3, wherein the determining the corresponding display content on the first electronic device or the second electronic device according to the determined relative position change further comprises:
    在所述第一电子设备或者所述第二电子设备上,显示所述第一电子设备相对于所述第二电子设备的标准充电位置的第二标志,其中,所述第二标志的位置在所述第一电子设备相对于所述第二电子设备移动的过程中保持不变。On the first electronic device or the second electronic device, a second mark of the standard charging position of the first electronic device relative to the second electronic device is displayed, wherein the position of the second mark is The first electronic device remains unchanged while moving relative to the second electronic device.
  5. 根据权利要求4所述的方法,其特征在于,所述第一标志和所述第二标志具有相同的形状和不同的颜色。4. The method of claim 4, wherein the first mark and the second mark have the same shape and different colors.
  6. 根据权利要求4或5所述的方法,其特征在于,所述第一标志的移动方向与所述第一电子设备相对于所述第二电子设备的移动方向相同,包括:The method according to claim 4 or 5, wherein the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, comprising:
    在所述第一电子设备相对于所述第二电子设备向左移动或者向右移动的情况下,所述第一标志相对于所述第二标志的向左移动或者向右移动。When the first electronic device moves leftward or rightward relative to the second electronic device, the first sign moves leftward or rightward relative to the second sign.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述第一电子设备包括手写笔,所述第二电子设备包括平板电脑。The method according to any one of claims 1 to 6, wherein the first electronic device includes a stylus, and the second electronic device includes a tablet computer.
  8. 根据权利要求4或5所述的方法,其特征在于,所述第一标志的移动方向与所述第一电子设备相对于所述第二电子设备的移动方向相同,包括:The method according to claim 4 or 5, wherein the moving direction of the first sign is the same as the moving direction of the first electronic device relative to the second electronic device, comprising:
    在所述第一电子设备相对于所述第二电子设备顺时针旋转或者逆时针旋转的情况下:In the case where the first electronic device rotates clockwise or counterclockwise relative to the second electronic device:
    所述第一标志相对于所述第二标志顺时针旋转或者逆时针旋转,或者the first marker rotates clockwise or counterclockwise relative to the second marker, or
    所述第一标志绕以所述第一电子设备或者所述第二电子设备的屏幕中心为圆心的圆,顺时针行进或者逆时针行进。The first sign moves clockwise or counterclockwise around a circle centered on the screen center of the first electronic device or the second electronic device.
  9. 根据权利要求8所述的方法,其特征在于,所述第一电子设备包括手表,所述第二电子设备包括所述手表的充电设备。The method according to claim 8, wherein the first electronic device comprises a watch, and the second electronic device comprises a charging device for the watch.
  10. 根据权利要求1所述的方法,其特征在于,所述根据确定的所述相对位置变化,确定在所述第一电子设备或者所述第二电子设备上对应的显示内容,包括:The method according to claim 1, wherein the determining the corresponding display content on the first electronic device or the second electronic device according to the determined relative position change comprises:
    在所述第一电子设备远离所述第二电子设备并进入未充电的状态时,使得桌面上显示的至少一个图标的移动方向,与所述第一电子设备相对于所述第二电子设备的移动方向相同或者相反。When the first electronic device is away from the second electronic device and enters an uncharged state, the movement direction of at least one icon displayed on the desktop is the same as the movement direction of the first electronic device relative to the second electronic device Move in the same or opposite direction.
  11. 根据权利要求10所述的方法,其特征在于,所述使得桌面上显示的至少一个图标的移动方向,与所述第一电子设备相对于所述第二电子设备的移动方向相同,包括:The method according to claim 10, wherein the making the movement direction of at least one icon displayed on the desktop is the same as the movement direction of the first electronic device relative to the second electronic device comprises:
    在检测到所述第一电子设备相对于所述第二电子设备向左移动或者向右移动的情况下,所述桌面上显示的至少一个图标向左移动或者向右移动。If it is detected that the first electronic device moves to the left or to the right relative to the second electronic device, at least one icon displayed on the desktop moves to the left or to the right.
  12. 根据权利要求11所述的方法,其特征在于,所述使得桌面上显示的至少一个图标的移动方向,与所述第一电子设备相对于所述第二电子设备的移动方向相同,包括:The method according to claim 11, wherein the making the movement direction of at least one icon displayed on the desktop is the same as the movement direction of the first electronic device relative to the second electronic device comprises:
    在检测到所述第一电子设备相对于所述第二电子设备顺时针旋转或者逆时针旋转的情况下:When it is detected that the first electronic device rotates clockwise or counterclockwise relative to the second electronic device:
    所述桌面上显示的至少一个图标绕以所述第一电子设备或者所述第二电子设备的屏幕中心为圆心的圆,顺时针行进或者逆时针行进。At least one icon displayed on the desktop moves clockwise or counterclockwise around a circle centered on the center of the screen of the first electronic device or the second electronic device.
  13. 根据权利要求10所述的方法,其特征在于,所述使得桌面上显示的至少一个图标的移动方向,与所述第一电子设备相对于所述第二电子设备的移动方向相反,包括:The method according to claim 10, wherein the making the movement direction of at least one icon displayed on the desktop is opposite to the movement direction of the first electronic device relative to the second electronic device comprises:
    在检测到所述第一电子设备相对于所述第二电子设备向左移动或者向右移动的情况下,所述桌面上显示的至少一个图标向右移动或者向左移动。If it is detected that the first electronic device moves to the left or to the right relative to the second electronic device, at least one icon displayed on the desktop moves to the right or to the left.
  14. 根据权利要求11所述的方法,其特征在于,所述使得桌面上显示的至少一个图标的移动方向,与所述第一电子设备相对于所述第二电子设备的移动方向相反,包括:The method according to claim 11, wherein the making the movement direction of at least one icon displayed on the desktop is opposite to the movement direction of the first electronic device relative to the second electronic device comprises:
    在检测到所述第一电子设备相对于所述第二电子设备顺时针旋转或者逆时针旋转的情况下:When it is detected that the first electronic device rotates clockwise or counterclockwise relative to the second electronic device:
    所述桌面上显示的至少一个图标绕以所述第一电子设备或者所述第二电子设备的屏幕中心为圆心的圆,逆时针行进或者顺时针行进。At least one icon displayed on the desktop moves counterclockwise or clockwise around a circle centered on the screen center of the first electronic device or the second electronic device.
  15. 根据权利要求1所述的方法,其特征在于,所述根据确定的所述相对位置变化,确定在所述第一电子设备或者所述第二电子设备上对应的显示内容,包括:The method according to claim 1, wherein the determining the corresponding display content on the first electronic device or the second electronic device according to the determined relative position change comprises:
    在所述第一电子设备远离所述第二电子设备并进入未充电的状态时,显示与所述相对位置变化对应的应用选项菜单,所述应用选项菜单中包括多个应用的图标。When the first electronic device is away from the second electronic device and enters an uncharged state, an application option menu corresponding to the relative position change is displayed, and the application option menu includes icons of a plurality of applications.
  16. 根据权利要求1所述的方法,其特征在于,所述第一电子设备包括手写笔,并且所述第一电子设备上的多个不同位置包括:所述手写笔的第一端和第二端;The method of claim 1, wherein the first electronic device includes a stylus, and the plurality of different locations on the first electronic device include: a first end and a second end of the stylus ;
    并且通过获取的所述第一电子设备上多个不同位置处的磁通量的变化情况,确定所述第一电子设备与所述第二电子设备的相对位置变化,包括:And determining the relative position change between the first electronic device and the second electronic device based on the acquired changes in the magnetic flux at multiple different positions on the first electronic device, including:
    在所述第一端的磁通量与所述第二端的磁通量之差等于预设差值的情况下,确定所述手写笔对准所述第二电子设备的标准充电位置;When the difference between the magnetic flux at the first end and the magnetic flux at the second end is equal to a preset difference, determine that the stylus is aligned with a standard charging position of the second electronic device;
    在所述第一端的磁通量与所述第二端的磁通量之差大于预设差值的情况下,确定所述手写笔的第一端相对于第二端更靠近所述标准充电位置;When the difference between the magnetic flux at the first end and the magnetic flux at the second end is greater than a preset difference, determine that the first end of the stylus is closer to the standard charging position than the second end;
    在所述第一端的磁通量与所述第二端的磁通量之差小于预设差值的情况下,确定所述手写笔的第二端相较于第一端更靠近所述标准充电位置。If the difference between the magnetic flux at the first end and the magnetic flux at the second end is less than a preset difference, it is determined that the second end of the stylus is closer to the standard charging position than the first end.
  17. 根据权利要求1所述的方法,其特征在于,所述第一电子设备包括手表;The method according to claim 1, wherein the first electronic device comprises a watch;
    并且所述第一电子设备上的多个不同位置包括:位于所述手表周边的第一位置以及第二位置,所述第一位置在所述第二位置的逆时针方向,且所述第一位置与所述手表圆心的连线与所述第二位置与所述手表圆心的连线的夹角小于180度;And the multiple different positions on the first electronic device include: a first position and a second position located around the watch, the first position is in the counterclockwise direction of the second position, and the first The included angle between the line connecting the position and the center of the watch and the line connecting the second position and the center of the watch is less than 180 degrees;
    并且通过获取的所述第一电子设备上多个不同位置处的磁通量的变化情况,确定所述第一电 子设备与所述第二电子设备的相对位置,包括:And determining the relative position of the first electronic device and the second electronic device through the obtained changes of the magnetic flux at multiple different positions on the first electronic device, including:
    在所述第一位置的磁通量与所述第二位置的磁通量之差等于预设差值的情况下,确定所述手表对准所述第二电子设备的标准充电位置;When the difference between the magnetic flux at the first position and the magnetic flux at the second position is equal to a preset difference, determine that the watch is aligned with the standard charging position of the second electronic device;
    在所述第一位置的磁通量与所述第二位置的磁通量之差大于预设差值的情况下,确定所述手表相对于所述第二电子设备沿着顺时针方向移动;When the difference between the magnetic flux at the first position and the magnetic flux at the second position is greater than a preset difference, determine that the watch moves clockwise relative to the second electronic device;
    在所述第一端的磁通量与所述第二端的磁通量之差小于预设差值的情况下,确定所述手写笔相对于所述第二电子设备沿着顺时针方向移动。If the difference between the magnetic flux at the first end and the magnetic flux at the second end is less than a preset difference, it is determined that the stylus is moving in a clockwise direction relative to the second electronic device.
  18. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    霍尔传感器,用于获取所述电子设备磁吸线圈中通过的磁通量;A Hall sensor, used to obtain the magnetic flux passing through the magnetic coil of the electronic device;
    存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions to be executed by one or more processors of the electronic device, and
    处理器,是电子设备的处理器之一,用于执行权利要求1至17中任一项所述的人机交互方法。The processor is one of the processors of the electronic device, configured to execute the human-computer interaction method described in any one of claims 1-17.
  19. 一种计算机可读介质,所述计算机可读介质中存储有指令,其特征在于,所述指令在电子设备上执行时使电子设备执行如权利要求1至17中任一项所述的人机交互方法。A computer-readable medium, wherein instructions are stored in the computer-readable medium, wherein when the instructions are executed on the electronic equipment, the electronic equipment executes the man-machine according to any one of claims 1 to 17 interactive method.
PCT/CN2022/134054 2021-12-06 2022-11-24 Human-machine interaction method, and electronic device and medium thereof WO2023103797A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111480808.0 2021-12-06
CN202111480808.0A CN116317187A (en) 2021-12-06 2021-12-06 Man-machine interaction method, electronic equipment and medium thereof

Publications (1)

Publication Number Publication Date
WO2023103797A1 true WO2023103797A1 (en) 2023-06-15

Family

ID=86729608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/134054 WO2023103797A1 (en) 2021-12-06 2022-11-24 Human-machine interaction method, and electronic device and medium thereof

Country Status (2)

Country Link
CN (1) CN116317187A (en)
WO (1) WO2023103797A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246265A1 (en) * 2015-02-24 2016-08-25 Samsung Electronics Co., Ltd. Electronic device and method of correcting position thereof
CN105958658A (en) * 2016-05-20 2016-09-21 联想(北京)有限公司 Charging position prompt method and electronic equipment
CN106300703A (en) * 2016-09-30 2017-01-04 福建工程学院 The wireless charging method of a kind of intelligent shoe and system
CN107294154A (en) * 2016-04-05 2017-10-24 现代自动车美国技术研究所 EV wireless charging adjustable magnetic flux angle chargers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246265A1 (en) * 2015-02-24 2016-08-25 Samsung Electronics Co., Ltd. Electronic device and method of correcting position thereof
CN107294154A (en) * 2016-04-05 2017-10-24 现代自动车美国技术研究所 EV wireless charging adjustable magnetic flux angle chargers
CN105958658A (en) * 2016-05-20 2016-09-21 联想(北京)有限公司 Charging position prompt method and electronic equipment
CN106300703A (en) * 2016-09-30 2017-01-04 福建工程学院 The wireless charging method of a kind of intelligent shoe and system

Also Published As

Publication number Publication date
CN116317187A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US20220004313A1 (en) Display Method and Apparatus
US20230110064A1 (en) Data sharing method, graphical user interface, electronic device, and system
JP6228676B2 (en) Connection state prompting method and apparatus
US20210204127A1 (en) Image Sharing Method and System, and Electronic Device
WO2014204089A1 (en) An electronic device and method executing object in the electronic device
KR102015534B1 (en) Message sync method, machine-readable storage medium and server
US20130331147A1 (en) Service providing system including display device and mobile device, and method for providing service using the same
US11372537B2 (en) Image sharing method and electronic device
CN112947823A (en) Session processing method, device, equipment and storage medium
KR101227331B1 (en) Method for transmitting and receiving data and display apparatus thereof
JP2017529636A (en) Mobile terminal and control method thereof
AU2014263305A1 (en) Method and apparatus for displaying user interface through sub device that is connectable with portable electronic device
KR20150103294A (en) System and method for wirelessly sharing data amongst user devices
KR20140127031A (en) Method for wireless connection using out-of-band channel, machine-readable storage medium and electronic device
JP2015115046A (en) Information processing apparatus, program, information processing method, and information processing system
WO2014163333A1 (en) User interface display method and apparatus therefor
US20200162871A1 (en) Electronic apparatus and method of outputting content by the electronic apparatus
CN110870353B (en) WiFi connection method and terminal
US20150293670A1 (en) Method for operating message and electronic device therefor
US11921968B2 (en) Method for interaction between devices based on pointing operation, and electronic device
WO2022048453A1 (en) Unlocking method and electronic device
KR20180017638A (en) Mobile terminal and method for controlling the same
WO2023103797A1 (en) Human-machine interaction method, and electronic device and medium thereof
KR20150007090A (en) Method, electronic device and computer readable recording medium for providing location based services
CN115708372A (en) Vehicle position sharing method, system, device, equipment and readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22903220

Country of ref document: EP

Kind code of ref document: A1