Control method and device of passive display equipment, electronic equipment and storage medium
Using near field communication technology to obtain and control the display element information of passive display devices and create custom drawing boards, it solves the problem of single display content on existing mobile phone cases, realizes the diversity and programmability of passive display devices, and improves User experience.
Patent Information
- Application Number
- CN202410681402.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-13
AI Technical Summary
Existing mobile phone cases with LED displays display single content, lack diversity, and cannot achieve user-defined image display.
By establishing a near-field communication connection, obtaining display component information, creating a matching drawing board, and using near-field communication to control the display device to display customized images, the programmability and diversity of passive display devices are achieved.
It improves the display content diversity and programmability of passive display devices, enables users to customize the display content, and enhances the real-time display and operation convenience of the device.
Smart Images

Figure CN118642677A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of display control technology, and in particular to a control method, device, electronic device and storage medium (computer-readable storage medium) for a passive display device. Background Art
[0002] Mobile phone cases are a common accessory for smartphones, which can beautify and protect the phone. In order to make the mobile phone cases more cool, some manufacturers have launched mobile phone cases with LED displays. This kind of mobile phone case can display different patterns by controlling the light beads arranged in an array in the LED display. However, the mobile phone case is generally set by the manufacturer before leaving the factory, which makes the display content of this type of micro LED display too simple. Summary of the invention
[0003] Embodiments of the present invention provide a control method, device, electronic device and storage medium for a passive display device, aiming to effectively improve the display content diversity of the passive display device.
[0004] In a first aspect, an embodiment of the present invention provides a control method for a passive display device, wherein the passive display device includes a passive power supply circuit and at least two display elements, and the control method for the passive display device includes:
[0005] Establishing near field communication with the passive display device, and supplying power to the passive power circuit based on the near field communication, so as to operate the passive display device;
[0006] Acquire display element information of the passive display device, and create a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0007] In response to a mapping operation triggered by the drawing board, the passive display device is controlled through the near field communication to display a display image corresponding to the mapping operation.
[0008] Optionally, in response to the mapping operation triggered by the drawing board, controlling the passive display device to display a display image corresponding to the mapping operation through the near field communication includes:
[0009] In response to a mapping operation triggered by the drawing board, determining a target pixel value corresponding to each pixel area on the drawing board;
[0010] According to the private protocol corresponding to the passive display device, convert the color identifier corresponding to each of the target pixel values to obtain the display information corresponding to each of the pixel areas;
[0011] The display information is sent to the passive display device through the near field communication, so that each display element of the passive display device processes the corresponding display information and displays a display image corresponding to the mapping operation.
[0012] Optionally, before determining the target pixel value corresponding to each pixel area on the drawing board in response to the mapping operation triggered by the drawing board, the method further includes:
[0013] Receiving a picture to be displayed from the passive display device;
[0014] Obtaining target image data corresponding to each pixel area in the picture to be displayed;
[0015] Based on the target image data corresponding to each pixel area, a mapping operation of the drawing board is triggered.
[0016] Optionally, before determining the target pixel value corresponding to each pixel area on the drawing board in response to the mapping operation triggered by the drawing board, the method further includes:
[0017] In response to the drawing operation received by the drawing board for the pixel area, determining a target pixel area selected by the drawing operation;
[0018] The target pixel area is assigned a value based on the preset image data, the image data corresponding to each pixel area on the drawing board is updated, and the mapping operation of the drawing board is triggered.
[0019] Optionally, controlling the passive display device to display a display image corresponding to the mapping operation through the near field communication includes:
[0020] According to the private protocol corresponding to the passive display device, each pixel area in the drawing board is modulo-ed, and encapsulated to obtain a drawing board data packet;
[0021] The drawing board data packet is converted into a near field communication message format, and the drawing board data packet is sent to the passive display device through the near field communication.
[0022] Optionally, performing modulo operation on each pixel region in the drawing board according to a private protocol corresponding to the passive display device and encapsulating the drawing board data packet includes:
[0023] Acquire playback configuration information of a display image corresponding to the mapping operation, wherein the display image includes at least two image frames;
[0024] For each image frame, performing modulo operation on each pixel region of the drawing board according to the private protocol to obtain a target data field of the image frame;
[0025] According to the private protocol, the playback configuration information and the target data field of each image frame are encapsulated to obtain the drawing board data packet.
[0026] Optionally, acquiring display element information of the passive display device and creating a drawing board according to the display element information includes:
[0027] Acquire arrangement information of the display elements in the display element information;
[0028] Determining a pixel size of a drawing board based on the arrangement information and the preset pixel area information;
[0029] The artboard is created according to the artboard pixel size.
[0030] In a second aspect, an embodiment of the present invention provides a control device for a passive display device, the control device for a passive display device comprising:
[0031] A communication power supply module, used for establishing near field communication with the passive display device, and supplying power to the passive power supply circuit based on the near field communication, so as to operate the passive display device;
[0032] An acquisition module, used for acquiring display element information of the passive display device, and creating a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0033] The control module is used to control the passive display device to display a display image corresponding to the mapping operation through the near field communication in response to the mapping operation triggered by the drawing board.
[0034] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any method for controlling a passive display device provided by the embodiment of the present invention.
[0035] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which includes a computer program. When the computer program runs on an electronic device, the computer program is used to enable the electronic device to execute the steps of any passive display device control method provided by the embodiment of the present invention.
[0036] The present invention first establishes near-field communication with the passive display device, supplies power to the passive power circuit based on the near-field communication, so that the passive display device can operate; obtains display element information of the passive display device, and creates a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device; in response to the mapping operation triggered by the drawing board, controls the passive display device through the near-field communication to display the display image corresponding to the mapping operation. In this way, the passive display device can draw power from the electronic device and interact with data with it through near-field communication, obtain the display element information of the passive display device, create a drawing board for mapping with the display element information, and display the display image corresponding to the mapping operation triggered by the drawing board on the passive display device. The mapping operation can be customized on the drawing board, so that the content displayed by the passive display device is programmable, thereby improving the diversity of the content displayed by the passive display device. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 is a flow chart of an embodiment of a control method for a passive display device provided in an embodiment of the present invention;
[0039] Figure 2 is a flow chart of another embodiment of a method for controlling a passive display device provided in an embodiment of the present invention;
[0040] Figure 3 is an example diagram of the arrangement of display elements of a passive display device provided in an embodiment of the present invention;
[0041] Figure 4 is a first example diagram of a drawing board interface provided in an embodiment of the present invention;
[0042] Figure 5 is an example diagram of the display effect of a passive display device provided in an embodiment of the present invention;
[0043] Figure 6 is a second example diagram of a drawing board interface provided in an embodiment of the present invention;
[0044] Figure 7 is a schematic structural diagram of a control device for a passive display device provided in an embodiment of the present invention;
[0045] Figure 8It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention. At the same time, in the description of the embodiments of the present invention, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0047] Embodiments of the present invention provide a control method, device, electronic device and storage medium for a passive display device.
[0048] Specifically, this embodiment will be described from the perspective of a control device of a passive display device, which can be specifically integrated into an electronic device, that is, the control method of the passive display device in the embodiment of the present invention can be executed by an electronic device, which can be a mobile phone, tablet computer, laptop computer, desktop computer, etc.
[0049] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is an electronic device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0050] According to the background technology of the present invention, the pattern displayed on the LED display screen on the mobile phone case is generally set by the manufacturer before leaving the factory, resulting in the display content of this type of micro LED display screen being too simple.
[0051] In order to solve the above problems, the present invention discloses a control method for a passive display device. Figure 1 The specific process of the control method of the passive display device can be as follows: Step S10 to Step S30, wherein:
[0052] Step S10, establishing near field communication with the passive display device, and supplying power to the passive power circuit based on the near field communication, so as to operate the passive display device;
[0053] In this embodiment, the subject that executes the control method of the passive display device may be an electronic device, and the electronic device may be a mobile phone, a tablet, a computer, etc. The passive display device includes a passive power supply circuit and a plurality of display elements, the display elements may be LED lamp beads, the passive display device may be an electronic device composed of an arrangement of LED lamp beads, the display elements may be arranged in an array on a certain plane on the passive display device, the display elements may emit light based on control requirements, and a plurality of display elements may form a display screen, so that the passive display device has a display function. The passive power supply circuit of the passive display device allows the passive display device to draw power from other electronic devices, and draw power after establishing near-field communication. The electronic device may supply power to the passive power supply circuit based on near-field communication for the operation of the passive display device, so that the display elements can emit light, and other modules of the passive display device can operate normally.
[0054] It should be noted that the passive display device can draw power from the electronic device through the passive power circuit, and the electronic device supplies power to the passive power circuit based on near field communication. This embodiment does not limit whether the passive display device actively draws power from the electronic device through the passive power circuit or the electronic device actively supplies power to the passive power circuit based on near field communication.
[0055] Passive display devices can be accessories such as smart protective cases, smart stickers, smart patches, smart cards, etc. of electronic devices, which include at least two display elements. Passive display devices can be attached to electronic devices, or assembled on electronic devices so that the two are in close contact. Passive display devices can be removed from electronic devices at any time and assembled on other electronic devices. Electronic devices and passive display devices are not uniquely matched.
[0056] The electronic device has a near field communication module, and the passive display device also has a near field communication module. The near field communication module may include a passive power supply circuit. In addition to realizing the power supply function through the passive power supply circuit, the near field communication module can also realize the data interaction function. The near field communication module can be a near field communication module such as an NFC module. When the distance between the near field communication module on the passive display device and the near field communication module of the electronic device meets the predetermined distance condition, for example, when a smart phone with a passive display device can be assembled on the electronic device, the two are fitted to meet the conditions of near field communication. The near field communication module on the passive display device can trigger the near field communication module of the electronic device to start, or the near field communication module that has been started on the electronic device can respond to the near field communication module on the passive display device, and then the electronic device can establish near field communication with the passive display device. Near field communication is a channel for data interaction and power interaction. After establishing near field communication, the electronic device can power the passive display device through the near field communication and the passive power supply circuit of the passive display device, and can also control the passive display device to display images, so that the passive display device can operate and display normally.
[0057] Step S20, obtaining display element information of the passive display device, and creating a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0058] In this embodiment, the passive power supply circuit draws power from the electronic device based on near field communication, and the electronic device can also power the passive display device through near field communication. After the power supply is successfully drawn, the electronic device can send a request to the passive display device to obtain its display element information, so that the passive display device can send its display element information to the electronic device based on the communication module that has been powered on, and the communication module can be a near field communication module. Optionally, after the passive display device is powered on, it can also actively send its pre-stored display element information to the electronic device, thereby improving communication efficiency.
[0059] The passive display device may include a display screen formed by an array of multiple display elements, each display element independently performs light-emitting display, and after each display element selectively emits light, some images, especially some patterns, can be displayed on the display screen. In some embodiments, the passive display device may be an accessory electronic device with an LED display screen, such as a mobile phone case with an LED display screen, and the electronic device may be a mobile phone, and the two may establish near-field communication, and the display elements may be LED lamp beads, which are arranged in an array to form a display screen. The display element information may include the overall information of the passive display device, such as the arrangement information, size information, device model of the passive display device, etc. of all display elements in the passive display device, and may also include information corresponding to each display element of the passive display device, such as the position identification of each display element, the frequency band of the displayable light, and the identifiable color identification, etc.
[0060] After obtaining the display element information of the passive display device, the electronic device can establish a drawing board based on the display element information of the passive display device. The electronic device can have a control application corresponding to the passive display device, and the control application can control the passive display device that has established near-field communication with the electronic device. Generally, the control application only controls one passive display device. For example, in a general scenario, the mobile phone is equipped with a mobile phone case with an LED display. The passive display device that establishes near-field communication with the electronic device can be switched, so that the control application can control different passive display devices at different times.
[0061] Optionally, the control application can be automatically started when the electronic device communicates with the passive display device in the near field. In some embodiments, the electronic device can also automatically establish near field communication with the passive display device when the running process of the control application is triggered. This improves the convenience and efficiency of configuring the passive display device to display content.
[0062] The control application can provide a configuration interface corresponding to the passive display device, and the electronic device can create a drawing board based on the display element information in the configuration interface. Each pixel area in the drawing board matches each display element of each passive display device, referring to Figure 3 A passive display device having 10*10 display elements, and a reference Figure 410*10 drawing board in the figure. Each display element can correspond to a pixel area, and the pixel area and the display element can have a one-to-many or one-to-one mapping relationship. The display information processed by the display element is consistent with the pixel value corresponding to the pixel area, and each drawing board pixel point in the pixel area can have the same pixel value. Thereby, the content displayed on the drawing board of the electronic device is consistent with the content displayed by the passive display device, and the display effect of the passive display device can be accurately determined in real time through the drawing board. In the scene where the passive display device is a smart protective case of a mobile phone and the display screen of the electronic device and the display screen of the passive display device are not on the same plane, the user does not need to check the passive display device of the electronic device and the passive display device back and forth to determine the display effect of the passive display device, so as to improve the convenience of operation. In addition, the display content on the drawing board can be quickly converted to the passive display device, which can improve the display timeliness and efficiency of the passive display device.
[0063] Optionally, the maximum number of rows and the maximum number of columns of the display element in the display element information are obtained; the pixel size of the drawing board is determined according to the maximum number of rows and the maximum number of columns of the display element; and the drawing board is created according to the pixel size of the drawing board.
[0064] In this embodiment, the display element information of the passive display device includes the arrangement information of the display element, and the arrangement information can characterize the number of display elements in each row of the display element of the passive display device, or the number of display elements in each column, as well as the arrangement position of the display element, etc. The arrangement information is used as the arrangement information of the pixel area to match the display element and the pixel area. The preset pixel area information includes the pixel size of the pixel area, etc. The pixel area can be arranged according to the arrangement information of the pixel area, and the relative position between the pixel areas can be determined. In combination with the preset pixel area information, the pixel size required to be occupied by these pixel areas under the arrangement can be determined, and the pixel size is used as the pixel size of the drawing board. The drawing board is established according to the pixel size of the drawing board, so that each pixel area of the drawing board matches each display element of the passive display device, and based on the preset pixel information, the drawing board can be scaled to be displayed on the electronic device at a suitable size, which is convenient for users to build pictures.
[0065] For example, if the display elements of the passive display device are arranged in 16*8, that is, there are 16 display elements in each row and 8 display elements in each column, then the pixel area is also arranged in 16*8, and the preset pixel area information of the pixel area represents that the pixel size of the pixel area is 2*2, so the pixel size of the drawing board is 32*16, that is, there are 16 drawing board pixels in each row and 8 drawing board pixels in each column.
[0066] Step S30, in response to the mapping operation triggered by the drawing board, controlling the passive display device through the near field communication to display a display image corresponding to the mapping operation.
[0067] In this embodiment, the user can customize on the drawing board through the passive display device of the electronic device. The user can trigger the drawing operation of the drawing board by loading pictures, drawing images, etc. on the drawing board. The drawing operation is an operation triggered by the drawing board based on the custom drawing operation triggered by the user. It should be noted that the drawing operation is an operation that can display the user's self-defined image on the drawing board. The execution subject is the drawing board or the electronic device, not the user. The corresponding display image can be determined when the drawing board triggers the drawing operation. When the drawing board triggers the drawing operation, the display image will appear on the drawing board. Through near-field communication, the display image corresponding to the drawing operation on the drawing board can be displayed on the passive display device. Since each pixel area of the drawing board matches the display element of the passive display device, after extracting the pixel value corresponding to each pixel area of the drawing board, after conversion and near-field communication, it can be directly sent to the passive display device, and the display element of the passive display device will process the light correspondingly to display the display image corresponding to the drawing operation, realizing the editability of the display content of the passive display device.
[0068] In the technical solution disclosed in the present implementation, firstly, near field communication with the passive display device is established, and power is supplied to the passive power supply circuit based on the near field communication so as to operate the passive display device; the display element information of the passive display device is obtained, and a drawing board is created according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device; in response to the mapping operation triggered by the drawing board, the passive display device is controlled through the near field communication to display the display image corresponding to the mapping operation. In this way, the passive display device can obtain power from the electronic device and interact with data with it through near field communication, obtain the display element information of the passive display device, create a drawing board for mapping with the display element information, and display the display image corresponding to the mapping operation triggered by the drawing board on the passive display device. The mapping operation can be triggered by custom triggering on the drawing board, so that the content displayed by the passive display device is programmable, thereby improving the diversity of the content displayed by the passive display device. In addition, the drawing board is created based on the display element information of the passive display device, so that the drawing board is highly compatible with the passive display device. The display image of the drawing board's mapping operation can be mapped to the passive display device more quickly and efficiently, which facilitates accurate definition of the display content of the passive display device and real-time and rapid adjustment of the display content of the passive display device, so that the display content of the drawing board and the passive display device has better consistency.
[0069] Further, step S30 includes:
[0070] In response to a mapping operation triggered by the drawing board, determining a target pixel value corresponding to each pixel area on the drawing board;
[0071] According to the private protocol corresponding to the passive display device, convert the color identifier corresponding to each of the target pixel values to obtain the display information corresponding to each of the pixel areas;
[0072] The display information is sent to the passive display device through the near field communication, so that each display element of the passive display device processes the corresponding display information and displays a display image corresponding to the mapping operation.
[0073] In this embodiment, the mapping operation triggered by the drawing board can establish an image model of the passive display device on the drawing board, so as to display the display image corresponding to the mapping operation on the drawing board. When the image is displayed on the drawing board, each pixel area on the drawing board has a corresponding pixel value. In response to the mapping operation triggered by the drawing board, a modulo operation can be further performed, and the modulo operation is used to extract the target pixel value corresponding to each pixel area on the drawing board. Based on the different mapping operations, the pixel values of each pixel point in the pixel area can be the same. At this time, the pixel value corresponding to any pixel point in the pixel area can be extracted as the target pixel value corresponding to the pixel area. The pixel values of each pixel point in the pixel area may also be different. Since the pixels in the same pixel area have similarities, the pixel value corresponding to any pixel point in the pixel area can also be extracted as the target pixel value corresponding to the pixel area, or based on the set weights corresponding to each pixel point, the pixel values corresponding to each pixel point are weighted summed to obtain the target pixel value corresponding to the pixel area.
[0074] A private protocol has been developed for near-field communication between passive display devices and electronic devices, which is used to define the format of data packets during data transmission between passive display devices and electronic devices, the colors that can be processed by each display element in the passive display device, and the color identification that each display element can recognize, etc., so as to ensure the display security of passive display devices.
[0075] In some embodiments, the private protocol corresponding to the passive display device can be pre-saved in the processor corresponding to the passive display device. In response to an event of establishing near-field communication between it and an electronic device, the corresponding private protocol can be packaged in the display element information and sent to the electronic device via near-field communication.
[0076] In some embodiments, the electronic device stores the private protocol corresponding to the passive display device through the control application software corresponding to the passive display device, so that when needed, the private protocol corresponding to the passive display device can be called directly in the storage data corresponding to the control application software.
[0077] In some embodiments, the electronic device can control the private protocols corresponding to passive display devices of different types and models. In response to the event of establishing near field communication between the passive display device and the electronic device, the passive display device packages its model information in the display element information and sends it to the electronic device through near field communication. After obtaining the display element information of the passive display device, the electronic device extracts the model information in the display element information to obtain the private protocol corresponding to the passive display device corresponding to the model information.
[0078] The electronic device converts the color identification corresponding to each target pixel value into a color identification recognizable by the corresponding display element indicated in the private protocol corresponding to the passive display device through the private protocol corresponding to the passive display device, thereby obtaining display information corresponding to each pixel area.
[0079] It should be noted that there is a certain difference between the target pixel value corresponding to the pixel area and the display information corresponding to the pixel area. The target pixel value corresponding to the pixel area is the display attribute of the pixel area in the drawing board, while the display information corresponding to the pixel area is the display information of the display element of the passive display device, which is the information that the display element can process, so that the display element emits light according to the display information, and together with the light-emitting effects of other display elements, it plays the effect of displaying the display image corresponding to the mapping operation. However, there is a corresponding relationship between the display information and the pixel area.
[0080] The display information corresponding to each pixel area is sent to the passive display device through near-field communication. Since the pixel area corresponds to the display element, the passive display device can determine the display information corresponding to each display element according to the pixel area, so that each display element processes the corresponding display information to achieve the corresponding luminous effect, and the display image corresponding to the mapping operation is displayed in combination.
[0081] In this way, the target pixel values corresponding to each pixel area are processed into display information that can be processed and recognized by the display element through the private protocol corresponding to the passive display device, thereby completing the conversion of the format difference between the drawing board and the display element of the passive display device. This can ensure the display security of the passive display device, improve the controllability and editability of the electronic device over the passive display device, and improve the customization of the display content of the passive display device.
[0082] Furthermore, in response to the mapping operation triggered by the drawing board, before determining the target pixel value corresponding to each pixel area on the drawing board, the method further includes:
[0083] Receiving a picture to be displayed from the passive display device;
[0084] Obtaining target image data corresponding to each pixel area in the picture to be displayed;
[0085] Based on the target image data corresponding to each pixel region, a first mapping operation of the drawing board is triggered.
[0086] In this embodiment, the drawing board can load pictures in the album of the electronic device or pictures obtained by taking pictures, so that the pictures in the album or pictures obtained by taking pictures are displayed through the display element of the passive display device. In response to the user's image selection operation or image shooting operation, the picture to be displayed of the passive display device selected by the user is received. The picture to be displayed is composed of a number of image pixels, and each image pixel corresponds to image data. However, there may be differences between the resolution of the picture to be displayed and the resolution and size of the drawing board, so that the image pixels of the picture to be displayed cannot correspond one to one with the pixels of the drawing board. However, based on the position of each pixel area in the drawing board, the corresponding target position can be determined in the picture to be displayed, and the target image data corresponding to the pixel area can be determined according to the image data corresponding to the target position in the picture to be displayed, so as to realize the pixelization of the picture to be displayed.
[0087] Optionally, if the target position corresponds to an image data, the image data can be used as the target pixel data corresponding to the pixel area; if the target position corresponds to multiple image data, the multiple image data can be weighted by setting a weight value to obtain the target pixel data, or any image data can be used as the target pixel data corresponding to the pixel area, or multiple image data corresponding to the target position can be used as target pixel data; if the target position has no corresponding image data, the target image data can be obtained by interpolating the image data corresponding to adjacent pixels of the target position.
[0088] After determining the target image data corresponding to each pixel area, the first mapping operation of the drawing board can be triggered based on the target image data corresponding to each pixel area. The first mapping operation refers to a mapping operation triggered based on an existing image to be displayed. Triggering the first mapping operation of the drawing board includes adjusting the display parameters of the drawing board corresponding to the passive display device of the electronic device based on the target image data corresponding to each pixel area, so that the target image data corresponding to each pixel area is displayed in the drawing board area, that is, the first mapping operation is displayed on the drawing board.
[0089] In this way, the image to be displayed of the passive display device is pixelated based on each pixel area, triggering the first mapping operation of the drawing board. The image to be displayed can be displayed on the drawing board, realizing modeling of the passive display device through the existing image, and further improving the diversity and convenience of the display content of the customized passive display device.
[0090] Furthermore, before determining the target pixel value corresponding to each pixel area on the drawing board in response to the mapping operation triggered by the drawing board, the method further includes:
[0091] In response to the drawing operation received by the drawing board for the pixel area, determining a target pixel area selected by the drawing operation;
[0092] The target pixel area is assigned a value based on the preset image data, the image data corresponding to each pixel area on the drawing board is updated, and the mapping operation of the drawing board is triggered.
[0093] In this embodiment, the user can also trigger the second drawing operation of the drawing board by drawing on the drawing board. Figure 4 , the drawing board also provides drawing tools for users to perform drawing operations. Users can perform drawing operations on the drawing board by clicking, sliding, etc. The drawing operation is based on the pixel area of the drawing board. As the drawing operation proceeds, the target pixel area selected for the drawing operation will be updated. For example, when the user is drawing, the drawing trajectory will pass through some pixel areas, which are the target pixel areas selected for the drawing operation.
[0094] After determining the target pixel area, the target pixel area can be assigned a value based on the preset image data, that is, the pixel values corresponding to all the pixels in the target pixel area are adjusted to the pixel values of the preset image area. The preset image data can be the default image data of the drawing board or the custom image data set by the user. After the assignment, the image data corresponding to each pixel area on the drawing board is updated, and the target pixel area is displayed differently from the non-target pixel area, so that the target pixel area can display the pattern drawn by the user. Figure 4 A user-drawn pattern in , and Figure 5 The display effect of passive display devices.
[0095] After the target pixel area is assigned a value based on the preset image data, the image data corresponding to each pixel area on the drawing board is updated, which can trigger a mapping operation corresponding to the target display area. The mapping operation is triggered based on the user's drawing operation on the drawing board.
[0096] In some embodiments, in response to an update event of image data corresponding to each pixel area on the drawing board, the second mapping operation of the drawing board is triggered, and then the display image left on the drawing board is modulo-ed, and the passive display device is controlled through near-field communication to display the corresponding display image on the drawing board when the update event occurs. Whenever the user updates the target pixel area through a drawing operation and the display content of the drawing board changes, the corresponding display content on the current drawing board will also be displayed in real time on the passive display device, thereby reflecting the user's drawing effect in real time.
[0097] For example, in a scenario where the passive display device is an electronic device such as a smart protective case for a mobile phone and the display screen of the passive display device is not on the same plane, a user can draw on the electronic device and display it to others through the passive display device which is not on the same plane. Thus, the passive display device can be used as a portable projection board to provide a portable projection effect, which is very suitable for scenarios such as silent communication.
[0098] In some embodiments, the user can display the display content on the drawing board through the passive display device after the drawing is completed. Specifically, before triggering the drawing operation of the drawing board, determine whether the drawing operation is completed. If a drawing operation completion instruction is received, or the drawing board does not receive a new drawing operation within a preset time period, it is determined that the drawing operation is completed. When the drawing operation is further determined to be completed, the drawing operation of the drawing board is triggered, and then the display image left by the drawing operation on the drawing board is modulo, and the target pixel value corresponding to each pixel area on the drawing board is obtained. The passive display device is controlled through near-field communication to display the display image corresponding to the mapping operation triggered by the previous drawing operation when the drawing operation is completed. Thereby, the communication energy consumption of the passive display device can be saved, and the control of the electronic device over the display content of the passive display device can be strengthened. At the same time, the display content of the drawing board after the drawing is completed is displayed on the passive display device, which can improve the beautification effect of the passive display device and further improve the diversity and programmability of the display content of the passive display device.
[0099] Optionally, refer to Figure 2 Based on any of the above embodiments, in another embodiment of the control method of the passive display device of the present invention, the step S30 includes:
[0100] Step S31, taking a module of each pixel area of the drawing board according to the private protocol corresponding to the passive display device, and encapsulating to obtain a drawing board data packet;
[0101] In this embodiment, the private protocol is a communication protocol for communicating with a passive display device. According to the private protocol corresponding to the passive display device, each pixel area in the drawing board is modulo-ed. First, the target pixel value corresponding to each pixel area after color identification conversion is obtained, and the color identification is converted based on the corresponding display element type to obtain the display information corresponding to each pixel area. This is to enable the display element to perform color conversion to identify and illuminate it. Each pixel area is modulo-ed row by row to determine the display information corresponding to each row of pixel areas, thereby collecting the display information corresponding to each pixel area in an orderly manner, and finally encapsulated according to the private protocol corresponding to the passive display device to obtain a drawing board data packet. The drawing board data packet is a file package that can be processed and identified by the processing unit of the passive display device.
[0102] Step S32: convert the drawing board data packet into a near field communication message format, and send the drawing board data packet to the passive display device via the near field communication.
[0103] In this embodiment, the data packet of the drawing board is converted into a near field communication message format that can be transmitted by the near field communication module. The processing method may include compression, signal conversion, etc. The essence of the drawing board data packet after the near field communication message format conversion is still the drawing board data packet, but in terms of transmission format, the drawing board data packet is a message that meets the requirements of near field communication. Then, the electronic device can send the drawing board data packet that has been converted into the near field communication message format to the passive display device through near field communication, so that the passive display device can receive the drawing board data packet through near field communication, and because the private protocol is satisfied, the passive display device can process the drawing board data packet through the processing unit to display the display image corresponding to the mapping operation.
[0104] In the technical solution disclosed in this embodiment, through the private protocol corresponding to the passive display device, color conversion and data encapsulation of the target pixel values corresponding to each pixel area on the drawing board and conversion of the near-field communication format are implemented based on the type of the passive display device and its display element, so that the passive display device can receive and process the drawing board data packet through near-field communication, so that the display image corresponding to the mapping operation on the drawing board can be synchronously displayed on the passive display device, thereby realizing the change of the display content of the passive display device and improving the diversity of the display content of the passive display device.
[0105] Furthermore, according to the private protocol corresponding to the passive display device, each pixel area in the drawing board is modulo-ed, and encapsulated to obtain a drawing board data packet, including:
[0106] Acquire playback configuration information of a display image corresponding to the mapping operation, wherein the display image includes at least two image frames;
[0107] For each image frame, performing modulo operation on each pixel region of the drawing board according to the private protocol to obtain a target data field of the image frame;
[0108] According to the private protocol, the playback configuration information and the target data field of each image frame are encapsulated to obtain the drawing board data packet.
[0109] In this embodiment, the display image created by the mapping operation may include multiple image frames, which may be played in order on the drawing board or the passive display device, so that the display image displayed by the drawing board and the passive display device is a dynamic image. The user may configure the playback configuration information of the real image through the control application, and the configuration information may include the playback speed, the number of image frames, the number of playback times, etc.
[0110] When encapsulating and modulating the drawing board, it is necessary to perform a modulus operation on each image frame corresponding to the mapping operation. When the drawing board displays the image frame, the pixel regions on the drawing board are modulized according to the private protocol. At this time, the display information corresponding to each pixel region obtained by the modulo operation is obtained based on the pixel value of the corresponding pixel region when the image frame is displayed on the drawing board. For each image frame, the drawing board that is displaying the image frame is modulo operation to obtain the display information corresponding to each pixel region of the image frame. The display information corresponding to each pixel region of the image frame is preliminarily processed according to the private protocol to obtain the target data field, which includes the display information corresponding to each pixel region of the image frame.
[0111] According to the private protocol of the passive display device, the playback configuration information and the target data fields of each image frame are encapsulated in sequence to obtain a drawing board data packet. The drawing board data packet is sent to the passive display device. After receiving this set of data, the processing unit of the passive display device, such as MCU, will reset the original playback configuration information. When displaying these multiple image frames, it will process the target data fields in sequence according to the updated playback configuration information to control the display element to process the display information corresponding to the target data fields. Finally, on the passive display device, the image frames corresponding to the display image of the mapping operation are displayed in sequence according to the playback configuration information, achieving programmable animation effects and further improving the display content diversity of the passive display device.
[0112] It should be noted that the drawing operation can also create multiple image frames, which is called animation drawing. Users can draw multiple frames of images on the drawing board. Figure 6 , and then display the image drawn by the user on the passive display device according to the frame sequence and the playback configuration information, achieving the effect of the animation drawn by the user.
[0113] This embodiment also provides a control device for a passive display device, which can be integrated into an electronic device. Figure 7 As shown, the control device of the passive display device may include:
[0114] A communication power supply module 1001, used for establishing near field communication with the passive display device, and supplying power to the passive power supply circuit based on the near field communication, so as to operate the passive display device;
[0115] An acquisition module 1002 is used to acquire display element information of the passive display device, and create a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0116] The control module 1003 is used to control the passive display device to display a display image corresponding to the mapping operation in response to the mapping operation triggered by the drawing board through the near field communication.
[0117] Optionally, the control module 1003 is further configured to:
[0118] In response to a mapping operation triggered by the drawing board, determining a target pixel value corresponding to each pixel area on the drawing board;
[0119] According to the private protocol corresponding to the passive display device, convert the color identifier corresponding to each of the target pixel values to obtain the display information corresponding to each of the pixel areas;
[0120] The display information is sent to the passive display device through the near field communication, so that each display element of the passive display device processes the corresponding display information and displays a display image corresponding to the mapping operation.
[0121] Optionally, the control module 1003 is further configured to:
[0122] Receiving a picture to be displayed from the passive display device;
[0123] Obtaining target image data corresponding to each pixel area in the picture to be displayed;
[0124] Based on the target image data corresponding to each pixel area, a mapping operation of the drawing board is triggered.
[0125] Optionally, the control module 1003 is further configured to:
[0126] In response to the drawing operation received by the drawing board for the pixel area, determining a target pixel area selected by the drawing operation;
[0127] The target pixel area is assigned a value based on the preset image data, the image data corresponding to each pixel area on the drawing board is updated, and the mapping operation of the drawing board is triggered.
[0128] Optionally, the control module 1003 is further configured to:
[0129] According to the private protocol corresponding to the passive display device, each pixel area in the drawing board is modulo-ed, and encapsulated to obtain a drawing board data packet;
[0130] The drawing board data packet is converted into a near field communication message format, and the drawing board data packet is sent to the passive display device through the near field communication.
[0131] Optionally, the control module 1003 is further configured to:
[0132] Acquire playback configuration information of a display image corresponding to the mapping operation, wherein the display image includes at least two image frames;
[0133] For each image frame, performing modulo operation on each pixel region of the drawing board according to the private protocol to obtain a target data field of the image frame;
[0134] According to the private protocol, the playback configuration information and the target data field of each image frame are encapsulated to obtain the drawing board data packet.
[0135] Optionally, the acquisition module 1002 is further used to
[0136] Acquire arrangement information of the display elements in the display element information;
[0137] Determining a pixel size of a drawing board based on the arrangement information and the preset pixel area information;
[0138] The artboard is created according to the artboard pixel size.
[0139] In this way, the passive display device can obtain power from the electronic device and exchange data with it through near-field communication, obtain the display component information of the passive display device, create a drawing board for drawing with the display component information, and display the display image corresponding to the drawing operation triggered by the drawing board on the passive display device. The drawing operation can be customized on the drawing board, making the content displayed by the passive display device programmable, thereby increasing the diversity of the content displayed by the passive display device.
[0140] like Figure 8 As shown, Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 1100 includes a processor 1101 having one or more processing cores, a memory 1102 having one or more computer-readable storage media, and a computer program stored in the memory 1102 and executable on the processor. The processor 1101 is electrically connected to the memory 1102. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0141] The processor 1101 is the control center of the electronic device 1100, and uses various interfaces and lines to connect various parts of the entire electronic device 1100. By running or loading software programs and / or units stored in the memory 1102, and calling data stored in the memory 1102, the processor 1101 executes various functions of the electronic device 1100 and processes data, thereby monitoring the electronic device 1100 as a whole. The processor 1101 can be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention.
[0142] In the embodiment of the present invention, the processor 1101 in the electronic device 1100 loads instructions corresponding to the processes of one or more application programs into the memory 1102 according to the following steps, and the processor 1101 runs the application programs stored in the memory 1102, thereby realizing various functions, for example:
[0143] Establishing near field communication with the passive display device, and supplying power to the passive power circuit based on the near field communication, so as to operate the passive display device;
[0144] Acquire display element information of the passive display device, and create a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0145] In response to a mapping operation triggered by the drawing board, the passive display device is controlled through the near field communication to display a display image corresponding to the mapping operation.
[0146] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0147] Optional, such as Figure 8 As shown, the electronic device 1100 further includes: a touch screen 1103, a radio frequency circuit 1104, an audio circuit 1105, an input unit 1106, and a power supply 1107. The processor 1101 is electrically connected to the touch screen 1103, the radio frequency circuit 1104, the audio circuit 1105, the input unit 1106, and the power supply 1107, respectively. Those skilled in the art can understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0148] The touch display screen 1103 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 1103 may include a display screen and a touch panel. Among them, the display screen may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display screen may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 1101, and can receive the command sent by the processor 1101 and execute it. The touch panel can cover the display screen. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1101 to determine the type of touch event, and then the processor 1101 provides a corresponding visual output on the display screen according to the type of touch event. In an embodiment of the present invention, the touch panel and the display screen can be integrated into the touch display screen 1103 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 1103 can also be used as a part of the input unit 1106 to realize the input function.
[0149] The radio frequency circuit 1104 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0150] The audio circuit 1105 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 1105 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 1105 and converted into audio data, and then the audio data is output to the processor 1101 for processing, and then sent to another electronic device through the radio frequency circuit 1104, or the audio data is output to the memory 1102 for further processing. The audio circuit 1105 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0151] The input unit 1106 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0152] The power supply 1107 is used to supply power to various components of the electronic device 1100. Optionally, the power supply 1107 can be logically connected to the processor 1101 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 1107 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0153] although Figure 8 Not shown, the electronic device 1100 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0156] To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute any of the control methods of the passive display device provided in the embodiments of the present invention. The computer program can execute the following steps of the control method of the passive display device:
[0157] Establishing near field communication with the passive display device, and supplying power to the passive power circuit based on the near field communication, so as to operate the passive display device;
[0158] Acquire display element information of the passive display device, and create a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device;
[0159] In response to a mapping operation triggered by the drawing board, the passive display device is controlled through the near field communication to display a display image corresponding to the mapping operation.
[0160] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0161] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0162] Since the computer program stored in the computer-readable storage medium can execute any method for controlling a passive display device provided in the embodiments of the present invention, the beneficial effects that can be achieved by any method for controlling a passive display device provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0163] In the above-mentioned passive display device control device, computer-readable storage medium, electronic device, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described passive display device control device, computer-readable storage medium, computer program product, electronic device and its corresponding units can refer to the description of the control method of the passive display device in the above embodiment, and will not be repeated here.
[0164] The above is a detailed introduction to a control method for a passive display device, a control device for a passive display device, an electronic device, a computer-readable storage medium and a computer program product provided by an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A control method for a passive display device, characterized in that: The passive display device comprises a passive power supply circuit and at least two display elements, and the control method of the passive display device comprises: Establishing near field communication with the passive display device, and supplying power to the passive power circuit based on the near field communication, so as to operate the passive display device; Acquire display element information of the passive display device, and create a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device; In response to a mapping operation triggered by the drawing board, the passive display device is controlled through the near field communication to display a display image corresponding to the mapping operation.
2. The control method of a passive display device according to claim 1, characterized in that: In response to the mapping operation triggered by the drawing board, controlling the passive display device to display a display image corresponding to the mapping operation through the near field communication includes: In response to a mapping operation triggered by the drawing board, determining a target pixel value corresponding to each pixel area on the drawing board; According to the private protocol corresponding to the passive display device, convert the color identifier corresponding to each of the target pixel values to obtain the display information corresponding to each of the pixel areas; The display information is sent to the passive display device through the near field communication, so that each display element of the passive display device processes the corresponding display information and displays a display image corresponding to the mapping operation.
3. The control method of a passive display device according to claim 2, characterized in that: Before the mapping operation triggered by the drawing board is determined, in response to the drawing board, the target pixel value corresponding to each pixel area on the drawing board may also be included: Receiving a picture to be displayed from the passive display device; Obtaining target image data corresponding to each pixel area in the picture to be displayed; Based on the target image data corresponding to each pixel area, a mapping operation of the drawing board is triggered.
4. The control method of a passive display device according to claim 2, characterized in that: Before the mapping operation triggered by the drawing board is determined, in response to the drawing board, the target pixel value corresponding to each pixel area on the drawing board may also be included: In response to the drawing operation received by the drawing board for the pixel area, determining a target pixel area selected by the drawing operation; The target pixel area is assigned a value based on the preset image data, the image data corresponding to each pixel area on the drawing board is updated, and the mapping operation of the drawing board is triggered.
5. The control method of a passive display device according to claim 1, characterized in that: The controlling the passive display device to display the display image corresponding to the mapping operation through the near field communication includes: According to the private protocol corresponding to the passive display device, each pixel area in the drawing board is modulo-ed, and encapsulated to obtain a drawing board data packet; The drawing board data packet is converted into a near field communication message format, and the drawing board data packet is sent to the passive display device through the near field communication.
6. The control method of a passive display device according to claim 5, characterized in that: The method of performing module extraction on each pixel region in the drawing board according to the private protocol corresponding to the passive display device and encapsulating the drawing board data packet includes: Acquire playback configuration information of a display image corresponding to the mapping operation, wherein the display image includes at least two image frames; For each image frame, performing modulo operation on each pixel region of the drawing board according to the private protocol to obtain a target data field of the image frame; According to the private protocol, the playback configuration information and the target data field of each image frame are encapsulated to obtain the drawing board data packet.
7. The control method of a passive display device according to claim 1, characterized in that: The obtaining of display element information of the passive display device and creating a drawing board according to the display element information includes: Acquire arrangement information of the display elements in the display element information; Determining a pixel size of a drawing board based on the arrangement information and the preset pixel area information; The artboard is created according to the artboard pixel size.
8. A control device for a passive display device, characterized in that: The passive display device comprises a passive power supply circuit and at least two display elements, and the control device of the passive display device comprises: A communication power supply module, used for establishing near field communication with the passive display device, and supplying power to the passive power supply circuit based on the near field communication, so as to operate the passive display device; An acquisition module, used for acquiring display element information of the passive display device, and creating a drawing board according to the display element information, wherein each pixel area of the drawing board matches each display element of the passive display device; The control module is used to control the passive display device to display a display image corresponding to the mapping operation through the near field communication in response to the mapping operation triggered by the drawing board.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the control method of the passive display device according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of the control method of the passive display device according to any one of claims 1 to 7.
