Pen tip assembly, stylus, data processing method, electronic device and computer readable medium

By designing a pen tip assembly that includes a collector, light guide and diffuse reflector, the problem of existing stylus needing to adjust the opening of the pen body when collecting light is solved, achieving the effect of easy use, beautiful appearance and high light utilization.

CN119668416APending Publication Date: 2025-03-21BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311220766.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

When collecting light, existing stylus need to adjust the opening of the pen body to point to the corresponding area, which is inconvenient to use and affects the appearance.

Method used

A pen tip assembly is designed, including a refill assembly, a collector, a light guide and a diffuse reflector. The acquisition member is penetrated by the refill, and the light guide surrounds the refill assembly. The light ray enters the light guide through the collector and is transmitted to the diffuse reflector through the total reflecting layer. The light ray is scattered in the diffuse reflector, increasing the chance of light receiving.

Benefits of technology

There is no need to open holes in the pen body to collect light, it is easy to use and has a beautiful appearance, which improves light utilization and the sensitivity of the optical sensor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668416A_ABST
    Figure CN119668416A_ABST
Patent Text Reader

Abstract

The invention discloses a pen point assembly, a touch pen, a data processing method, electronic equipment and a computer readable medium. The pen point assembly comprises a refill assembly, a collecting piece, a light guide piece and a diffuse reflection piece. The refill assembly comprises a refill used for touch control. The refill penetrates through the collecting piece; the light guide part surrounds the refill assembly and comprises a light guide part head end corresponding to the refill and a light guide part tail end far away from the refill; the head end of the light guide piece is optically communicated with the acquisition piece, and the tail end of the light guide piece defines a containing cavity; the diffuse reflection part is located in the containing cavity, light enters the light guide part through the collecting part and is transmitted to the containing cavity through the light guide part, and the light is scattered towards the interior of the containing cavity through the diffuse reflection part. According to the pen point assembly and the touch pen, due to the fact that the pen core penetrates through the collecting piece and is located at the head end of the light guide piece, the touch pen is attractive in appearance, a user only needs to point the pen core to an area needing collecting, the collecting piece collects light rays, collecting is convenient, the touch pen is convenient to use, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of touch technology, and in particular to a pen tip assembly, a stylus, a data processing method, an electronic device, and a computer-readable medium. Background Art

[0002] At present, the functions of terminal devices such as mobile phones and tablet computers are becoming increasingly rich, and the terminal devices can interact with the stylus to realize related functions. When collecting light, the pen body of the existing stylus has a hole, and additional operations such as adjusting the stylus to make the hole point to the corresponding area are required to collect light through the hole, which makes it inconvenient to use and has a poor user experience. In addition, the need to open a hole in the pen body will also make the stylus unsightly. Summary of the invention

[0003] The purpose of the present application is to disclose a pen tip assembly, a stylus, a data processing method, an electronic device and a computer-readable medium. The stylus can collect light conveniently and has a beautiful appearance.

[0004] The first aspect of the present application discloses a pen tip assembly, which includes a core assembly, a collecting member, a light guide member and a diffuse reflector; the core assembly includes a core for touch control; the collecting member is penetrated by the core; the light guide member surrounds the core assembly, including a light guide member head end corresponding to the core and a light guide member tail end away from the core; the light guide member head end is optically connected to the collecting member, and the light guide member tail end forms a accommodating cavity; the diffuse reflector is located in the accommodating cavity, light enters the light guide member through the collecting member, is transmitted to the accommodating cavity through the light guide member, and the light is scattered toward the interior of the accommodating cavity through the diffuse reflector.

[0005] In some embodiments, the pen tip assembly includes a pen tip housing, the pen tip housing includes a housing end for the pen core to pass through, and the collecting member includes a spherical surface protruding from the housing end.

[0006] In some embodiments, the field of view angle corresponding to the spherical surface is a, 75 degrees ≤ a ≤ 180 degrees.

[0007] In some embodiments, the light guide element is provided with a light guide cavity, and the light guide cavity is provided with a total reflection layer, and the total reflection layer totally reflects the light from the collection element.

