CN112181183A - Stylus, electronic device, control method, control device, and readable storage medium - Google Patents

Stylus, electronic device, control method, control device, and readable storage medium Download PDF

Info

Publication number
CN112181183A
CN112181183A CN202011270627.0A CN202011270627A CN112181183A CN 112181183 A CN112181183 A CN 112181183A CN 202011270627 A CN202011270627 A CN 202011270627A CN 112181183 A CN112181183 A CN 112181183A
Authority
CN
China
Prior art keywords
light
stylus
optical transceiver
color
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011270627.0A
Other languages
Chinese (zh)
Inventor
詹天增
但振峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011270627.0A priority Critical patent/CN112181183A/en
Publication of CN112181183A publication Critical patent/CN112181183A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application discloses a touch pen, an electronic device, a control method, a control device and a readable storage medium. The stylus includes: a main body; first light receiving and dispatching subassembly, the main part is located to first light receiving and dispatching subassembly, and first light receiving and dispatching subassembly includes: a first light emitting section for emitting a light wave; a first light receiving part for receiving the light wave; the first optical transceiver component is in communication connection with the controller; the working modes of the first light receiving and transmitting assembly comprise a first working mode and a second working mode, and the touch pen can acquire the color of the target object when the first light receiving and transmitting assembly is in the first working mode; when the first optical transceiver component is in the second working mode, the touch pen can perform visible light wireless communication. The function of the touch control pen can be expanded, and diversified requirements of users are met.

Description