[0008] In some embodiments, the light guide cavity includes a first light guide cavity and a second light guide cavity located above the first light guide cavity, the side wall of the first light guide cavity is inclined toward the outside of the pen core; the side wall of the second light guide cavity extends along the length direction of the pen core and is connected to the side wall of the first light guide cavity at an obtuse angle; the total reflection layer includes a first coating respectively arranged on the side wall of the first light guide cavity and a second coating arranged on the side wall of the second light guide cavity.

[0009] In some embodiments, the obtuse angle is b, and 120 degrees ≤ b < 180 degrees.

[0010] In some embodiments, the length of the side wall of the first light guiding cavity along the length direction of the pen core is h1, and 15mm≤h1≤20mm.

[0011] In some embodiments, the light of the diffuse reflector is scattered toward the optical sensor, the length of the optical sensor along the length direction of the pen core is h0, the second light guide cavity includes an outer side wall of the second light guide cavity facing the optical sensor, the length of the outer side wall of the second light guide cavity along the length direction of the pen core is h2, and h2≥1.5h0.

[0012] The second aspect of the present application discloses a stylus pen, which comprises the pen tip assembly of the first aspect and an optical sensor, wherein the optical sensor is located in the accommodating cavity, receives light from the diffuse reflector, and converts the light signal into an electrical signal.

[0013] In some embodiments, there are multiple optical sensors; the stylus also includes a main board inserted into the accommodating cavity, the main board includes multiple sub-control boards, the multiple sub-control boards form a regular prism, each sub-control board is provided with one optical sensor, and the diffuse reflector surrounds all the optical sensors.

[0014] The third aspect of the present application discloses a data processing method, which includes: in response to an acquisition signal, obtaining color parameters obtained by a stylus based on light collected by a pen tip assembly; sending the color parameters to an electronic device that is communicatively connected to the stylus, so that the electronic device obtains a color result based on the color parameters, and the color result is used to characterize a display effect, and implements a corresponding function based on the color result; or, processing the color parameters to obtain a color result, and the color result is used to characterize a display effect; sending the color result to an electronic device that is communicatively connected to the stylus, so that the electronic device implements a corresponding function based on the color result.

[0015] In some embodiments, the color result includes a light intensity value, the electronic device includes a screen, and implementing the corresponding function includes adjusting the screen brightness according to the light intensity value; and / or, the color result includes a chromaticity value, the electronic device includes a screen, and implementing the corresponding function includes adjusting the screen color according to the chromaticity value.

[0016] In some implementations, the color result includes a chromaticity value, the electronic device includes a camera, and implementing the corresponding function includes controlling a scene set by the camera according to the chromaticity value.

[0017] The fourth aspect of the present application discloses a data processing method, which includes: receiving color parameters or color results sent by a stylus pen that is communicatively connected to an electronic device, wherein the color parameters or color results are obtained by the data processing method described in the third aspect; and implementing corresponding functions based on the color results.

[0018] The fifth aspect of the present application discloses an electronic device, which includes a communication component and a processor, wherein the communication component is used to communicate with a stylus to receive color parameters or color results; the processor controls the electronic device to implement the data processing method of the fourth aspect based on the color results.

[0019] The sixth aspect of the present application discloses a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the data processing method described in the third aspect is implemented, or the data processing method described in the fourth aspect is implemented.

[0020] The above-mentioned pen tip assembly and stylus, since the collection member is passed through the pen core and is located at the head end of the light guide member, is used to collect light from the area pointed by the pen core. In this way, there is no need to open a hole in the pen body to collect light, the stylus has a beautiful appearance, and the user only needs to point the pen core to the area that needs to be collected. Compared with the structure in which the opening is set in the pen body to collect light, there is no need to adjust the stylus so that the light can be collected by the optical sensor through the opening, which is convenient for collection and easy to use, thereby improving the user experience. In addition, the light is scattered into the accommodating cavity by the diffuse reflector, and finally, more light is received by the optical sensor, thereby improving the utilization rate of light and the sensitivity of the optical sensor. For the above-mentioned data processing method, since the color parameters obtained based on the light collected by the pen tip assembly are obtained in response to the collection signal, and the color parameters or color results are sent to the electronic device, it is convenient to collect signals and convenient for the stylus to interact with the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of a stylus pen of the present application;