Stylus, electronic device, control method, control device, and readable storage medium
Technical Field
The application belongs to the technical field of electronic products, and particularly relates to a touch pen, electronic equipment, a control method, a control device and a readable storage medium.
Background
With the development of mobile communication, the application of electronic terminals is more and more extensive, and terminal auxiliary products are also rapidly developed. The touch pen is used as common input equipment, can realize the image-text input function of the electronic terminal, and has wide application prospect and good product cognition.
However, one of the disadvantages of the related art is that the function of the stylus is relatively single, and cannot satisfy the diversified demands of the user.
Disclosure of Invention
The present application is directed to a stylus, an electronic device, a control method, a control apparatus, and a readable storage medium, which solve at least one of the problems associated with the related art.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a stylus, including: a main body; first light receiving and dispatching subassembly, the main part is located to first light receiving and dispatching subassembly, and first light receiving and dispatching subassembly includes: a first light emitting section for emitting a light wave; a first light receiving part for receiving the light wave; the first optical transceiver component is in communication connection with the controller; the working modes of the first light receiving and transmitting assembly comprise a first working mode and a second working mode, the touch pen can acquire the color of the target object when the first light receiving and transmitting assembly is in the first working mode, and the touch pen can carry out visible light wireless communication when the first light receiving and transmitting assembly is in the second working mode.
In a second aspect, an embodiment of the present application provides an electronic device, including: a terminal body; and a stylus as in any embodiment of the present application.
In a third aspect, an embodiment of the present application provides a method for controlling a stylus, where the method is used to control the stylus according to any embodiment of the present application, and the method includes: when the first light receiving and transmitting component is in a first working mode, the color of the target object is obtained through the first light receiving and transmitting component; and when the first optical transceiver component is in the second working mode, the first optical transceiver component is used for carrying out communication through visible light wireless communication.
In a fourth aspect, an embodiment of the present application provides a control method for an electronic device, for controlling the electronic device according to any embodiment of the present application, where the control method includes: detecting the relative position relation between a touch pen and the electronic equipment; when the touch pen is in the stored state, the electronic equipment controls the on-off of the visible light wireless communication path in the touch pen according to the signal intensity of the visible light wireless communication.
In a fifth aspect, an embodiment of the present application provides a control apparatus, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, where the program or the instruction implements steps of a control method of a stylus pen according to any embodiment of the present application or implements steps of a control method of an electronic device according to any embodiment of the present application when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, where the program or instructions, when executed by a processor, implement steps of a control method of a stylus pen according to any of the embodiments of the present application or implement steps of a control method of an electronic device according to any of the embodiments of the present application.
In an embodiment of the application, in the first working mode of the first optical transceiver component, the stylus performs a color collection function to collect colors of an external object. And under the second working mode of the first light receiving and transmitting assembly, the touch pen executes the visible light wireless communication function so as to realize the storage or the taking of data. Therefore, compared with a touch control pen in the related technology, the touch control pen provided by the embodiment of the application can expand functions of the touch control pen and meet diversified use requirements of users. In addition, the touch pen in the embodiment of the application can also utilize the advantage of high communication rate of visible light wireless communication to realize rapid mass transmission of data or information.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic structural diagram of a stylus according to an embodiment of the present application along a front view direction;
fig. 2 is a second schematic structural diagram of a stylus according to an embodiment of the present application along a front view direction;
FIG. 3 is a third schematic view of a stylus according to an embodiment of the present application along a front view direction;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application along a front view direction;
FIG. 5 is a schematic diagram of a relationship between a stylus and an electronic device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application along a top view direction;
FIG. 7 is a schematic diagram of the components of a control device according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating steps of a method for controlling a stylus according to an embodiment of the present application;
FIG. 9 is a second flowchart illustrating the steps of a method for controlling a stylus according to an embodiment of the present disclosure;
FIG. 10 is a third flowchart illustrating the steps of a method for controlling a stylus according to an embodiment of the present application;
FIG. 11 is a flowchart illustrating a fourth step of a method for controlling a stylus according to an embodiment of the present application;
FIG. 12 is a flowchart illustrating the steps of a method for controlling a stylus according to an embodiment of the present disclosure;
FIG. 13 is a flowchart illustrating a sixth step of a method for controlling a stylus according to an embodiment of the present application;
FIG. 14 is a seventh flowchart illustrating steps of a method for controlling a stylus according to an embodiment of the present disclosure;
FIG. 15 is an eighth flowchart illustrating the steps of a method for controlling a stylus according to an embodiment of the present application;
fig. 16 is a flowchart of steps of a method of controlling an electronic device according to an embodiment of the present application;
FIG. 17 is a flowchart illustrating steps performed by a stylus in a first mode of operation according to an embodiment of the present disclosure.
Wherein, the correspondence between the reference numbers and the part names in fig. 1 to 7 is:
100: electronic device, 110: first electronic device, 120: second electronic device, 200: terminal body, 210: second optical transceiver component, 212: second light emitting section, 214: second light receiving part, 220: housing member, 230: second information transmission interface, 232: second receiving contact, 234: second transmitting contact, 240: second housing detection member, 300: stylus, 310: a main body, 320: first optical transceiver component, 322: first light emitting section, 324: first light receiving part, 326: memory, 328: controller, 330: switching means, 340: first information transfer interface, 342: first receiving contact, 344: first transmitting contact, 350: first housing detection member, 400: control device, 410: processor, 420: a memory.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The features of the terms first and second in the description and in the claims of the present application may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality" means two or more unless otherwise specified. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the term "connected" is to be interpreted broadly, e.g. as a fixed connection, a detachable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
The stylus pen 300, the electronic device 100, the control method, the control apparatus 400, and the readable storage medium according to the embodiments of the present application are described below with reference to fig. 1 to 17.
Fig. 1 is a schematic structural diagram of a stylus 300 according to an embodiment of the present disclosure along a front view direction. As shown in fig. 1, a stylus 300 according to some embodiments of the present application includes: a main body 310, a first optical transceiver component 320, and a controller 328. The first optical transceiver component 320 is disposed on the main body 310. The first optical transceiver component 320 includes: a first light emitting part 322 and a first light receiving part 324. The first light emitting part 322 is used to emit light waves. The first light receiving part 324 is used for receiving light waves. The first optical transceiver component 320 is communicatively coupled to the controller 328. The working modes of the first optical transceiver module 320 include a first working mode and a second working mode, when the first optical transceiver module 320 is in the first working mode, the stylus 300 can obtain the color of the target object, and when the first optical transceiver module 320 is in the second working mode, the stylus 300 can perform visible light wireless communication.
The stylus pen 300 according to the embodiment of the present application is a writing component of the electronic device 100, and is used in cooperation with the terminal body 200 of the electronic device 100. The electronic device 100 may be a mobile phone, a tablet computer, a notebook computer, an ultra mobile personal computer, a netbook, a personal digital assistant, and the like.
The stylus pen 300 is used for writing and drawing images and texts on the touch writing panel, and the terminal body 200 displays or processes the images and texts written and drawn by the stylus pen 300. The touch writing panel for the stylus pen 300 to write and draw according to the embodiment of the present application may be separated from the terminal body 200, or may be disposed on the terminal body 200, for example, a touch control screen or a display screen of the terminal body 200 is directly used as the touch writing panel.
The first optical transceiver module 320 of the embodiment of the present application includes at least two operating modes, that is: a first mode of operation and a second mode of operation. The first optical transceiver module 320 can be directly switched between the first operating mode and the second operating mode, can be switched from other operating modes to any one of the first operating mode and the second operating mode, and can directly enter any one of the first operating mode and the second operating mode after being turned on.
The first light transceiving component 320 of the embodiment of the present application performs a color collection function in the first working mode to collect colors of an external object. In the embodiment of the application, the first optical transceiver component 320 executes a visible Light wireless communication (Light Fidelity, LIFI) function in the second operating mode to store or access data. The controller 328 is used to control the first light emitting part 322 and the first light receiving part 324. Therefore, compared with the stylus in the related art, the stylus 300 in the embodiment of the present application can meet diversified usage requirements of users.
It should be noted that, in the case of the stylus in the related art, it generally communicates and interacts with the electronic device through bluetooth. However, the data transmission efficiency of the bluetooth communication mode is low, so that it is difficult for the stylus pen in the related art to realize high-speed transmission of a large amount of data. To this end, the embodiment of the present application sets the stylus pen 300 to: in the second operating mode of the first optical transceiver module 320, the stylus 300 performs communication or data transmission through visible light wireless communication, so as to improve communication and interaction efficiency between the stylus 300 and the electronic device 100.
Specifically, the first optical transceiver component 320 of the embodiment of the present application may implement data or information transmission through the following modulation method. For example, the first light transceiving module 320 is controlled to switch between a light emitting state and a non-light emitting state, where light emitting indicates "1" and non-light emitting indicates "0", so that the stylus pen 300 of the embodiment of the present application transmits data or information in a binary manner. For another example, the first optical transceiver module 320 is controlled to perform pulse amplitude modulation, and the light intensity of the first optical transceiver module 320 is used to represent the transmitted data or information. Alternatively, the stylus pen 300 of the embodiment of the present application may further control the first light transceiving component 320 to emit light with different colors, and use the light with different colors to represent different data or information.
For example, the first light emitting part 322 is a light emitting diode capable of emitting visible light, and the light emitting intensity or the light emitting frequency thereof can be flexibly adjusted. The first light receiving part 324 is a photosensitive element capable of receiving and sensing visible light. The light waves referred to in the embodiments of the present application may be optical signals containing data or information, or may be external light rays containing no data or information.
The first light emitting part 322 and the first light receiving part 324 are juxtaposed at any position of the main body 310, and may be connected and fixed to the main body 310 by means of bonding, welding, clipping, etc. The controller 328 is electrically connected to the first light emitting part 322 and the first light receiving part 324 through a circuit to control the first light emitting part 322 and the first light receiving part 324, respectively.
Under the control of the controller 328, the first light emitting component 322 and the first light receiving component 324, which cooperate with each other, can realize the receiving, collecting and transmitting transmission of light waves, and the touch pen 300 can realize the collection, capture and data storage and access of the target object color.
In some embodiments of the present application, when the first optical transceiver component 320 is in the first operating mode, the first light emitting component 322 emits light waves to illuminate the target, the first light receiving component 324 receives the light waves to collect target reflection light from the target, and the controller 328 obtains the color of the target according to the target reflection light.
The first optical transceiver component 320 operates in the first operating mode in the following manner. The first light emitting part 322 emits visible light having a wavelength in the range of 380 nm to 780 nm to the target to irradiate the target. The target object is an article or a human or animal or a plant in an indoor environment or an outdoor environment. Wherein, the target object can be in dark environment, or under the irradiation of natural light source or artificial light source. When the object is in a dark environment, the first light emitting part 322 serves as the only irradiation light source, and the object reflects only light from the first light emitting part 322. When the object is under illumination from the light source, the object reflects light from both the first light emitting member 322 and the light source. The first light receiving part 324 receives the light waves to collect object reflected light from the object. Since the controller 328 is connected to the first light receiving part 324, the controller 328 can convert the light waves received by the first light receiving part 324 into electrical signals and process the electrical signals, thereby obtaining the color of the object. For example, the controller 328 analyzes the wavelength distribution thereof and the intensity corresponding to each wavelength of light from the light waves received by the first light receiving part 324, and thereby maps or extracts a spectrum corresponding to the light waves. By performing analysis calculation on the spectrum, the controller 328 acquires the corresponding coordinate value of the spectrum in the color coordinate. Based on the coordinate values, the controller 328 can accurately acquire the actual color of the target object. The color of the object referred to in the embodiments of the present application includes at least one of brightness, lightness, saturation, or a combination thereof of the object. Since the stylus pen 300 of the embodiment of the present application can extract the actual color of the target object, the stylus pen 300 of the embodiment of the present application can draw or write an image and text with the same or similar color to the actual color of the target object on the electronic device 100.
It should be noted that the first optical transceiver component 320 can perform communication or data transmission through visible light wireless communication in the second operation mode. Therefore, in the present embodiment, the first optical transceiver component 320 may send the analysis result of the color of the target object to the terminal body 200 of the electronic device 100, so that the terminal body 200 may determine the writing drawing color according to the color of the target object. In addition, after the analysis result of the color of the target object is obtained, the embodiment may also directly send a control instruction to the terminal body 200 through the first optical transceiver component 320, so as to directly adjust and control the writing drawing color of the terminal body 200. It can be understood that, after the analysis result for the color of the target object is obtained, the prompt message may also be sent to the terminal body 200 through the first optical transceiver component 320 in the embodiment, and the terminal body 200 displays and outputs the prompt message, so that the user can select the writing drawing color according to the prompt message.
In some embodiments of the present application, the first optical transceiver component 320 further includes: a memory 326. Memory 326 is used to store information and is communicatively coupled to controller 328.
Since the stylus 300 according to the embodiment of the present application performs communication through visible light wireless communication in the second operating mode, the stylus 300 according to the embodiment of the present application can implement large-scale and high-speed transmission of information or data, so as to improve communication and interaction efficiency between the stylus 300 and the electronic device 100. In order to fully utilize the advantages of the stylus 300 according to the embodiment of the present application, the memory 326 is provided in the main body 310 of the stylus 300 according to the present embodiment. The memory 326 is communicatively coupled to a controller 328, and the controller 328 is communicatively coupled to the first light emitting portion 322 and the first light receiving portion 324, respectively. The memory 326 is configured to enable the stylus pen 300 according to the embodiment of the present disclosure to serve as a relay or a hub for data access, so as to help a user to efficiently and conveniently implement fast reading storage and access of a large amount of data.
In some embodiments of the present application, when the first optical transceiver module 320 is in the second operation mode, the first optical receiving component 324 receives the optical wave to obtain the first optical signal, the controller 328 outputs the first information matched with the first optical signal according to the first optical signal, and the memory 326 stores the first information.
Specifically, the controller 328 converts the optical wave from the first optical receiving component 324 into a first optical signal and analyzes the first optical signal to extract information or data contained in or transmitted by the first optical signal. Further, the controller 328 sends the information or data contained or transmitted in the first optical signal to the memory 326 for storage. Therefore, the stylus pen 300 according to the embodiment of the present application can quickly acquire and store information from the terminal body 200.
In some embodiments of the present application, when the first optical transceiver module 320 is in the second operation mode, the controller 328 retrieves the second information stored in the memory 326 and controls the first light emitting component 322 to emit the light wave to emit the second light signal matching the second information according to the second information.
Specifically, the controller 328 may retrieve the second information stored in the memory 326 and control the first light emitting component 322 to emit the second light signal containing or representing the second information stored in the memory 326 according to the second information, so as to be analyzed, read, processed or stored by the terminal body 200.
It should be noted that the first information and the second information in the embodiment of the present application may be the same information or different information. The stylus 300 according to the embodiment of the present application may acquire information in one electronic device 100, store the information, and send the information back to the same electronic device 100 according to a user instruction if necessary. The stylus pen 300 of the embodiment of the present application may further acquire information in one electronic device 100, store the information, and transmit the information to another electronic device 100 according to a user instruction if necessary.
Fig. 5 is a schematic diagram of a cooperation relationship between the stylus 300 and the electronic device 100 according to an embodiment of the application. For example, as shown in fig. 5, the electronic device 100 may include a first electronic device 110 and a second electronic device 120. The stylus pen 300 of the embodiment of the application can perform visible light wireless communication with the first electronic device 110 and the second electronic device 120 respectively, and thus, as an information transfer hub, the information transfer between the first electronic device 110 and the second electronic device 120 is realized.
In some embodiments of the present application, the operation modes of the first optical transceiver component 320 further include a third operation mode, when the first optical transceiver component 320 is in the third operation mode, the first optical receiving component 324 receives the light wave to collect the ambient reflection light from the environment where the stylus 300 is located, and the controller 328 obtains the ambient illumination intensity according to the ambient reflection light.
The specific manner in which the controller 328 obtains the intensity of the ambient light is as follows. The controller 328 analyzes the wavelength distribution thereof and the intensity corresponding to each wavelength of light from the ambient reflection light, and accordingly draws or extracts a spectrum corresponding to the ambient reflection light. By integrating the spectrum, the controller 328 obtains a particular lumen value for the ambient illumination.
Since the stylus 300 of the embodiment of the application can extract the actual illumination intensity of the environment where the stylus 300 is located, the electronic device 100 of the embodiment of the application can adjust and control the electronic device 100 according to the actual illumination intensity of the environment. For example, according to the embodiment of the application, the screen display brightness or the screen projection display brightness of the terminal body 200 can be adjusted according to the ambient light intensity, so that the functions of the stylus 300 are further expanded, and the use experience of a user is improved.
It should be noted that the first optical transceiver module 320 is capable of performing visible light wireless communication in the second operation mode. Therefore, in this embodiment, the analysis result of the ambient light intensity can be sent to the terminal body 200 through the first optical transceiver component 320, so that the terminal body 200 can adjust itself according to the ambient light intensity. In addition, after obtaining the analysis result of the ambient light intensity, the present embodiment can also directly send a control instruction to the terminal body 200 through the first optical transceiver component 320, so as to directly adjust and control the display brightness of the terminal body 200. It can be understood that, after the analysis result for the ambient light intensity is obtained, the prompt message may also be sent to the terminal body 200 through the first optical transceiver component 320 in this embodiment, and the terminal body 200 displays and outputs the prompt message, so that the user can determine and select the adjustment mode for the terminal body 200 according to the prompt message.
Fig. 3 is a third schematic structural diagram of a stylus 300 according to an embodiment of the present disclosure along a front view direction. As shown in fig. 3, in some embodiments of the present application, the stylus pen 300 further includes: a switching member 330. The switching member 330 is disposed on the main body 310 and is used for switching the operation mode of the first optical transceiver module 320.
For example, the switching component 330 may be a switch switching component, a knob switching component, a key switching component, a touch control screen switching component, or a gyroscope switching component. The user can switch the operation mode of the first optical transceiver module 320 by controlling the switching unit 330, so that the stylus pen 300 can execute the function corresponding to the operation mode.
Fig. 2 is a second schematic structural diagram of a stylus 300 according to an embodiment of the present disclosure along a front view direction. As shown in fig. 2, in some embodiments of the present application, the stylus pen 300 further includes: the first information transfer interface 340. The first information transmission interface 340 is disposed on the main body 310 and is communicatively connected to the first optical transceiver module 320.
The stylus pen 300 can be accommodated in the electronic device 100, and when the stylus pen 300 is in the accommodated state, the first information transmission interface 340 is used for communicating with the electronic device 100, so that the first optical transceiver component 320 performs information transmission with the electronic device 100.
Specifically, the first information transmission interface 340 is disposed on the surface of the main body 310 and is connected to the controller 328 of the first optical transceiver module 320 in a communication manner through a circuit. The first information transmission interface 340 includes a first receiving contact 342 and a first transmitting contact 344 that are arranged in pairs. The first receiving contact 342 and the first transmitting contact 344 are metal contacts, respectively.
The first information transmission interface 340 is used for enabling the stylus pen 300 and the terminal body 200 of the electronic device 100 to realize fast data transmission. Fig. 4 is a schematic structural diagram of the electronic device 100 according to the embodiment of the present application along the front view direction. As shown in fig. 4, the stylus pen 300 may be received on the terminal body 200 of the electronic device 100. The setting position of the first information transmission interface 340 corresponds to the setting position of the second information transmission interface 230 on the electronic device 100. When the stylus pen 300 is in the accommodated state, the first receiving contact 342 and the second transmitting contact 234 of the second information transmission interface 230 are in contact with or induct, and the first transmitting contact 344 and the second receiving contact 232 of the second information transmission interface 230 are in contact with or induct. Therefore, when the stylus pen 300 is used as a relay or a hub for data access, the stylus pen 300 can perform fast and efficient data transmission with the terminal body 200 of the electronic device 100.
As shown in fig. 2, in some embodiments of the present application, the stylus pen 300 further includes: the first accommodation detection member 350. The first accommodation detection member 350 is disposed on the main body 310 and is in communication with the controller 328 of the first optical transceiver module 320.
The stylus pen 300 can be accommodated in the terminal body 200 of the electronic device 100, and the first accommodation detection part 350 is configured to detect a relative positional relationship between the stylus pen 300 and the electronic device 100, that is: the first housing detection part 350 can detect the housed state of the stylus pen 300, and cause the controller 328 to output a control command according to the housed state.
For example, the first accommodation detection member 350 may include a micro switch. When the stylus pen 300 is received on the terminal body 200 of the electronic device 100, the micro switch is triggered by the pressure from the terminal body 200. When the micro switch is triggered, the first accommodation detection part 350 sends information or instructions to the controller 328, so that the controller 328 knows that the stylus pen 300 is already in the accommodated state.
Again, for example, the first accommodation detecting member 350 may be used in cooperation with the second accommodation detecting member 240 provided on the terminal body 200. The first accommodation detecting member 350 and the second accommodation detecting member 240 are respectively metal conductive contacts, or respectively photoelectric sensing elements, or respectively electromagnetic sensing elements. The first accommodation detection member 350 and the second accommodation detection member 240 are provided at positions corresponding to each other. When the stylus pen 300 is received, the first receiving detection part 350 and the second receiving detection part 240 are sensed or conducted, so that the controller 328 knows that the stylus pen 300 is in the received state.
When the controller 328 knows that the stylus 300 is in the accommodated state, the controller 328 may output a corresponding control command to adjust or control the operating state or operating mode of the stylus 300 or the electronic device 100. For example, the controller 328 may output a close command to control the stylus pen 300 to close, so as to save power of the stylus pen 300 and prolong the standby time thereof. The controller 328 may also output a transmission instruction to control the stylus pen 300 to transmit data or information to the terminal body 200. The controller 328 may also output a conducting command to control the first information transmission interface 340 of the stylus pen 300 to directly communicate or transmit data with the second information transmission interface 230 on the terminal body 200.
Fig. 4 is a schematic structural diagram of the electronic device 100 according to the embodiment of the present application along the front view direction. As shown in fig. 4, an electronic device 100 according to some embodiments of the present application includes: a terminal body 200 and a stylus pen 300. Stylus 300 is a stylus 300 according to any embodiment of the present application.
The electronic device 100 of the embodiment of the present application may be a mobile phone, a tablet computer, a notebook computer, an ultra mobile personal computer, a netbook, or a personal digital assistant. The terminal body 200 is a main component of the above device, and performs functions such as network communication, document file processing, audio or video capture and play, and the like according to the specific type of the electronic device 100. The stylus pen 300 is used in cooperation with the terminal body 200 to write and draw pictures and texts for the terminal body 200 to display or process.
Fig. 5 is a schematic diagram of a cooperation relationship between a stylus and an electronic device according to an embodiment of the application. Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application along a top view direction. As shown in fig. 5 and 6, in some embodiments of the present application, the terminal body 200 includes a second optical transceiver module 210. The second optical transceiving component 210 includes a second light emitting part 212 and a second light receiving part 214. The second light emitting part 212 is used to emit light waves to the first light receiving part 324 of the stylus pen 300. The second light receiving part 214 is used for receiving light waves from the first light emitting part 322 of the stylus pen 300.
The second light emitting part 212 and the second light receiving part 214 are juxtaposed at any position of the terminal body 200 and may be connected and fixed to the terminal body 200 by means of bonding, welding, clipping, etc. The second light emitting part 212 and the second light receiving part 214, which are cooperated with each other, can realize receiving, collecting and transmitting transmission of light waves, so that the terminal body 200 performs transmission of information, data or instructions with the stylus pen 300 through visible light wireless communication.
As shown in fig. 5, in some embodiments of the present application, the terminal body 200 includes: and a receiving member 220. The stylus pen 300 can be housed in the housing member 220.
The receiving part 220 on the terminal body 200 has a pouch-shaped structure or a groove-shaped structure, and the shape thereof is adapted to the shape of the main body 310 of the stylus pen 300. The receiving part 220 is disposed such that the stylus pen 300 according to the embodiment of the present disclosure can be conveniently received on the terminal body 200.
As shown in fig. 5, in some embodiments of the present application, the terminal body 200 further includes: and a second information transmission interface 230. The second information transmission interface 230 is provided in the housing member 220. When the stylus pen 300 is in the accommodated state, the second information transmission interface 230 is communicatively connected to the first information transmission interface 340 of the stylus pen 300.
The set position of the second information transmission interface 230 and the set position of the first information transmission interface 340 correspond to each other. The first information transmission interface 340 includes a first receiving contact 342 and a first transmitting contact 344 that are arranged in pairs. When the stylus pen 300 is received on the terminal body 200, the second information transmission interface 230 and the first information transmission interface 340 are in contact or sensing with each other, so as to realize fast and efficient data transmission.
As shown in fig. 5, in some embodiments of the present application, the terminal body 200 further includes: the second housing detection member 240. The second housing detection member 240 is provided in the housing member 220. The second housing detection part 240 is communicatively connected to the first housing detection part 350 of the stylus pen 300 in the housed state of the stylus pen 300.
The second accommodation detection member 240 is used in cooperation with the first accommodation detection member 350 provided on the stylus pen 300, and the installation positions thereof correspond to each other. When the stylus pen 300 is received, the first receiving detection part 350 and the second receiving detection part 240 are sensed or conducted, so that the controller 328 of the stylus pen 300 knows that the stylus pen 300 is in the received state, and/or the terminal body 200 knows that the stylus pen 300 is in the received state.
Fig. 8 is a flowchart illustrating steps of a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 8, a method of controlling a stylus according to some embodiments of the present application includes:
step S102, when the first optical transceiver module is in the first working mode, obtaining the color of the target object through the first optical transceiver module.
Specifically, fig. 17 is a flowchart illustrating steps of the stylus pen 300 according to an embodiment of the present disclosure operating in the first operating mode. As shown in fig. 17, the stylus 300 performs the following steps in the first operation mode:
s802, the stylus pen starts a first working mode;
s804, confirming the target object;
s806, the touch pen emits light waves;
s808, receiving the light wave by the touch pen;
s810, extracting and processing the light wave by the touch pen;
s812, the touch pen acquires the color of the target object;
s814, the terminal body displays the color of the target object.
Fig. 9 is a second flowchart illustrating a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 9, a method of controlling a stylus according to some embodiments of the present application includes:
and step S104, when the first optical transceiver component is in the second working mode, performing visible light wireless communication through the first optical transceiver component.
The control method of the stylus pen in the embodiments of the present application is used to control the stylus pen 300 in any embodiment of the present application, so that the stylus pen 300 in any embodiment of the present application executes a color collection function in a first working mode to collect colors of an external object, or the stylus pen 300 in any embodiment of the present application executes a visible light wireless communication function in a second working mode to store or access data. The control method of the stylus pen in the embodiment of the present application has all the advantages of the stylus pen 300 in any embodiment of the present application, and details are not repeated herein.
Fig. 10 is a third flowchart illustrating a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 10, acquiring the color of the target object through the first optical transceiver component specifically includes:
step S202, emitting light waves through a first light receiving and emitting assembly to irradiate a target object;
step S204, receiving the light wave through the first light receiving and transmitting component to collect the target object reflected light from the target object;
in step S206, the color of the target object is obtained according to the target object reflected light.
Specifically, the first optical transceiver module 320 includes a first light emitting part 322 and a first light receiving part 324 which are arranged in a pair, and a controller 328, and the first light emitting part 322 emits visible light to a target object to irradiate the target object. The first light emitting part 322 receives the object reflected light from the object. The controller 328 acquires the color of the target from the target reflected light. Therefore, the stylus pen of the embodiment of the application can extract the actual color of the target object, and draw or write the image and text with the same or similar color to the actual color of the target object on the electronic device 100.
Fig. 11 is a flowchart illustrating a fourth step of a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 11, a method of controlling a stylus according to some embodiments of the present application includes:
step S202, emitting light waves through a first light receiving and emitting assembly to irradiate a target object;
step S204, receiving the light wave through the first light receiving and transmitting component to collect the target object reflected light from the target object;
step S206, acquiring the color of the target object according to the reflected light of the target object;
step S208, determining a color taking instruction according to the color;
step S210, emitting light waves through the first optical transceiver module according to the color-taking instruction to emit optical signals matching the color-taking instruction.
In other words, after acquiring the color of the target object, the controller 328 of the embodiment of the present application may also control the first optical transceiver component 320 to determine the color fetching instruction. The controller 328 controls the first light emitting part 322 to output a light signal corresponding to the color-fetching instruction according to the color-fetching instruction. Thus, the terminal body 200 of the electronic device 100 may acquire the light signal from the first light emitting part 322 through the second light receiving part 214, and the terminal body 200 may be informed of the color acquisition command determined by the controller 328. Therefore, the embodiment of the application can control or adjust the color of the image and text output by the terminal body 200 according to the color of the target object.
Fig. 12 is a flowchart illustrating a fifth step of a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 12, the communication is performed through visible light wireless communication by the first optical transceiver module, which specifically includes:
step S302, receiving the light wave through a first light receiving and transmitting component to obtain a first light signal;
step S304, obtaining first information matched with the first optical signal according to the first optical signal, and storing the first information.
Fig. 13 is a flowchart illustrating a sixth step of a method for controlling a stylus according to an embodiment of the present disclosure. As shown in fig. 13, the communication is performed through visible light wireless communication by the first optical transceiver module, which specifically includes:
step S402, calling the stored second information through the first optical transceiver component;
and S404, emitting light waves according to the second information to send out a second optical signal matched with the second information.
Through the above steps, the stylus 300 according to the embodiment of the present application can be used as a relay or a hub for data access, so as to help a user to efficiently and conveniently realize fast reading, storing and accessing of a large amount of data.
Fig. 14 is a seventh step of a flowchart of a method for controlling a stylus according to an embodiment of the present application. As shown in fig. 14, the control method further includes:
step S502, when the first light receiving and transmitting assembly is in the third working mode, the first light receiving and transmitting assembly receives light waves to collect environment reflected light from the environment where the touch pen is located;
step S504, the ambient light intensity is obtained according to the ambient reflected light.
The operation principle of the first optical transceiver module 320 in the third operation mode is described above, and is not described herein again. The control method enables the electronic device 100 to adjust and control the operation parameters or the operation conditions according to the actual illumination intensity of the environment, so as to further improve the user experience.
Fig. 15 is an eighth step flowchart of a method for controlling a stylus according to an embodiment of the present application. As shown in fig. 15, the control method further includes:
step S602, when the first optical transceiver module is in the third operating mode, receiving the light wave through the first optical transceiver module to collect the environment reflected light from the environment where the stylus is located;
step S604, obtaining the ambient light intensity according to the ambient reflected light;
step S606, determining a brightness adjusting instruction according to the ambient light intensity;
step S608, the first optical transceiver module emits an optical wave according to the brightness adjustment command to emit an optical signal matching the brightness adjustment command.
In the second working mode, the first optical transceiver module 320 can perform communication through visible light wireless communication, so that the controller 328 can control the first light emitting part 322 to emit the optical signal corresponding to the brightness adjustment instruction according to the brightness adjustment instruction in the present embodiment, so that the terminal body 200 can rapidly obtain the brightness adjustment instruction.
Fig. 16 is a flowchart of steps of a method of controlling an electronic device according to an embodiment of the present application. As shown in fig. 16, the control method further includes:
step S702, detecting the relative position relationship between the touch pen and the electronic equipment;
in step S704, when the stylus is in the accommodated state, the electronic device controls the on/off of the visible light wireless communication path in the stylus according to the signal strength of the visible light wireless communication.
Specifically, the electronic device 100 according to the embodiment of the present application includes a terminal body 200 and a stylus pen 300 that can be housed in the terminal body 200. The terminal body 200 realizes visible light wireless communication for communication through the second optical transceiver module 210. The stylus 300 realizes visible light wireless communication for communication through the first optical transceiver component 320. Thus, the terminal body 200 and the stylus pen 300 can perform visible light wireless communication with each other, and also with other electronic devices, respectively. When the stylus is in the accommodated state, the electronic device 100 may collect light waves in the environment through the first optical transceiver component 320 or the second optical transceiver component 210, and detect the signal strength of the visible light wireless communication according to the light waves. When the detection result indicates that the signal strength at the second optical transceiver module 210 is stronger, the embodiment of the present application can control the visible light wireless communication path of the first optical transceiver module 320 to be disconnected. When the detection result indicates that the signal strength at the second optical transceiver module 210 is poor, the embodiment of the present application can control the visible light wireless communication path of the first optical transceiver module 320 to be connected. The visible light wireless communication path of the first optical transceiver component 320 is branched from the visible light wireless communication path of the second optical transceiver component 210. By switching the two visible light wireless communication paths, the communication efficiency of the electronic device 100 can be further improved.
Fig. 7 is a schematic composition diagram of a control device according to an embodiment of the present application. As shown in fig. 7, a control device 400 according to some embodiments of the present application includes a processor 410, a memory 420, and a program or instructions stored on the memory 420 and executable on the processor 410. The programs or instructions, when executed by the processor 410, implement the steps of a control method of a stylus as in any embodiment of the present application or implement the steps of a control method of an electronic device as in any embodiment of the present application. According to some embodiments of the present application, a readable storage medium stores thereon a program or instructions, which when executed by a processor, implements the steps of the method for controlling a stylus according to any of the embodiments of the present application or implements the steps of the method for controlling an electronic device according to any of the embodiments of the present application.
The control device 400 or the readable storage medium according to the embodiment of the application can control the first optical transceiver component of the stylus to execute at least two operation modes including the first operation mode and the second operation mode. And the touch pen executes a color acquisition function under the first working mode of the first light receiving and transmitting assembly. And under the second working mode, the touch pen executes the visible light wireless communication function. Therefore, the control device 400 or the readable storage medium in the embodiment of the application can expand the functions of the stylus and meet diversified use requirements of users. In addition, the control device 400 or the readable storage medium according to the embodiment of the present application enables the stylus pen to realize rapid mass transfer of data or information.
In the description herein, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.