[0022] Figure 2is a cross-sectional view of a stylus tip assembly of the present application, but does not illustrate the total reflection layer;

[0023] Figure 3 is a three-dimensional diagram of a pen tip assembly of a stylus pen of the present application;

[0024] Figure 4 This is a schematic diagram of the distribution of a sub-control board and an optical sensor of a main board of the present application;

[0025] Figure 5 It is a flow chart of the first implementation method of the data processing method of the present application;

[0026] Figure 6 is a flow chart of a second implementation method of the data processing method of the present application;

[0027] Figure 7 is a flow chart of a third implementation method of the data processing method of the present application;

[0028] Figure 8 is a flowchart of a fourth implementation method of the data processing method of the present application;

[0029] Fig. 9 is a flowchart of a fifth implementation method of the data processing method of the present application;

[0030] Fig.10 It is a schematic block diagram of an electronic device of the present application. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices consistent with some aspects of the present application as detailed in the appended claims.

[0032] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which this application belongs. The words "first", "second" and similar words used in the specification and claims of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantitative limit, but indicate that there is at least one. "Multiple" or "several" means two or more. Unless otherwise specified, words such as "front", "rear", "lower" and / or "upper" are only for the convenience of explanation and are not limited to one position or one spatial orientation. Words such as "include" or "comprise" mean that the elements or objects appearing in front of "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalents, and do not exclude other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, and can include electrical connections, whether direct or indirect. The singular forms "a", "said" and "the" used in this specification and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0033] The present application discloses a method and a stylus pen for controlling a terminal device based on optical information. The method is not limited to the stylus pen described below. The relevant structure of the stylus pen of the present application is described as follows:

[0034] See also Figure 1 , Figure 2 and Figure 3 The first aspect of the present application discloses a pen tip assembly 10. The pen tip assembly 10 includes a refill assembly 4, a collecting component 1, a light guide component 2 and a diffuse reflection component 3.

[0035] The refill assembly 4 includes a refill 41 (also referred to as a pen tip or pen head) for touch control, which can at least realize the touch function. Its structure is not limited. For example, for a capacitive stylus pen, the refill assembly 4 includes a weak conductor and a pressure-sensitive element, and the refill 41 is a part of the weak conductor; for an electromagnetic stylus pen, the refill assembly 4 includes the refill 41 and a coil (not marked in the figure).

[0036] The collecting member 1 is penetrated by the pen core 41, so that the collecting member 1 can collect light in the area pointed by the pen core 41. The structure of the collecting member 1 is not limited as long as it can collect light. It is not limited to the structure described later, and can be a condenser in a prism or other shape.

[0037] The light guide 2 surrounds the refill assembly 4, and includes a light guide head end corresponding to the refill 41 and a light guide tail end away from the refill 41; the light guide head end is optically connected to the collecting member 1. The light guide head end is optically connected to the collecting member 1, and the optical connection means that the light collected by the collecting member 1 can be transmitted into the interior of the light guide 2. The light guide 2 is used to guide light so that the light can be transmitted from the collecting member 1 to the diffuse reflection member 3. Its structure is not limited as long as it can play the above-mentioned role. For example, it is not limited to a single component, and can be a part of the pen body shell 40 and the pen tip shell 5, as well as a part of the refill assembly to form a structure capable of guiding light. The light guide tail end encloses a receiving cavity 21.

[0038] The diffuse reflector 3 is located in the accommodating cavity 21. Light passes through the collecting component 1 and enters the light guide 2. It is transmitted to the accommodating cavity 21 through the light guide 2. The light is scattered toward the inside of the accommodating cavity 21 by the diffuse reflector 3, so that the light is received by the optical sensor 20. Figure 1 The propagation path of part of the light is shown in FIG. The diffuse reflection element 3 can be realized by a diffuse reflection layer.

[0039] As described above, since the collection member 1 is passed through the pen core 41 used for touch control and is optically connected to the front end of the light guide member, the collection member 1 is used to collect light in the area pointed by the pen core 41. In this way, there is no need to make a hole in the pen body to collect light, and the appearance of the stylus is beautiful. The user only needs to point the pen core 41 to the area to be collected. Compared with the structure in which the hole is set in the pen body to collect light, there is no need to adjust the stylus so that the light can be collected by the optical sensor through the hole. The collection is convenient, the stylus is easy to use, and the user experience is improved. In addition, by scattering the light into the accommodating cavity 21 through the diffuse reflection member 3, more light can be received by the optical sensor 20, improving the utilization rate of light and the sensitivity of the optical sensor 20.

[0040] In some embodiments, the nib assembly 10 includes a nib housing 5 , the nib housing 5 includes a housing end 51 for the pen core 41 to pass through, and the collecting member 1 includes a spherical surface 11 protruding from the housing end 51 .

[0041] As set above, since the collecting member 1 includes the spherical surface 11 protruding from the end portion 51 of the shell, more light can be collected, thereby effectively improving the focusing performance of the incident light of the pen tip and improving the effect of light incidence.

[0042] In some embodiments, the field of view angle corresponding to the spherical surface 11 is a, 75 degrees ≤ a ≤ 180 degrees. When a = 180 degrees, the spherical surface 11 or the collecting element 1 can be considered as a hemispherical condenser.

[0043] As set above, since 75 degrees ≤ a ≤ 180 degrees, more light can be collected, which can more effectively improve the focusing performance of the incident light from the pen tip and improve the effect of the incident light.

[0044] In some embodiments, see Figure 1 Combination Figure 2 The light guide element 2 is provided with a light guide cavity 22 , and the light guide cavity 22 is provided with a total reflection layer 23 . The total reflection layer 23 totally reflects the light from the collection element 1 .

[0045] As configured above, the total reflection layer 23 totally reflects the collected light to transmit it to the diffuse reflection element 3, thereby improving the light utilization rate, reducing the light loss, and preventing the interference of ambient stray light.

[0046] See also Figure 2 Combined with Figure 1 The light guide cavity 22 includes a first light guide cavity 221 and a second light guide cavity 222 located above the first light guide cavity 221. The side wall of the first light guide cavity 221 is inclined toward the outside of the pen core 41. The side wall of the second light guide cavity 222 extends along the length direction of the pen core 41 and is connected to the side wall of the first light guide cavity 221 at an obtuse angle. Figure 1 The obtuse angle is shown as b. Figure 2 Combined with Figure 1 In the embodiment of the present application, the side wall of the first light guide cavity 221 includes a first light guide cavity outer wall 2211 and a first light guide cavity inner wall 2212, and correspondingly, the side wall of the second light guide cavity 222 includes a second light guide cavity outer wall 2221 and a second light guide cavity inner wall 2222. Figure 1 The total reflection layer 23 includes a first coating layer 231 disposed on the side wall of the first light guiding cavity and a second coating layer 232 disposed on the side wall of the second light guiding cavity.

[0047] As described above, the side wall of the first light guide cavity 221 is inclined toward the outside of the pen core 41, and the side wall of the second light guide cavity 222 extends along the length direction of the pen core 41, and is connected to the side wall of the first light guide cavity 221 at an obtuse angle, so that light can be better transmitted in the light guide cavity 22 by total reflection, thereby improving light utilization, reducing light loss, and preventing interference from ambient stray light. In addition, the obtuse angle setting does not affect the appearance of the stylus, ensuring the beautiful appearance of the stylus.

[0048] In some embodiments, the obtuse angle is b, 120 degrees ≤ b < 180 degrees, for example, 120 degrees, 123 degrees, 125 degrees, 128 degrees, 130 degrees, 135 degrees, 138 degrees, 140 degrees, 143 degrees, 145 degrees, 148 degrees, 150 degrees, 153 degrees, 155 degrees, 160 degrees, 163 degrees, 165 degrees, 168 degrees, 170 degrees, 173 degrees, 175 degrees or 178 degrees, etc.

[0049] As described above, since 120 degrees ≤ b < 180 degrees, light can be better transmitted in the light guide cavity 22 by total reflection, improving light utilization, reducing light loss and preventing ambient stray light interference. In addition, the obtuse angle setting does not affect the appearance of the stylus, ensuring the beautiful appearance of the stylus.