Claims (12)

1. A stylus, comprising:
a main body;
a first optical transceiver component disposed on the main body;
the first optical transceiver component includes:
a first light emitting section for emitting a light wave;
a first light receiving part for receiving a light wave;
the first optical transceiver component is in communication connection with the controller;
the working modes of the first light receiving and transmitting assembly comprise a first working mode and a second working mode, and the touch pen can acquire the color of a target object when the first light receiving and transmitting assembly is in the first working mode; when the first optical transceiver component is in the second working mode, the stylus can perform visible light wireless communication.
2. The stylus of claim 1, wherein the first optical transceiver component further comprises:
a memory for storing information and communicatively coupled to the controller.
3. The stylus of claim 1 or 2, further comprising:
and the first information transmission interface is arranged on the main body and is in communication connection with the first optical transceiving component.
4. The stylus of claim 1 or 2, further comprising:
a first housing detection component disposed in the body and communicatively coupled to the controller of the first optical transceiver module.
5. An electronic device, comprising:
a terminal body;
and a stylus as claimed in any one of claims 1 to 4.
6. A control method of a stylus pen is characterized by comprising the following steps:
when the first light receiving and transmitting component is in a first working mode, acquiring the color of a target object through the first light receiving and transmitting component;
and when the first optical transceiver component is in the second working mode, carrying out visible light wireless communication through the first optical transceiver component.
7. The method for controlling a stylus according to claim 6, wherein the obtaining of the color of the target object through the first optical transceiver module specifically includes:
emitting light waves through the first optical transceiver component to illuminate the target object;
receiving the light waves through the first light transceiving component to collect target object reflected light from the target object;
and acquiring the color of the target object according to the reflected light of the target object.
8. The method for controlling a stylus according to claim 7, further comprising, after the obtaining the color of the object according to the object reflected light is performed:
determining a color taking instruction according to the color;
and emitting light waves through the first light receiving and transmitting component according to the color taking instruction so as to emit light signals matched with the color taking instruction.
9. The method for controlling a stylus according to claim 6, wherein the performing visible light wireless communication through the first optical transceiver module specifically includes:
receiving the light wave through the first optical transceiver component to obtain a first optical signal;
and acquiring first information matched with the first optical signal according to the first optical signal, and storing the first information.
10. A method of controlling an electronic device, comprising:
detecting a relative position relation between a touch pen and the electronic equipment;
and when the touch control pen is in a stored state, the electronic equipment controls the on-off of a visible light wireless communication path in the touch control pen according to the signal intensity of visible light wireless communication.
11. A control apparatus comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the method of controlling a stylus according to any one of claims 6 to 9 or implementing the steps of the method of controlling an electronic device according to claim 10.
12. A readable storage medium, characterized in that a program or instructions are stored thereon, which program or instructions, when executed by a processor, carry out the steps of the control method of a stylus according to any one of claims 6 to 9 or the steps of the control method of an electronic device according to claim 10.
CN202011270627.0A 2020-11-13 2020-11-13 Stylus, electronic device, control method, control device, and readable storage medium Pending CN112181183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011270627.0A CN112181183A (en) 2020-11-13 2020-11-13 Stylus, electronic device, control method, control device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270627.0A CN112181183A (en) 2020-11-13 2020-11-13 Stylus, electronic device, control method, control device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN112181183A true CN112181183A (en) 2021-01-05

Family

ID=73918466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270627.0A Pending CN112181183A (en) 2020-11-13 2020-11-13 Stylus, electronic device, control method, control device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN112181183A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838154A (en) * 2021-08-19 2021-12-24 荣耀终端有限公司 Touch pen and color extraction method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004078658A (en) * 2002-08-20 2004-03-11 Fujitsu Component Ltd Stylus pen and information processor
CN203827329U (en) * 2014-02-25 2014-09-10 深圳光启创新技术有限公司 Wireless signal interaction device
CN105429703A (en) * 2015-10-22 2016-03-23 武汉邮电科学研究院 Mobile terminal interaction system and method based on visible light communication
CN110286779A (en) * 2019-06-13 2019-09-27 Oppo广东移动通信有限公司 Stylus, electronic equipment and electronic building brick
TW202015362A (en) * 2018-10-12 2020-04-16 泓博無線通訊技術有限公司 Method and apparatus for antennas control in multi-input multi-output communications
CN111884722A (en) * 2020-07-06 2020-11-03 Oppo(重庆)智能科技有限公司 Information transmission method, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004078658A (en) * 2002-08-20 2004-03-11 Fujitsu Component Ltd Stylus pen and information processor
CN203827329U (en) * 2014-02-25 2014-09-10 深圳光启创新技术有限公司 Wireless signal interaction device
CN105429703A (en) * 2015-10-22 2016-03-23 武汉邮电科学研究院 Mobile terminal interaction system and method based on visible light communication
TW202015362A (en) * 2018-10-12 2020-04-16 泓博無線通訊技術有限公司 Method and apparatus for antennas control in multi-input multi-output communications
CN110286779A (en) * 2019-06-13 2019-09-27 Oppo广东移动通信有限公司 Stylus, electronic equipment and electronic building brick
CN111884722A (en) * 2020-07-06 2020-11-03 Oppo(重庆)智能科技有限公司 Information transmission method, terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838154A (en) * 2021-08-19 2021-12-24 荣耀终端有限公司 Touch pen and color extraction method
CN113838154B (en) * 2021-08-19 2022-12-13 荣耀终端有限公司 Touch pen and color extraction method