[0050] In some embodiments, the length of the side wall of the first light guiding cavity 221 along the length direction of the pen core 41 is h1, 15mm≤h1≤20mm, for example, 15mm, 16mm, 17mm, 18mm, 19mm or 20mm.

[0051] As set above, since 15mm≤h1≤20mm, the light propagation path is shorter, the light loss is smaller, and the loss is reduced.

[0052] See also Figure 2 Combined with Figure 1 In some embodiments, the light of the diffuse reflector 3 is scattered toward the optical sensor 20, and the length of the optical sensor 20 along the length direction of the pen core 41 is h0. The second light guide cavity 222 includes a second light guide cavity outer side wall 2221 facing the optical sensor 20, and the length of the second light guide cavity outer side wall 2221 along the length direction of the pen core 41 is h2, and h2≥1.5h0.

[0053] As set above, since h2≥1.5h0, it is ensured that the optical sensor 20 can receive as much light as possible, thereby improving the utilization rate of light, reducing light loss, and reducing consumption.

[0054] See also Figure 1 Combined with Figure 2 The second aspect of the present application discloses a stylus. The stylus comprises any of the aforementioned pen tip components 10 and an optical sensor 20, wherein the optical sensor 20 is located in the accommodating cavity 21, receives light from the diffuse reflector 3, and converts the light signal into an electrical signal. Color parameters can be obtained through the electrical signal. The color parameters are stored in a memory. The memory can be a memory of the optical sensor 20 itself, or a memory independent of the optical sensor 20.

[0055] See also Figure 4In some embodiments, the optical sensor 20 has multiple, Figure 4 The main board 30 has multiple sub-control boards 301. Figure 4 3. The plurality of sub-control boards 301 form a regular prism. Each sub-control board 301 is provided with an optical sensor 20. Figure 4 and Figure 1 It can be seen from the combination that the diffuse reflection element 3 surrounds all the optical sensors 20 .

[0056] As configured above, since there are multiple optical sensors 20 and sub-control boards 301, and the diffuse reflector 3 surrounds all the optical sensors 20, more light can be received, further improving the utilization rate of light, with less light loss and reduced consumption.

[0057] In some embodiments, see Figure 1 The main board 30 and the optical sensor 20 are both one. The optical sensor 20 is disposed on the main board 30 and faces the diffuse reflection member 3 .

[0058] See also Figure 5 In a third aspect, the present application discloses a data processing method. The data processing method can be applied to the stylus to send a color result to an electronic device. The electronic device can be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc. The electronic device can communicate with the stylus, and the communication method is not limited, for example, communication can be achieved through Bluetooth or the like.

[0059] The data processing method comprises the following steps:

[0060] S11: In response to the collection signal, obtaining color parameters obtained by the stylus pen based on the light collected by the pen tip assembly 10 .

[0061] The acquisition signal can be generated by the user pressing a physical button on the stylus, or it can be generated by a virtual button on the software, or it can be generated when the relevant application on the electronic device is started. After obtaining the acquisition signal, the collection light signal can be collected all the time. For example, after the stylus is started, it starts to collect light signals and communicates with the electronic device in real time, so as to transmit the obtained color parameters to the electronic device in real time. In addition, the collection light signal can also be collected at a preset frequency, or it can be collected when needed. After the stylus obtains the acquisition signal, the collection component 1 collects the light in the area pointed by the pen core 41. The light is received by the optical sensor of the stylus after total reflection and diffuse reflection in sequence. The optical sensor converts the light signal into an electrical signal, and the color parameters can be obtained based on the electrical signal.

[0062] S12: Sending the color parameter to an electronic device that is communicatively connected to the stylus pen, so that the electronic device obtains a color result based on the color parameter, wherein the color result is used to characterize a display effect, and implements a corresponding function based on the color result.

[0063] In this step, the color parameter can be sent in real time, at a predetermined frequency, or when a certain application on the electronic device (the application is related to the object to be controlled, as described later) is started, etc. The color result is used to characterize the display result. For example, as described later, the function to be implemented is to adjust the screen brightness. The color result includes a light intensity value, which is used to characterize the brightness. In this way, the electronic device can adjust the screen brightness according to the light intensity value. For another example, when the function to be implemented is to adjust the screen color, the color structure characterizes the color, etc. In this case, the color result includes a chromaticity value. The electronic device can adjust the screen color according to the chromaticity value, etc. For another example, the function to be implemented is to control the scene set by the camera. The color result includes a chromaticity value. The scene set by the camera is controlled by adjusting the chromaticity value. The color effect can characterize the display effect under the scene. For example, when taking photos in the evening, the scene of the camera can be set to the evening, but it is achieved by collecting the light in the evening. Then the set scene is more realistic and the display effect of the photo is better.

[0064] The above data processing method obtains color parameters based on the light collected by the pen tip assembly in response to the collection signal, and the color parameters or color results are sent to the electronic device. Therefore, signal collection is convenient and the interaction between the stylus pen and the electronic device is convenient.

[0065] Exemplarily, as a possible implementation method, the data processing method implemented by the above steps S11-S12 can also be implemented based on the cloud (server) as the execution entity.

[0066] See also Figure 6 , Figure 6 Another data processing method is disclosed, which can also be applied to a stylus pen. Figure 5 Compared with the embodiment shown in the figure, the difference lies in that the subject for processing the color parameters to obtain the color result is different. Figure 5 The main body of the embodiment shown is a stylus, which only sends color parameters. Figure 6 In the embodiment shown, the stylus only sends the color result, and of course, the color result is also used to characterize the display effect. In more detail, the data processing method includes the following steps:

[0067] S21: in response to the acquisition signal, obtaining color parameters obtained by the stylus based on the light collected by the pen tip assembly; this step refers to the description of step S11 and will not be repeated here.

[0068] S22: Process the color parameters to obtain a color result, where the color result is used to characterize a display effect;

[0069] S23: Sending the color result to an electronic device that is communicatively connected to the stylus pen, so that the electronic device implements a corresponding function based on the color result.

[0070] In the above implementation, since the stylus pen only sends the color result to the electronic device, the amount of data transmitted between the stylus pen and the electronic device is relatively small, thus avoiding problems such as transmission delay.

[0071] Exemplarily, as a possible implementation method, the data processing method implemented by the above steps S21-S23 can also be implemented based on the cloud (server) as the execution entity.

[0072] In a fourth aspect, the present application discloses a data processing method. The method can be applied to an electronic device. The electronic device can be any of the devices described above. The method comprises the following steps:

[0073] Receiving a color parameter or a color result sent by a stylus pen that is communicatively connected to the electronic device, wherein the color parameter or the color result is obtained by the data processing method of the third aspect, that is, the color parameter or the color result comes from the stylus pen;

[0074] See also Fig.10 , Fig.10 Some components of the electronic device related to this application are shown in FIG. Fig.10 It can be seen that the communication component communicates with the corresponding component of the stylus, such as Bluetooth communication, etc., to receive the color parameters or color results sent from the stylus.

[0075] A corresponding function is implemented based on the color result.

[0076] Continue to see Fig.10 After the processor obtains the color result, it can call the corresponding control to implement the corresponding function.

[0077] The data processing method is further described as follows in conjunction with specific drawings:

[0078] See also Figure 7 , Figure 7 The present invention is a flow chart of a data processing method applied to an electronic device, wherein the data processing method is used to adjust the screen brightness of the electronic device, and comprises the following steps:

[0079] S31: receiving a color parameter or a color result sent by a stylus pen that is communicatively connected to an electronic device, wherein the color result includes a light intensity value.

[0080] In this step, the color parameters or color results may be received in real time, or may be received based on a preset frequency, or may start receiving when the stylus touches the application associated with the object to be controlled on the screen, or when the user operates a brightness progress bar displayed on the screen.

[0081] S32: Process the light intensity value to obtain display brightness.

[0082] In this step, any technology may be used to process the light intensity value to obtain the display brightness, which will not be described in detail.

[0083] S33: Adjust the screen brightness according to the display brightness.

[0084] In this step, the processor of the electronic device will call the corresponding control to adjust the brightness, so that the user does not need to slide the brightness bar displayed on the screen to adjust the screen brightness. Therefore, the data processing method automatically adjusts the brightness according to the color parameter or color result from the stylus, making the brightness adjustment convenient.

[0085] See also Figure 8 , Figure 8 The data processing method shown is applied to a flowchart of an electronic device, wherein the data processing method is used to adjust the screen color of the electronic device, and comprises the following steps:

[0086] S41: receiving color parameters or color results sent by a stylus pen that is communicatively connected to an electronic device, wherein the color results include chromaticity values.

[0087] How to implement this step can refer to step S31 and will not be described in detail.

[0088] S42: Process the chromaticity value to obtain the screen color.

[0089] How to process the chromaticity value to obtain the screen color can be any technology, for example, the chromaticity value includes a horizontal coordinate x and a vertical coordinate y (also referred to as chromaticity value xy in the industry). The screen color is obtained according to the chromaticity value.

[0090] S43: Adjust screen color.

[0091] In this step, the screen color includes the RGB value, color style and color temperature of the screen, etc. The same as the above principle, after the stylus touches the interface for adjusting the screen color, the electronic device receives the chromaticity value and obtains the screen color, and then automatically calls the corresponding control to adjust the screen color. Finally, the data processing method automatically adjusts the screen color according to the color parameters or color results from the stylus, making the screen color adjustment convenient.

[0092] See also Fig. 9 , Fig. 9The data processing method shown is applied to an electronic device to set a scene of a camera.

[0093] S51: receiving a color parameter or a color result sent by a stylus pen that is in communication with the electronic device, wherein the color result includes a chromaticity value;

[0094] How to receive the color parameters or color results can refer to the description of step S31, wherein the receiving can start when the stylus touches the application associated with the object to be controlled on the screen. Specifically in this embodiment, when the user needs to start the camera function, he will click on the camera icon on the screen with his hand or use the stylus to touch the screen. Then, the stylus starts collecting through the collection part of the pen tip assembly, so that the electronic device obtains the color parameters or color results.

[0095] S52: Process the chromaticity value to obtain the color temperature.

[0096] How to obtain the color temperature through the chromaticity value can be achieved by any technology, which will not be described in detail.

[0097] S53: Set the camera scene according to color temperature.

[0098] In this step, for example, if the user takes a photo in the evening, the processor of the electronic device will set the camera scene to evening according to the color temperature, so that the photo display effect is better and more beautiful. Therefore, the above data processing method automatically sets the camera scene according to the color parameter or color result from the stylus, and the scene setting is more convenient.

[0099] Combination Fig.10 The fifth aspect of the present application discloses an electronic device. The electronic device includes a communication component 201 and a processor 202. The communication component 201 is used to communicate with a stylus to receive color parameters or color results. In some embodiments, the communication component 201 and the stylus communicate with each other and also include sending a collection signal to the stylus. For example, in the aforementioned embodiment of controlling the camera to set a scene, clicking or touching the camera icon will generate a collection signal, and the collection signal is sent to the stylus through the communication component 201. The processor 202 controls the electronic device to implement the data processing method described in the fourth aspect based on the color result. The electronic device also includes a screen 203, a camera 204, a power system 205 and a memory 206. The power system 205 is used to provide power so that the electronic device can work. The memory 206 is used to store instructions, etc., for example, storing taken photos, etc.

[0100] The sixth aspect of the present application discloses a computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the data processing method described in the third aspect or the data processing method described in the fourth aspect is implemented.

[0101] The above description is only a preferred implementation mode of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A pen tip assembly, characterized in that: The pen tip assembly includes a pen core assembly, a collection component, a light guide component and a diffuse reflection component; The refill assembly includes a refill for touch control; The collecting member is penetrated by the pen core; The light guide surrounds the refill assembly, and includes a light guide head end corresponding to the refill and a light guide tail end away from the refill; the light guide head end is optically connected to the collecting member, and the light guide tail end forms a receiving cavity; The diffuse reflector is located in the accommodating cavity. Light enters the light guide through the collecting component and is transmitted to the accommodating cavity through the light guide. The light is scattered toward the interior of the accommodating cavity through the diffuse reflector.

2. The pen tip assembly according to claim 1, characterized in that: The pen tip assembly comprises a pen tip shell, the pen tip shell comprises a shell end portion for the pen core to pass through, and the collecting member comprises a spherical surface protruding from the shell end portion.

3. The pen tip assembly according to claim 2, characterized in that: The field of view angle corresponding to the spherical surface is a, 75 degrees ≤ a ≤ 180 degrees.

4. The pen tip assembly according to claim 1, characterized in that: The light guide component is provided with a light guide cavity, and the light guide cavity is provided with a total reflection layer, and the total reflection layer totally reflects the light from the collection component.

5. The pen tip assembly according to claim 4, characterized in that: The light guide cavity comprises a first light guide cavity and a second light guide cavity located above the first light guide cavity, the side wall of the first light guide cavity is inclined toward the outside of the pen core; the side wall of the second light guide cavity extends along the length direction of the pen core and is connected to the side wall of the first light guide cavity at an obtuse angle; The total reflection layer includes a first coating layer respectively disposed on the side wall of the first light guiding cavity and a second coating layer disposed on the side wall of the second light guiding cavity.

6. The pen tip assembly according to claim 5, characterized in that: The obtuse angle is b, 120 degrees ≤ b < 180 degrees.

7. The pen tip assembly according to claim 5, characterized in that: The length of the side wall of the first light guiding cavity along the length direction of the pen core is h1, and 15mm≤h1≤20mm.

8. The pen tip assembly according to claim 5, characterized in that: The light of the diffuse reflector is scattered toward the optical sensor, and the length of the optical sensor along the length direction of the pen core is h0. The second light guide cavity includes an outer side wall of the second light guide cavity facing the optical sensor, and the length of the outer side wall of the second light guide cavity along the length direction of the pen core is h2, and h2≥1.5h0.

9. A touch pen, characterized in that: The stylus pen comprises the pen tip assembly and the optical sensor according to any one of claims 1 to 8, wherein the optical sensor is located in the accommodating cavity, receives light from the diffuse reflector, and converts the optical signal into an electrical signal.

10. The touch pen according to claim 9, characterized in that: There are multiple optical sensors; the stylus pen also includes a main board inserted into the accommodating cavity, the main board includes multiple sub-control boards, the multiple sub-control boards form a regular prism, each sub-control board is provided with one optical sensor, and the diffuse reflector surrounds all the optical sensors; Alternatively, the stylus pen further includes a mainboard inserted into the accommodating cavity, and the mainboard and the optical sensor are both one; the optical sensor is arranged on the mainboard and faces the diffuse reflection element.

11. A data processing method, characterized in that: The data processing method comprises: In response to the acquisition signal, obtaining a color parameter obtained by the stylus based on the light collected by the pen tip assembly; Sending the color parameter to an electronic device that is communicatively connected to the stylus pen, so that the electronic device obtains a color result based on the color parameter, the color result is used to characterize a display effect, and implements a corresponding function based on the color result; Alternatively, the color parameters are processed to obtain a color result, where the color result is used to characterize a display effect; The color result is sent to an electronic device that is communicatively connected to the stylus pen, so that the electronic device implements a corresponding function based on the color result.

12. The data processing method according to claim 11, characterized in that: The color result includes a light intensity value, the electronic device includes a screen, and the implementing the corresponding function includes adjusting the screen brightness according to the light intensity value; And / or, the color result includes a chromaticity value, the electronic device includes a screen, and the implementing the corresponding function includes adjusting the screen color according to the chromaticity value.

13. The data processing method according to claim 11, characterized in that: The color result includes a chromaticity value, the electronic device includes a camera, and the implementing of the corresponding function includes controlling a scene set by the camera according to the chromaticity value.

14. A data processing method, characterized in that: The data processing method comprises: Receiving a color parameter or a color result sent by a stylus pen that is in communication with the electronic device, wherein the color parameter or the color result is obtained by the data processing method according to any one of claims 11 to 13; A corresponding function is implemented based on the color result.

15. An electronic device, characterized in that: The electronic device comprises: A communication component, the communication component is used to communicate with the stylus pen to receive color parameters or color results; The processor controls the electronic device to implement the data processing method of claim 14 based on the color parameter or the color result.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed by the processor, the data processing method according to claim 11 or the data processing method according to any one of claims 12 to 14 is implemented.