Similar Documents

Publication Publication Date Title
CN107436685B (en) Display device, self-luminous display panel and gesture recognition method
CN109151180B (en) Object identification method and mobile terminal
US20070057792A1 (en) Contact arrays and processes for wireless batteryless user input
CN107911554B (en) Electronic device and control method thereof
CN107992780B (en) Code identification method and mobile terminal
US20200278763A1 (en) Rendering device and rendering method
US8587524B2 (en) Remote control for electronic reader and remote control method
US11029841B2 (en) Electronic device for generating augmented reality emoji and method thereof
CN110278325A (en) The electronic equipment and its control method of notice are provided by display
CN102375564A (en) Method for interacting by adopting optical indicator, optical indicator as well as presentation method and system
CN112181183A (en) Stylus, electronic device, control method, control device, and readable storage medium
CN112532887A (en) Shooting method, device, terminal and storage medium
CN110197159B (en) Fingerprint acquisition method and terminal
CN108279833A (en) A kind of reading interactive approach and mobile terminal
US20090021483A1 (en) Wireless mousecapable of controlling a handheld wireless communication apparatus
US10706282B2 (en) Method and mobile terminal for processing image and storage medium
CN105335434B (en) Log management method and device and electronic equipment
CN104778864A (en) Touch reading system with extensible content based on intelligent device and implementation method thereof
CN115032640B (en) Gesture recognition method and terminal equipment
CN209545261U (en) A kind of electronic equipment and terminal
CN110611732B (en) Window control method and related product
CN110266885A (en) A kind of binding method and terminal of terminal
CN212723805U (en) Handheld device for previewing modeling of augmented reality door and window
CN114385025B (en) Touch positioning method, device, equipment and storage medium
CN110807382B (en) Scanning method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination