WO2022068431A1 - 物联网终端及其图片更新方法 - Google Patents

物联网终端及其图片更新方法 Download PDF

Info

Publication number
WO2022068431A1
WO2022068431A1 PCT/CN2021/112659 CN2021112659W WO2022068431A1 WO 2022068431 A1 WO2022068431 A1 WO 2022068431A1 CN 2021112659 W CN2021112659 W CN 2021112659W WO 2022068431 A1 WO2022068431 A1 WO 2022068431A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
picture
dimensional matrix
micro
display
Prior art date
Application number
PCT/CN2021/112659
Other languages
English (en)
French (fr)
Inventor
张莹
Original Assignee
京东方科技集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to US18/044,951 priority Critical patent/US20230351976A1/en
Publication of WO2022068431A1 publication Critical patent/WO2022068431A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3433Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices
    • G09G3/344Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices based on particles moving in a fluid or in a gas, e.g. electrophoretic devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/2092Details of a display terminals using a flat panel, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G3/2096Details of the interface to the display terminal specific for a flat panel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2370/00Aspects of data communication
    • G09G2370/02Networking aspects
    • G09G2370/022Centralised management of display operation, e.g. in a server instead of locally

Definitions

  • the present disclosure relates to the field of display technology, and in particular, to an Internet of Things terminal and a method for updating pictures thereof.
  • EPD Electrode Display Technology
  • MCU Micro Control Unit
  • the technical problem to be solved by the present disclosure is to provide an Internet of Things terminal and a picture updating method thereof, which can complete the processing of pictures.
  • an IoT terminal including:
  • a communication unit for receiving text and image information
  • a micro-control unit connected with the communication unit, for converting the text and image information into a picture to be displayed;
  • a storage unit connected to the micro-control unit for storing the picture to be displayed
  • a display unit connected to the micro-control unit
  • the micro-control unit is further configured to read the picture to be displayed from the storage unit and write it into the display unit for display.
  • the text and image information includes base map information and text information of at least one color
  • the communication unit is specifically configured to respectively receive at least one of base map information and text information of at least one color;
  • the micro-control unit is specifically used to convert the text information of the received at least one color into at least one monochrome picture correspondingly, and is also used to convert the received base map information into a base map;
  • the storage unit is specifically configured to store the base image and the at least one monochrome picture, and the storage areas corresponding to the base image and the at least one monochrome image in the storage unit are independent of each other, wherein the Storage areas corresponding to different monochrome pictures in at least one monochrome picture are independent of each other;
  • the micro-control unit is also specifically configured to read the base image and the at least one monochrome picture from the corresponding storage area in the storage unit, and synthesize them into the to-be-displayed picture and write to the display unit to display.
  • it also includes a font unit connected to the micro-control unit, the font unit stores a first display array corresponding to the character, and the font unit is used for receiving the character input by the micro-control unit, and outputting the character. the first display array corresponding to the character.
  • the micro-control unit further includes a RAM, and the micro-control unit is specifically used for:
  • the text information received by the communication unit is stored in the RAM, and all characters in the text information of the at least one color are processed one by one To convert a monochrome picture of any color to obtain the text information of the at least one color:
  • For each character obtain a first display array corresponding to the character through the character library unit, convert the first display array into a two-dimensional matrix with m rows and n columns, and convert the two-dimensional matrix according to each row or Each column is sequentially written into the storage area of the corresponding color in the storage unit;
  • the elements of the two-dimensional matrix are binary, and the last column is 0 when each row is written or the last row is 0 when each column is written, and the start element of the two-dimensional matrix corresponds to the pixel edge of the display unit.
  • the order of writing in the scanning direction of the display unit is q times 8, the n and m are positive integers, and q is a natural number.
  • the micro-control unit is further specifically configured to convert the display array corresponding to the character into an initial two-dimensional matrix with m rows and n columns, and the elements of the initial two-dimensional matrix are binary.
  • the row coordinate k of the pixel of the display unit corresponding to the initial element of the dimensional matrix is not an integer multiple of 8, and the positions of the pixels of the display unit corresponding to all elements of the initial two-dimensional matrix are moved to the right by n1 as a whole pixel, and fill n1 columns with all 0 elements before the initial two-dimensional matrix, and fill in (8-n1) columns with all 0 elements after the initial two-dimensional matrix to obtain the final two-dimensional matrix, n1 is The remainder of k to 8.
  • the micro-control unit is further configured to read the two-dimensional matrix corresponding to M pixels according to each row or each column from the storage areas corresponding to different monochrome pictures in the at least one monochrome picture. element and written into the M pixels of the display unit, where M is a positive integer.
  • the micro-control unit and the communication unit are connected through a serial peripheral interface; and/or
  • micro-control unit and the storage unit are connected through a serial peripheral interface; and/or
  • micro-control unit and the display unit are connected through a serial peripheral interface; and/or
  • the micro-control unit and the font unit are connected through a serial peripheral interface.
  • the storage unit uses flash memory.
  • the display unit is an electronic ink screen.
  • the embodiments of the present disclosure also provide a picture updating method for an Internet of Things terminal, which is applied to the above-mentioned Internet of Things terminal, and the picture updating method includes:
  • micro-control unit uses the micro-control unit to convert the text and image information received by the communication unit into a picture to be displayed;
  • micro-control unit Utilize the micro-control unit to write the picture to be displayed stored in the storage unit into the display unit for display;
  • the picture written by the micro-control unit is displayed by the display unit.
  • the text and image information includes base map information and text information of at least one color
  • the method specifically includes:
  • micro-control unit to respectively convert the received text information of the at least one color into at least one monochrome picture, and convert the received base image information into a base image
  • the base image and the at least one monochrome picture are stored in the storage unit, and the corresponding storage areas of the base image and the at least one monochrome image in the storage unit are independent of each other, wherein the at least one The storage areas corresponding to different monochrome images in a monochrome image are independent of each other;
  • the base image and the at least one monochrome picture are respectively read from the corresponding storage area in the storage unit by the micro-control unit, and combined into the to-be-displayed picture and written into the display unit for display.
  • the micro-control unit is used to store the text information received by the communication unit in the RAM, and the text information of the at least one color is stored in the RAM. All characters in any one of the information are processed one by one to convert to obtain a monochrome picture of any one color of the text information of the at least one color:
  • For each character obtain a first display array corresponding to the character through the character library unit, convert the first display array into a two-dimensional matrix with m rows and n columns, and convert the two-dimensional matrix according to each row or Each column is sequentially written into the storage area of the corresponding color in the storage unit;
  • the elements of the two-dimensional matrix are binary, and the last column is 0 when each row is written or the last row is 0 when each column is written, and the start element of the two-dimensional matrix corresponds to the pixel edge of the display unit.
  • the order of writing in the scanning direction of the display unit is q times 8, the n and m are positive integers, and q is a natural number.
  • the method specifically includes:
  • the elements of the initial two-dimensional matrix are binary. If the initial elements of the initial two-dimensional matrix correspond to The row coordinate k of the pixels of the display unit is not an integer multiple of 8, and the positions of the pixels of the display unit corresponding to all elements of the initial two-dimensional matrix are moved to the right by n1 pixels as a whole, and the initial two The front of the dimensional matrix is filled with all 0 elements in n1 column, and the (8-n1) column with all 0 elements is filled after the initial two-dimensional matrix to obtain the final two-dimensional matrix, where n1 is the remainder of k to 8.
  • the method specifically includes:
  • micro-control unit Utilize the micro-control unit to read the two-dimensional matrix elements corresponding to M pixels in each row or each column from the storage areas corresponding to different monochromatic pictures in the at least one monochromatic picture, and write them into the display
  • M pixels of the unit where M is a positive integer.
  • the micro-control unit converts the text and image information received by the communication unit into a picture to be displayed and stores it in a storage unit outside the micro-control unit, and then the micro-control unit writes the picture to be displayed stored in the storage unit into the display unit. to display.
  • the picture is stored in a storage unit outside the micro-control unit, so that the picture does not need to occupy the resources of the micro-control unit, so that the micro-control unit can complete the picture processing with very small resources.
  • FIG. 1 is a schematic structural diagram of an IoT terminal according to an embodiment of the present disclosure
  • Fig. 2 is the display schematic diagram of the bedside card
  • FIG. 3 is a schematic diagram of superimposing pictures according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of a method for updating a picture of an IoT terminal according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of right-shifting a two-dimensional matrix according to an embodiment of the present disclosure.
  • Near-field wireless communication is mostly used between the IoT terminal and the gateway.
  • the gateway sends the information reported by the IoT terminal to the server through the wired network or mobile network, and the server sends the information to the IoT terminal. displayed on the .
  • a specific application of the Internet of Things terminal can be a hospital bedside card, which is located beside the hospital bed and used to display patient information; another specific application of the Internet of Things terminal can be a badge terminal, used to display doctor information; Internet of things terminal Another specific application can also be a ward door number, etc., used to display the corresponding information in the ward.
  • the information displayed by the IoT terminal is sent to the IoT terminal through the server-gateway.
  • IoT terminals are low-power devices and usually use MCU as the controller.
  • the MCU consumes very low power, but has limited processing capacity and limited internal resources, and cannot complete image processing.
  • the picture resolution of the bedside card is 800 ⁇ 480, and the file size is about 96K bytes, but the storage space of the RAM (random access memory) of the MCU is only 20K bytes, which cannot be processed at all.
  • the embodiments of the present disclosure provide an Internet of Things terminal and a picture updating method thereof, which can complete the processing of pictures.
  • An embodiment of the present disclosure provides an IoT terminal, as shown in FIG. 1 , including:
  • the communication unit 11 is used to communicate with the outside world and receive text and image information.
  • the communication unit 11 can receive text and image information through radio frequency, Bluetooth and other wireless methods, and can also receive text and image information through wired means;
  • the micro-control unit 12 connected with the communication unit 11 is used to convert the text and image information into a picture to be displayed;
  • the storage unit 13 connected with the micro-control unit 12 is used to store the picture to be displayed;
  • a display unit 14 connected to the micro-control unit;
  • the micro-control unit 12 is further configured to read the picture to be displayed from the storage unit 13 and write it into the display unit 14 for display.
  • the micro-control unit 12 converts the text and image information received by the communication unit 11 into pictures to be displayed, and stores them in the storage unit 13 outside the micro-control unit 12 .
  • the displayed picture is written into the display unit 14 for display.
  • the picture is stored by the storage unit 13 outside the micro-control unit 12, so that the picture does not need to occupy the resources of the micro-control unit 12, so that the micro-control unit 12 can complete the picture processing with small resources.
  • the communication unit 11 is a radio frequency chip, which can communicate with the gateway wirelessly, interact with the server through the gateway, and receive text and image information.
  • the gateway can perform near-field wireless communication, has a wireless network or a wired network, and can connect to the server.
  • the storage unit 13 is used for information storage and information caching in the process of text and image information processing.
  • the storage unit 13 can use various types of storage devices.
  • the storage unit 13 can use flash memory.
  • the stored information can be maintained for a long time when the power is turned on.
  • Flash is an EEPROM (Electrically Erasable Programmable Read-Only Memory) type, which has a high access speed, is easy to erase and rewrite, and consumes little power, making it suitable for IoT terminals with low power consumption requirements.
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • the storage unit 13 is not limited to using Flash, and other types of erasable and programmable storage devices may also be used.
  • the display unit 14 is an electronic ink screen.
  • the power consumption of the e-ink screen is very low, which is suitable for IoT terminals with low power consumption requirements.
  • the display unit 14 is not limited to using an electronic ink screen, and other types of low power consumption display devices may also be used.
  • Near-field wireless communication is mostly used between IoT terminals and gateways.
  • near-field wireless communication uses a lower frequency to expand the range of action, and the communication speed is slow, so the information sent by the server-gateway is mostly text.
  • the MCU in the IoT terminal synthesizes the base map information and the text information, and displays it on the display unit 14 . Therefore, as shown in FIG. 1, the Internet of Things terminal also includes a font unit 15 for storing the first display array corresponding to the text information, and the font unit 15 can read the first display array of the corresponding information through the ASCII code and GB2312 code of the character or text.
  • a display array the first display array is used to indicate how many pixels of the display unit need to display characters or characters, and whether these pixels are lit when characters or characters are displayed. Among them, when characters or characters are displayed, they are combined by a lot of clicks in a certain way, and the font unit can translate different characters or characters into dot matrix form, that is, the first display module.
  • the micro-control unit 12 and the communication unit 11 can be connected through a serial peripheral interface; the micro-control unit 12 and the storage unit 13 can be connected through a serial peripheral interface ( Serial Peripheral Interface, SPI) connection; the micro-control unit 12 and the display unit 14 can be connected through a serial peripheral interface; the micro-control unit 12 and the font unit 15 can be connected through a serial peripheral interface
  • SPI Serial Peripheral Interface
  • the serial peripheral interface is a synchronous peripheral interface, which enables the microcontroller 12 to communicate with various peripheral devices in a serial manner to exchange information.
  • the text and image information includes base map information and text information in at least one color
  • the base map information represents a basic picture
  • graphics and text in different colors can be displayed. Different colors of text and graphics can be displayed in different positions of the base map to realize the display of information.
  • the basemap information is usually fixed, and the probability of change is very small.
  • the image can be updated by updating the text information on the basemap later.
  • the text information of at least one color is text information that needs to be updated later, and the text information may include text and graphics.
  • the communication unit 11 is specifically configured to respectively receive at least one of the base map information and the text information of at least one color; wherein, the respective receiving may or may not have a sequential order;
  • the micro-control unit 12 is specifically used to convert the text information of the received at least one color into at least one monochrome picture correspondingly, and is also used to convert the received base map information into a base map;
  • the storage unit 13 is specifically configured to store the base image and the at least one monochrome picture, and the corresponding storage areas of the base image and the at least one monochrome image in the storage unit are independent of each other, wherein the The storage areas corresponding to different monochrome pictures in the at least one monochrome picture are independent of each other;
  • the micro-control unit 12 is also specifically configured to read the base image and the at least one monochrome image from the corresponding storage area in the storage unit, and synthesize the image to be displayed and write it into the display. The unit is displayed, so that the effect of text overlay on the picture can be achieved.
  • the micro-control unit 12 further includes a RAM, and the micro-control unit 12 is specifically used for:
  • the text information received by the communication unit is stored in the RAM, and all characters in the text information of the at least one color are processed one by one To convert a monochrome picture of any color to obtain the text information of the at least one color:
  • For each character obtain a first display array corresponding to the character through the character library unit, convert the first display array into a two-dimensional matrix with m rows and n columns, and convert the two-dimensional matrix according to each row or Each column is sequentially written into the storage area of the corresponding color in the storage unit;
  • the elements of the two-dimensional matrix are binary, and the last column is 0 when each row is written or the last row is 0 when each column is written, and the start element of the two-dimensional matrix corresponds to the pixel edge of the display unit.
  • the order of writing in the scanning direction of the display unit is q times 8, the n and m are positive integers, and q is a natural number.
  • the micro-control unit 12 is also specifically configured to convert the display array corresponding to the character into an initial two-dimensional matrix with m rows and n columns, and the elements of the initial two-dimensional matrix are binary. If the row coordinate k of the pixel of the display unit corresponding to the initial element is not an integer multiple of 8, move the position of the pixel of the display unit corresponding to all elements of the initial two-dimensional matrix by n1 pixels to the right as a whole, The initial two-dimensional matrix is filled with all 0 elements in the n1 column, and the (8-n1) column is filled with all zero elements after the initial two-dimensional matrix to obtain the final two-dimensional matrix, where n1 is k to 8 remainder.
  • the micro-control unit 12 is further configured to read the two-dimensional data corresponding to M pixels according to each row or each column from the storage area corresponding to different monochrome pictures in the at least one monochrome picture. matrix elements and written to the M pixels of the display unit, where M is a positive integer.
  • the M pixels may be all the pixels of the display unit 14 , or may be part of the pixels of the display unit 14 .
  • the storage unit 13 uses Flash
  • the IoT terminal is a bedside card as shown in FIG. 2 .
  • the bedside card is divided into several areas, namely the area with black characters on a white background and a red background area.
  • White area black area on white and red area on white.
  • the characteristic of Flash is that once written, it cannot be erased, and when erasing, the entire block must be erased. Therefore, in this embodiment, the color separation processing method is adopted, and the text and image information of the bedside card is divided into base map information and three-color text information, wherein the base map information includes a white background area and a red background area.
  • the information is black letter information, white letter information and red letter information respectively.
  • Flash is divided into four storage areas, which are respectively used to store base map information, black letter information, white letter information and red letter information.
  • the bedside card can interact with the gateway and the server through the communication unit 11, and receive the information issued by the server and the gateway.
  • the information issued by the server and the gateway to the bedside card is divided into base map information and text information, which are issued by the server and the gateway.
  • the bedside card enters the basemap receiving mode, and directly stores the basemap information as a basemap image in the storage area corresponding to the Flash. It mainly receives text messages.
  • the bedside card enters the text information receiving mode, converts the text information into a monochrome image to be displayed, and stores the converted monochrome image in the corresponding storage area of the Flash.
  • the bedside card after the bedside card receives the black letter information, it can convert the black letter information into a black picture and store it in the corresponding storage area of Flash; after the bedside card receives the red letter information, it can convert the red letter information into a red picture for storage. In the storage area corresponding to the Flash; after receiving the white text information, the bedside card can convert the white text information into a white picture and store it in the storage area corresponding to the Flash.
  • the basemap image includes three different colors: black, white and red, so every two bits in the basemap information represent a color, for example, 00 means black, 01 means white, and 10 means red.
  • black pictures and red pictures only one color is included, so one bit can be used to represent one pixel, indicating whether the corresponding pixel displays this color. For example, for a white picture, when the bit corresponding to the pixel is 1, it means that the corresponding pixel displays white, and when the bit corresponding to the pixel is 0, it means that the corresponding pixel does not display white; for black pictures, when the bit corresponding to the pixel is 1, it means that the corresponding pixel is displayed.
  • bit corresponding to the pixel When the bit corresponding to the pixel is 0, it means that the corresponding pixel does not display black; for red pictures, when the bit corresponding to the pixel is 1, it means that the corresponding pixel displays red, and when the bit corresponding to the pixel is 0, it means that the corresponding pixel is displayed in red. pixels do not display red.
  • the bedside card When the bedside card receives text information, first erase the Flash in the corresponding area, then convert the GB2312 code of the text information into a two-dimensional matrix through the font library unit 15, and then fine-tune the two-dimensional matrix according to the typesetting of the base map to achieve Adjust by bit, and then write the adjusted two-dimensional matrix into the storage area of the corresponding color row by row, so that the text information of different colors is written into the storage area of the corresponding color respectively.
  • the MCU stores the received black text information in the RAM, firstly processes the first character, and uses the GB2312 code or ASCII code of the character to obtain the data through the interface with the font unit 15.
  • the first display array of the character convert the first display array into a two-dimensional matrix, and the elements of the two-dimensional matrix are binary.
  • the first display array is:
  • the elements of the first display array are in hexadecimal.
  • the transformed initial 2D matrix is:
  • the elements in the initial two-dimensional matrix are binary, and one bit corresponds to one pixel of the display unit.
  • the number of elements in each row or column should be is a multiple of 8. If the number of elements in each row or column is not a multiple of 8, the first display array needs to be expanded, such as an initial two-dimensional matrix with m rows and n columns. If the row coordinate k of the pixel of the display unit corresponding to the starting element of the two-dimensional matrix is not an integer multiple of 8, then the initial two-dimensional matrix element is shifted to the right according to n bits to form a new two-dimensional matrix.
  • a first display array is:
  • 0X is hexadecimal
  • the first display array is 6 rows and 2 columns, which can be used to display the character "1".
  • Each of these bits corresponds to one pixel of the display unit.
  • the element "0" in the first row and first column of the initial two-dimensional matrix is the starting element of the initial two-dimensional matrix.
  • the typesetting information when displaying, if the abscissa of the pixel corresponding to the starting element is an integer multiple of 8 , then when writing to the storage area or display unit, you can directly write the hexadecimal display array row by row. For example, if the coordinates of the pixel corresponding to the start element in the display unit are (8, 1), when writing to the storage area or display unit, the hexadecimal display array can be directly written in rows. The coordinates of the starting pixel of the display unit are (0,0).
  • the display array shown in the right half of Figure 5 can be directly The display array is written row by row.
  • the processing of the red text information and the white text information is similar to the processing of the black text information, and details are not described herein again.
  • a base image, a black image, a red image and a white image are stored in the four storage areas of the Flash respectively.
  • a base image, a black image, a red image and a white image can be written to the EPD in sequence, and the images can be superimposed to complete the final image display; it can also be synthesized according to the color rules of the EPD.
  • each bit in the EPD represents two different colors of a pixel. Therefore, the base image, black and white image, and red and white image can be written to the EPD in turn, and the images can be superimposed to complete the final image display.
  • read 16 bytes from the base image representing 64 pixels
  • read 8 bytes from the black image and the white image representing 64 pixels
  • construct a new array of size 8 Byte used for writing the EPD black and white image, first write the information of the black and white pixels in the 16 bytes and 64 pixels of the base image into the newly constructed array, and then write the 8 in the black image and the white image in the two images.
  • 64 pixels of each byte are written into the newly constructed array, the data written later will overwrite the newly written data, and then the newly constructed array is written into the EPD, and this process is repeated until all the pixels are written. Enter, complete the writing of the base map and the black and white map.
  • an embodiment of the present disclosure provides a method for updating a picture of an Internet of Things terminal, which is applied to the above-mentioned Internet of Things terminal.
  • the picture updating method includes:
  • Step 101 use the communication unit 11 to receive text and image information
  • Step 102 using the micro-control unit 12 to convert the text and image information received by the communication unit 11 into a picture to be displayed;
  • Step 103 use the storage unit 13 to store the picture to be displayed;
  • Step 104 use the micro-control unit 12 to write the picture to be displayed stored in the storage unit 13 into the display unit 14 for display;
  • Step 105 use the display unit 14 to display the picture written by the micro-control unit 12 .
  • the micro-control unit 12 converts the text and image information received by the communication unit 11 into pictures to be displayed, and stores them in the storage unit 13 outside the micro-control unit 12 .
  • the displayed picture is written into the display unit 14 for display.
  • the picture is stored by the storage unit 13 outside the micro-control unit 12, so that the picture does not need to occupy the resources of the micro-control unit 12, so that the micro-control unit 12 can complete the picture processing with small resources.
  • the communication unit 11 is a radio frequency chip, which can communicate with the gateway wirelessly, interact with the server through the gateway, and receive text and image information.
  • the gateway can perform near-field wireless communication, has a wireless network or a wired network, and can connect to the server.
  • the storage unit 13 is used for information storage and information caching in the process of text and image information processing.
  • the storage unit 13 can use various types of storage devices.
  • the storage unit 13 can use flash memory.
  • the stored information can be maintained for a long time when the power is turned on.
  • Flash is an EEPROM (Electrically Erasable Programmable Read-Only Memory) type, which has a high access speed, is easy to erase and rewrite, and consumes little power, making it suitable for IoT terminals with low power consumption requirements.
  • EEPROM Electrical Erasable Programmable Read-Only Memory
  • the storage unit 13 is not limited to using Flash, and other types of erasable and programmable storage devices can also be used.
  • the display unit 14 is an electronic ink screen.
  • the power consumption of the e-ink screen is very low, and it is suitable for IoT terminals with low power consumption requirements.
  • the display unit 14 is not limited to using an electronic ink screen, and other types of low power consumption display devices may also be used.
  • Near-field wireless communication is mostly used between IoT terminals and gateways.
  • near-field wireless communication uses a lower frequency to expand the range of action, and the communication speed is slow, so the information sent by the server-gateway is mostly text.
  • the MCU in the IoT terminal synthesizes the base map information and the text information, and displays it on the display unit 14 . Therefore, as shown in FIG.
  • the Internet of Things terminal also includes a font unit 15 for storing the first display array corresponding to the text information, and the font unit 15 can read the display of the corresponding information through the ASCII code and the GB2312 code of the character or text Array, the first display array is used to indicate how many pixels of the display unit need to display characters or characters, and whether these pixels are lit when characters or characters are displayed. Among them, when characters or characters are displayed, they are combined by a lot of clicks in a certain way, and the font unit can translate different characters or characters into dot matrix form, that is, the first display module.
  • the micro-control unit 12 and the communication unit 11 can be connected through a serial peripheral interface; the micro-control unit 12 and the storage unit 13 can be connected through a serial peripheral interface ( Serial Peripheral Interface, SPI) connection; the micro-control unit 12 and the display unit 14 can be connected through a serial peripheral interface; the micro-control unit 12 and the font unit 15 can be connected through a serial peripheral interface
  • SPI Serial Peripheral Interface
  • the serial peripheral interface is a synchronous peripheral interface, which enables the microcontroller 12 to communicate with various peripheral devices in a serial manner to exchange information.
  • the text and image information includes base map information and text information in at least one color
  • the base map information represents a basic picture
  • graphics and text in different colors can be displayed. Different colors of text and graphics can be displayed in different positions of the base map to realize the display of information.
  • the basemap information is usually fixed, and the probability of change is very small.
  • the image can be updated by updating the text information on the basemap later.
  • the text information of at least one color is text information that needs to be updated later, and the text information may include text and graphics.
  • the method specifically includes:
  • micro-control unit to respectively convert the received text information of the at least one color into at least one monochrome picture, and convert the received base image information into a base image
  • the base image and the at least one monochrome picture are stored in the storage unit, and the storage areas corresponding to the base image and the at least one monochrome image in the storage unit are independent of each other, wherein the at least one The storage areas corresponding to different monochrome images in a monochrome image are independent of each other;
  • the base image and the at least one monochrome picture are respectively read from the corresponding storage area in the storage unit by the micro-control unit, and combined into the to-be-displayed picture and written into the display unit for display.
  • the micro-control unit is used to store the text information received by the communication unit in the RAM, and the text information of the at least one color is stored in the RAM. All characters in any one of the information are processed one by one to convert to obtain a monochrome picture of any one color of the text information of the at least one color:
  • For each character obtain a first display array corresponding to the character through the character library unit, convert the first display array into a two-dimensional matrix with m rows and n columns, and convert the two-dimensional matrix according to each row or Each column is sequentially written into the storage area of the corresponding color in the storage unit;
  • the elements of the two-dimensional matrix are binary, and the last column is 0 when each row is written or the last row is 0 when each column is written, and the start element of the two-dimensional matrix corresponds to the pixel edge of the display unit.
  • the order of writing in the scanning direction of the display unit is q times 8, the n and m are positive integers, and q is a natural number.
  • the method specifically includes:
  • the elements of the initial two-dimensional matrix are binary. If the initial elements of the initial two-dimensional matrix correspond to The row coordinate k of the pixels of the display unit is not an integer multiple of 8, and the positions of the pixels of the display unit corresponding to all elements of the initial two-dimensional matrix are moved to the right by n1 pixels as a whole, and the initial two The front of the dimensional matrix is filled with all 0 elements in n1 column, and the (8-n1) column with all 0 elements is filled after the initial two-dimensional matrix to obtain the final two-dimensional matrix, where n1 is the remainder of k to 8.
  • the method specifically includes:
  • micro-control unit Utilize the micro-control unit to read the two-dimensional matrix elements corresponding to M pixels in each row or each column from the storage areas corresponding to different monochromatic pictures in the at least one monochromatic picture, and write them into the display
  • M pixels of the unit where M is a positive integer.
  • the storage unit 13 uses Flash
  • the IoT terminal is a bedside card as shown in FIG. 2 .
  • the bedside card is divided into several areas, namely the area with black characters on a white background and a red background area.
  • White area black area on white and red area on white.
  • the characteristic of Flash is that once written, it cannot be erased, and when erasing, the entire block must be erased. Therefore, in this embodiment, the color separation processing method is adopted, and the text and image information of the bedside card is divided into base map information and three-color text information, wherein the base map information includes a white background area and a red background area.
  • the information is black letter information, white letter information and red letter information respectively.
  • the Flash is divided into four storage areas, which are respectively used to store base map information, black letter information, white letter information and red letter information.
  • the bedside card can interact with the gateway and the server through the communication unit 11, and receive the information issued by the server and the gateway.
  • the information issued by the server and the gateway to the bedside card is divided into base map information and text information, which are issued by the server and the gateway.
  • the bedside card enters the basemap receiving mode, and directly stores the basemap information as a basemap image in the storage area corresponding to the Flash. It mainly receives text messages.
  • the bedside card enters the text information receiving mode, converts the text information into a monochrome image to be displayed, and stores the converted monochrome image in the corresponding storage area of the Flash.
  • the bedside card after the bedside card receives the black letter information, it can convert the black letter information into a black picture and store it in the corresponding storage area of Flash; after the bedside card receives the red letter information, it can convert the red letter information into a red picture for storage. In the storage area corresponding to the Flash; after receiving the white text information, the bedside card can convert the white text information into a white picture and store it in the storage area corresponding to the Flash.
  • the basemap image includes three different colors: black, white and red, so every two bits in the basemap information represent a color, for example, 00 means black, 01 means white, and 10 means red.
  • black pictures and red pictures only one color is included, so one pixel can be represented by one bit, indicating whether the corresponding pixel displays this color. For example, for a white picture, when the bit corresponding to the pixel is 1, it means that the corresponding pixel displays white, and when the bit corresponding to the pixel is 0, it means that the corresponding pixel does not display white; for black pictures, when the bit corresponding to the pixel is 1, it means that the corresponding pixel is displayed.
  • bit corresponding to the pixel When the bit corresponding to the pixel is 0, it means that the corresponding pixel does not display black; for red pictures, when the bit corresponding to the pixel is 1, it means that the corresponding pixel displays red, and when the bit corresponding to the pixel is 0, it means that the corresponding pixel is displayed in red. pixels do not display red.
  • the bedside card When the bedside card receives text information, first erase the Flash in the corresponding area, then convert the GB2312 code of the text information into a two-dimensional matrix through the font library unit 15, and then fine-tune the two-dimensional matrix according to the typesetting of the base map to achieve Adjust by bit, and then write the adjusted two-dimensional matrix into the storage area of the corresponding color row by row, so that the text information of different colors is written into the storage area of the corresponding color respectively.
  • the MCU stores the received black text information in the RAM, firstly processes the first character, and uses the GB2312 code or ASCII code of the character to obtain the data through the interface with the font unit 15.
  • the first display array of the character convert the first display array into a two-dimensional matrix, and the elements of the two-dimensional matrix are binary.
  • the first display array is:
  • the elements of the first display array are in hexadecimal.
  • the transformed initial 2D matrix is:
  • the elements in the initial two-dimensional matrix are binary, and one bit corresponds to one pixel of the display unit.
  • the number of elements in each row or column should be is a multiple of 8. If the number of elements in each row or column is not a multiple of 8, the first display array needs to be expanded, such as an initial two-dimensional matrix with m rows and n columns. If the row coordinate k of the pixel of the display unit corresponding to the starting element of the two-dimensional matrix is not an integer multiple of 8, then the initial two-dimensional matrix element is shifted to the right according to n bits to form a new two-dimensional matrix.
  • a first display array is:
  • 0X is hexadecimal
  • the first display array is 6 rows and 2 columns, which can be used to display the character "1".
  • Each of these bits corresponds to one pixel of the display unit.
  • the element "0" in the first row and first column of the initial two-dimensional matrix is the starting element of the initial two-dimensional matrix.
  • the typesetting information when displaying, if the abscissa of the pixel corresponding to the starting element is an integer multiple of 8 , then when writing to the storage area or display unit, you can directly write the hexadecimal display array row by row. For example, if the coordinates of the pixel corresponding to the start element in the display unit are (8, 1), when writing to the storage area or display unit, the hexadecimal display array can be directly written in rows. The coordinates of the starting pixel of the display unit are (0,0).
  • the display array shown in the right half of Figure 5 can be directly The display array is written row by row.
  • the processing of the red text information and the white text information is similar to the processing of the black text information, and details are not repeated here.
  • a base image, a black image, a red image and a white image are stored in the four storage areas of the Flash respectively.
  • the base image, black image, red image and white image can be written to the EPD in sequence, and the images can be superimposed to complete the final image display; it can also be synthesized according to the color rules of the EPD.
  • each bit in the EPD represents two different colors of a pixel. Therefore, the base image, black and white image, and red and white image can be written to the EPD in turn, and the images can be superimposed to complete the final image display.
  • read 16 bytes from the base image representing 64 pixels
  • read 8 bytes from the black image and white image representing 64 pixels
  • build a new array of size 8 Byte used for writing the EPD black and white image, first write the information of the black and white pixels in the 16 bytes and 64 pixels of the base image into the newly constructed array, and then write the 8 in the black image and the white image in the two images.
  • 64 pixels of each byte are written into the newly constructed array, the data written later will overwrite the newly written data, and then the newly constructed array is written into the EPD, and this process is repeated until all pixels are written. Enter, complete the writing of the base map and the black and white map.
  • sequence numbers of the steps are not used to limit the sequence of the steps.
  • the sequence of the steps can be changed without creative work. Also within the scope of protection of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

提供了一种物联网终端及其图片更新方法,属于显示技术领域。物联网终端包括:通信单元(11),用于接收文字图像信息;与通信单元(11)连接的微控制单元(12),用于将文字图像信息转换为待显示的图片;与微控制单元(12)连接的存储单元(13),用于存储待显示的图片;与微控制单元(12)连接的显示单元(14);微控制单元(12)还用于从存储单元(13)读取待显示的图片写入显示单元(14)进行显示。物联网终端及其图片更新方法能够实现低功耗的物联网终端完成图片类的处理。

Description

物联网终端及其图片更新方法 技术领域
本公开涉及显示技术领域,特别是指一种物联网终端及其图片更新方法。
背景技术
在物联网应用中,EPD(电泳显示技术)终端是一种利用电子墨水屏进行显示的物联网终端,采用低功耗的EPD屏幕,同时采用MCU(微控制单元)作为控制器,MCU的功耗非常低,但是处理能力和内部资源有限,无法完成图片类的处理。
发明内容
本公开要解决的技术问题是提供一种物联网终端及其图片更新方法,能够完成图片类的处理。
为解决上述技术问题,本公开的实施例提供技术方案如下:
一方面,提供一种物联网终端,包括:
通信单元,用于接收文字图像信息;
与所述通信单元连接的微控制单元,用于将所述文字图像信息转换为待显示的图片;
与所述微控制单元连接的存储单元,用于存储所述待显示的图片;
与所述微控制单元连接的显示单元;
所述微控制单元还用于从所述存储单元读取所述待显示的图片写入所述显示单元进行显示。
一些实施例中,所述文字图像信息包括底图信息和至少一种颜色的文字信息,
所述通信单元具体用于分别接收底图信息和至少一种颜色的文字信息的至少一种;
所述微控制单元具体用于将接收到的所述至少一种颜色的文字信息分别 对应转换为至少一个单色图片,还用于将接收到的所述底图信息转换为底图;
所述存储单元具体用于存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中,所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
所述微控制单元还具体用于分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示。
一些实施例中,还包括与所述微控制单元连接的字库单元,所述字库单元中存储与字符对应的第一显示数组,所述字库单元用于接收所述微控制单元输入的字符,输出与所述字符对应的第一显示数组。
一些实施例中,所述微控制单元还包括RAM,所述微控制单元具体用于:
对于所述至少一种颜色的文字信息的任一种,将所述通信单元接收到的文字信息存储在RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一种颜色的文字信息的任一种颜色的单色图片:
对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
所述二维矩阵的元素为二进制,按照每行写入时最后一列为0或者按照每列写入时最后一行为0,所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
一些实施例中,所述微控制单元还具体用于将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵, n1为k对8的余数。
一些实施例中,所述微控制单元还用于从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
一些实施例中,所述微控制单元与所述通信单元之间通过串行外设接口连接;和/或
所述微控制单元与所述存储单元之间通过串行外设接口连接;和/或
所述微控制单元与所述显示单元之间通过串行外设接口连接;和/或
所述微控制单元与所述字库单元之间通过串行外设接口连接。
一些实施例中,所述存储单元采用闪存。
一些实施例中,所述显示单元为电子墨水屏。
本公开实施例还提供了一种物联网终端的图片更新方法,应用于如上所述的物联网终端,所述图片更新方法包括:
利用所述通信单元接收文字图像信息;
利用所述微控制单元将所述通信单元接收到的文字图像信息转换为待显示的图片;
利用所述存储单元存储待显示的图片;
利用所述微控制单元将所述存储单元存储的待显示的图片写入显示单元进行显示;
利用所述显示单元对所述微控制单元写入的图片进行显示。
一些实施例中,所述文字图像信息包括底图信息和至少一种颜色的文字信息,所述方法具体包括:
利用所述通信单元分别接收底图信息和至少一种颜色的文字信息的至少一种;
利用所述微控制单元将接收到的所述至少一种颜色的文字信息分别对应转换为至少一个单色图片,将接收到的所述底图信息转换为底图;
利用所述存储单元存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中, 所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
利用所述微控制单元分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示。
一些实施例中,对于所述至少一种颜色的文字信息的任一种,利用所述微控制单元将所述通信单元接收到的文字信息存储在RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一种颜色的文字信息的任一种颜色的单色图片:
对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
所述二维矩阵的元素为二进制,按照每行写入时最后一列为0或者按照每列写入时最后一行为0,所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
一些实施例中,所述方法具体包括:
利用所述微控制单元将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵,n1为k对8的余数。
一些实施例中,所述方法具体包括:
利用所述微控制单元从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
本公开的实施例具有以下有益效果:
上述方案中,微控制单元将通信单元接收到的文字图像信息转换为待显 示的图片存储在微控制单元外部的存储单元中,之后微控制单元将存储单元存储的待显示的图片写入显示单元进行显示。本实施例通过微控制单元外部的存储单元对图片进行存储,这样图片无需占用微控制单元的资源,从而能够实现微控制单元以很小的资源完成图片的处理。
附图说明
图1为本公开实施例物联网终端的结构示意图;
图2为床头卡的显示示意图;
图3为本公开实施例进行图片叠加的示意图;
图4为本公开实施例物联网终端的图片更新方法的流程示意图;
图5为本公开实施例对二维矩阵进行右移的示意图。
具体实施方式
为使本公开的实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
物联网终端与网关之间大多采用近场无线通信的方式,网关将物联网终端上报的信息,通过有线网络或者移动网络发送给服务器,服务器则将信息下发给物联网终端,在物联网终端上进行显示。物联网终端的一具体应用可以为医院床头卡,床头卡位于病床旁,用于显示病患信息;物联网终端的另一具体应用可以为胸卡终端,用来显示医生信息;物联网终端的另一具体应用还可以为病房门牌等,用于显示病房内的相应的信息。物联网终端所显示的信息,通过服务器-网关下发到物联网终端。
物联网终端为低功耗设备,通常采用MCU作为控制器,MCU功耗非常低,但是处理能力有限,内部资源非常有限,无法完成图片类的处理。以床头卡为例,床头卡图片分辨率为800×480,文件大小约为96K字节,但是MCU的RAM(随机存取存储器)的存储空间只有20K字节,完全无法进行图片处理,
本公开实施例提供一种物联网终端及其图片更新方法,能够完成图片类 的处理。
本公开的实施例提供一种物联网终端,如图1所示,包括:
通信单元11,用于与外界进行通信,接收文字图像信息,通信单元11可以通过射频、蓝牙等无线方式接收文字图像信息,也可以通过有线方式接收文字图像信息;
与所述通信单元11连接的微控制单元12,用于将所述文字图像信息转换为待显示的图片;
与所述微控制单元12连接的存储单元13,用于存储所述待显示的图片;
与所述微控制单元连接的显示单元14;
所述微控制单元12还用于从所述存储单元13读取所述待显示的图片写入所述显示单元14进行显示。
本实施例中,微控制单元12将通信单元11接收到的文字图像信息转换为待显示的图片存储在微控制单元12外部的存储单元13中,之后微控制单元12将存储单元13存储的待显示的图片写入显示单元14进行显示。本实施例通过微控制单元12外部的存储单元13对图片进行存储,这样图片无需占用微控制单元12的资源,从而能够实现微控制单元12以很小的资源完成图片的处理。
一具体示例中,通信单元11为射频芯片,可以通过无线方式与网关进行通信,通过网关与服务器进行交互,接收文字图像信息。其中,网关可以进行近场的无线通信,并具有无线网络或者有线网络,能够连接服务器。
存储单元13用于信息存储以及文字图像信息处理过程中的信息缓存,存储单元13可以采用多种类型的存储器件,一些实施例中,存储单元13可以采用闪存Flash,它的主要特点是在不加电的情况下能长期保持存储的信息。Flash属于EEPROM(电擦除可编程只读存储器)类型,它具有很高的存取速度,而且易于擦除和重写,功耗很小,适用于具有低功耗要求的物联网终端。当然,存储单元13并不局限于采用Flash,还可以采用其他类型的可擦除可编程的存储器件。
一些实施例中,所述显示单元14为电子墨水屏。电子墨水屏的功耗非常 低,适用于具有低功耗要求的物联网终端。当然,显示单元14并不局限于采用电子墨水屏,还可以采用其他类型的低功耗显示器件。
物联网终端与网关之间大多采用近场无线通信的方式,通常,近场无线通信采用了较低的频率用以扩大作用范围,通讯速度较慢,所以服务器-网关下发的信息大多为文字信息,物联网终端中的MCU将底图信息和文字信息进行合成,在显示单元14上进行显示。因此,如图1所示,物联网终端还包括字库单元15,用于存储与文字信息对应的第一显示数组,字库单元15可以通过字符或文字的ASCII码和GB2312码读取相应信息的第一显示数组,第一显示数组用以表示字符或文字需要通过显示单元的多少个像素来进行显示,以及在显示文字或字符时,这些像素是否点亮。其中,字符或文字在进行显示时,由很多的点按一定的方式组合起来,字库单元可以将不同字符或文字翻译为点阵形式,也就是第一显示模组。
本实施例中,所述微控制单元12与所述通信单元11之间可以通过串行外设接口连接;所述微控制单元12与所述存储单元13之间可以通过串行外设接口(Serial Peripheral Interface,SPI)连接;所述微控制单元12与所述显示单元14之间可以通过串行外设接口连接;所述微控制单元12与所述字库单元15之间可以通过串行外设接口连接,串行外设接口是一种同步外设接口,它可以使微控制单元12与各种外围设备以串行方式进行通信以交换信息。
一些实施例中,所述文字图像信息包括底图信息和至少一种颜色的文字信息,底图信息表示基本图片,可以显示不同颜色的图形和文字。可以在底图的不同位置显示不同颜色的文字和图形来实现信息的显示。底图信息通常是固定的,更改的几率非常小,后续在底图上更新文字信息即可实现图片的更新。其中,至少一种颜色的文字信息即后续需要更新的文字信息,文字信息可以包括文字和图形。
所述通信单元11具体用于分别接收底图信息和至少一种颜色的文字信息的至少一种;其中,分别接收可以有先后顺序也可以没有先后顺序;
所述微控制单元12具体用于将接收到的所述至少一种颜色的文字信息分别对应转换为至少一个单色图片,还用于将接收到的所述底图信息转换为 底图;
所述存储单元13具体用于存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中,所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
所述微控制单元12还具体用于分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示,这样可以实现在图片上进行文字叠加的效果。
一些实施例中,
所述微控制单元12还包括RAM,所述微控制单元12具体用于:
对于所述至少一种颜色的文字信息的任一种,将所述通信单元接收到的文字信息存储在RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一种颜色的文字信息的任一种颜色的单色图片:
对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
所述二维矩阵的元素为二进制,按照每行写入时最后一列为0或者按照每列写入时最后一行为0,所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
一些实施例中,
所述微控制单元12还具体用于将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵,n1为k对8的余数。
一些实施例中,所述微控制单元12还用于从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
其中,M个像素可以是显示单元14的全部像素,也可以是显示单元14的部分像素。
一具体示例中,存储单元13采用Flash,物联网终端为如图2所示的床头卡,如图2所示,床头卡分为几个区域,分别为白底黑字区域、红底白字区域、白底黑字区域和白底红字区域。Flash的特点是,一旦写入就无法擦除,而擦除时,必须整块擦除。所以本实施例采用分色处理方式,将床头卡的文字图像信息分为底图信息和三种颜色的文字信息,其中,底图信息包括白底区域和红底区域,三种颜色的文字信息分别是黑字信息、白字信息和红字信息,相应地,Flash分为四个存储区域,分别用于存储底图信息、黑字信息、白字信息和红字信息。
床头卡可以通过通信单元11与网关和服务器进行交互,接收服务器和网关下发的信息,服务器和网关向床头卡下发的信息分为底图信息和文字信息,在服务器和网关下发底图信息时,床头卡进入底图接收模式,直接将底图信息作为底图图片存储在Flash对应的存储区域中,由于底图通常是固定的,更改的几率很小,因此床头卡主要接收的为文字信息。在服务器和网关下发文字信息时,床头卡进入文字信息接收模式,将文字信息转换为待显示的单色图片,并将转换后的单色图片存储在Flash对应的存储区域中。比如,床头卡在接收到黑字信息后,可以将黑字信息转换为黑色图片存储在Flash对应的存储区域中;床头卡在接收到红字信息后,可以将红字信息转换为红色图片存储在Flash对应的存储区域中;床头卡在接收到白字信息后,可以将白字信息转换为白色图片存储在Flash对应的存储区域中。
其中,底图图片包括有三种不同的颜色:黑色、白色和红色,因此在底图信息中每两个比特表示一个颜色,比如通过00表示黑色,01表示白色,10表示红色。而对于白色图片、黑色图片和红色图片来说,都仅包括一个颜色,因此可以通过一个比特来代表一个像素,表示对应的像素是否显示该种 颜色。比如对于白色图片,在像素对应的比特为1时表示对应的像素显示白色,在像素对应的比特为0时表示对应的像素不显示白色;对于黑色图片,在像素对应的比特为1时表示对应的像素显示黑色,在像素对应的比特为0时表示对应的像素不显示黑色;对于红色图片,在像素对应的比特为1时表示对应的像素显示红色,在像素对应的比特为0时表示对应的像素不显示红色。
在床头卡接收文字信息时,首先将对应区域的Flash擦除,然后将文字信息的GB2312码通过字库单元15转换为二维矩阵,再根据底图的排版,对二维矩阵进行微调,实现按bit调整,之后将调整后的二维矩阵按行写入对应颜色的存储区域内,如此将不同颜色的文字信息分别写入对应颜色的存储区域中。
具体地,以黑色文字信息为例,MCU将接收到的黑色文字信息存储于RAM中,首先进行第一个字符的处理,利用该字符的GB2312码或者ASCII码通过与字库单元15的接口,获取该字符的第一显示数组,将该第一显示数组转换为二维矩阵,该二维矩阵的元素为二进制,比如该第一显示数组为:
Figure PCTCN2021112659-appb-000001
第一显示数组的元素为16进制。转换后的初始二维矩阵为:
Figure PCTCN2021112659-appb-000002
初始二维矩阵中的元素为二进制,其中的一个bit对应显示单元的一个像素,在将二维矩阵写入Flash时需要按字节进行写入,因此,每行或每列元素的个数应该为8的倍数。如果每行或每列元素的个数不是8的倍数,需要对第一显示数组进行扩充,例如m行n列的初始二维矩阵,若EPD为横向扫描,,然后根据排版信息,计算该初始二维矩阵的起始元素对应的显示单元的像素的行坐标k不是8的整数倍,则按照n bit进行初始二维矩阵元素的右移,构 成了新的二维矩阵。将此新的二维矩阵按行分成m个第二显示数组,分别写入Flash相应颜色的存储区域内,此时完成第一个字符的处理。以此类推,完成所有字符的处理之后,得到了黑色图片。
比如一第一显示数组为:
Figure PCTCN2021112659-appb-000003
其中,0X为十六进制,此第一显示数组为6行2列,可以用来显示字符“1”。
转换为初始二维矩阵后为:
Figure PCTCN2021112659-appb-000004
其中的每一比特对应显示单元的一个像素。
初始二维矩阵的第一行第一列元素“0”为初始二维矩阵的起始元素,根据排版信息,在进行显示时,若该起始元素对应的像素的横坐标为8的整数倍,则在写入存储区域或显示单元时,可以直接将该十六进制的显示数组按行写入。比如,该起始元素对应的像素在显示单元的坐标为(8,1),则在写入存储区域或显示单元时,可以直接将该十六进制的显示数组按行写入。其中,显示单元的起始像素的坐标为(0,0)。
若根据排版信息,在进行显示时,初始二维矩阵的起始元素对应的像素的横坐标k不是8的整数倍,则需要对初始二维矩阵进行右移,比如k=10,则需要将初始二维矩阵的元素整体右移2比特,并在初始二维矩阵前补入2列全0比特,在初始二维矩阵后补入6列全0比特,如图5所示,得到新的二维矩阵,将该二维矩阵以十六进制表示可以得到如图5右半部分所示的显示数组,在写入存储区域或显示单元时,可以直接将图5右半部分所示的显示数组按行写入。
对红色文字信息、白色文字信息的处理与对黑色文字信息的处理类似,在此不再赘述。在依次完成对黑色文字信息、红色文字信息、白色文字信息的处理后,在Flash的四个存储区域内分别存储有底图、黑色图片、红色图片和白色图片。
在进行EPD刷新时,如图3所示,可以依次向EPD写入底图、黑色图片、红色图片和白色图片,进行图片的叠加,完成最终的图片显示;也可以根据EPD的颜色规则进行合成,EPD中每一个bit表示一个像素的两种不同颜色,因此,可以依次向EPD写入底图、黑白图和红白图,进行图片的叠加,完成最终的图片显示。例如,从底图中读取16个字节,表示64个像素;然后,分别从黑色图片和白色图片中读取8个字节,表示64个像素;构建一个新的数组,大小为8个字节,用于EPD黑白图的写入,首先将底图中的16个字节64个像素中黑白像素的信息写入到新构建的数组中,再将黑色图片和白色图片两张图中的8个字节64个像素写入到新构建的数组中,后写入的数据将覆盖新写入的数据,之后将这新构建的数组写入到EPD中,重复此过程,直至将全部像素写入,完成底图和黑白图的写入。之后,重复上述过程,分别从红色图片和白色图片中读取8个字节,表示64个像素;构建一个新的数组,大小为8个字节,用于EPD红白图的写入,将红色图片和白色图片两张图中的8个字节64个像素写入到新构建的数组中,之后将这新构建的数组写入到EPD中,重复此过程,直至将全部像素写入,完成进行红白图的写入。在红白图写入后,即完成了最终的图片显示,实现在底图上进行文字叠加的效果。
另一方面,本公开实施例提供了一种物联网终端的图片更新方法,应用于如上所述的物联网终端,如图4所示,所述图片更新方法包括:
步骤101:利用所述通信单元11接收文字图像信息;
步骤102:利用所述微控制单元12将所述通信单元11接收到的文字图像信息转换为待显示的图片;
步骤103:利用所述存储单元13存储待显示的图片;
步骤104:利用所述微控制单元12将所述存储单元13存储的待显示的 图片写入显示单元14进行显示;
步骤105:利用所述显示单元14对所述微控制单元12写入的图片进行显示。
本实施例中,微控制单元12将通信单元11接收到的文字图像信息转换为待显示的图片存储在微控制单元12外部的存储单元13中,之后微控制单元12将存储单元13存储的待显示的图片写入显示单元14进行显示。本实施例通过微控制单元12外部的存储单元13对图片进行存储,这样图片无需占用微控制单元12的资源,从而能够实现微控制单元12以很小的资源完成图片的处理。
其中,通信单元11为射频芯片,可以通过无线方式与网关进行通信,通过网关与服务器进行交互,接收文字图像信息。其中,网关可以进行近场的无线通信,并具有无线网络或者有线网络,能够连接服务器。
存储单元13用于信息存储以及文字图像信息处理过程中的信息缓存,存储单元13可以采用多种类型的存储器件,一些实施例中,存储单元13可以采用闪存Flash,它的主要特点是在不加电的情况下能长期保持存储的信息。Flash属于EEPROM(电擦除可编程只读存储器)类型,它具有很高的存取速度,而且易于擦除和重写,功耗很小,适用于具有低功耗要求的物联网终端。当然,存储单元13并不局限于采用Flash,还可以采用其他类型的可擦除可编程的存储器件。
一些实施例中,所述显示单元14为电子墨水屏。电子墨水屏的功耗非常低,适用于具有低功耗要求的物联网终端。当然,显示单元14并不局限于采用电子墨水屏,还可以采用其他类型的低功耗显示器件。
物联网终端与网关之间大多采用近场无线通信的方式,通常,近场无线通信采用了较低的频率用以扩大作用范围,通讯速度较慢,所以服务器-网关下发的信息大多为文字信息,物联网终端中的MCU将底图信息和文字信息进行合成,在显示单元14上进行显示。因此,如图1所示,物联网终端还包括字库单元15,用于存储与文字信息对应的第一显示数组,字库单元15可以通过字符或文字的ASCII码和GB2312码读取相应信息的显示数组,第一 显示数组用以表示字符或文字需要通过显示单元的多少个像素来进行显示,以及在显示文字或字符时,这些像素是否点亮。其中,字符或文字在进行显示时,由很多的点按一定的方式组合起来,字库单元可以将不同字符或文字翻译为点阵形式,也就是第一显示模组。
本实施例中,所述微控制单元12与所述通信单元11之间可以通过串行外设接口连接;所述微控制单元12与所述存储单元13之间可以通过串行外设接口(Serial Peripheral Interface,SPI)连接;所述微控制单元12与所述显示单元14之间可以通过串行外设接口连接;所述微控制单元12与所述字库单元15之间可以通过串行外设接口连接,串行外设接口是一种同步外设接口,它可以使微控制单元12与各种外围设备以串行方式进行通信以交换信息。
一些实施例中,所述文字图像信息包括底图信息和至少一种颜色的文字信息,底图信息表示基本图片,可以显示不同颜色的图形和文字。可以在底图的不同位置显示不同颜色的文字和图形来实现信息的显示。底图信息通常是固定的,更改的几率非常小,后续在底图上更新文字信息即可实现图片的更新。其中,至少一种颜色的文字信息即后续需要更新的文字信息,文字信息可以包括文字和图形。
一些实施例中,所述方法具体包括:
利用所述通信单元分别接收底图信息和至少一种颜色的文字信息的至少一种;
利用所述微控制单元将接收到的所述至少一种颜色的文字信息分别对应转换为至少一个单色图片,将接收到的所述底图信息转换为底图;
利用所述存储单元存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中,所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
利用所述微控制单元分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示。
一些实施例中,对于所述至少一种颜色的文字信息的任一种,利用所述 微控制单元将所述通信单元接收到的文字信息存储在RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一种颜色的文字信息的任一种颜色的单色图片:
对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
所述二维矩阵的元素为二进制,按照每行写入时最后一列为0或者按照每列写入时最后一行为0,所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
一些实施例中,所述方法具体包括:
利用所述微控制单元将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵,n1为k对8的余数。
一些实施例中,所述方法具体包括:
利用所述微控制单元从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
一具体示例中,存储单元13采用Flash,物联网终端为如图2所示的床头卡,如图2所示,床头卡分为几个区域,分别为白底黑字区域、红底白字区域、白底黑字区域和白底红字区域。Flash的特点是,一旦写入就无法擦除,而擦除时,必须整块擦除。所以本实施例采用分色处理方式,将床头卡的文字图像信息分为底图信息和三种颜色的文字信息,其中,底图信息包括白底区域和红底区域,三种颜色的文字信息分别是黑字信息、白字信息和红字信息,相应地,Flash分为四个存储区域,分别用于存储底图信息、黑字信息、 白字信息和红字信息。
床头卡可以通过通信单元11与网关和服务器进行交互,接收服务器和网关下发的信息,服务器和网关向床头卡下发的信息分为底图信息和文字信息,在服务器和网关下发底图信息时,床头卡进入底图接收模式,直接将底图信息作为底图图片存储在Flash对应的存储区域中,由于底图通常是固定的,更改的几率很小,因此床头卡主要接收的为文字信息。在服务器和网关下发文字信息时,床头卡进入文字信息接收模式,将文字信息转换为待显示的单色图片,并将转换后的单色图片存储在Flash对应的存储区域中。比如,床头卡在接收到黑字信息后,可以将黑字信息转换为黑色图片存储在Flash对应的存储区域中;床头卡在接收到红字信息后,可以将红字信息转换为红色图片存储在Flash对应的存储区域中;床头卡在接收到白字信息后,可以将白字信息转换为白色图片存储在Flash对应的存储区域中。
其中,底图图片包括有三种不同的颜色:黑色、白色和红色,因此在底图信息中每两个比特表示一个颜色,比如通过00表示黑色,01表示白色,10表示红色。而对于白色图片、黑色图片和红色图片来说,都仅包括一个颜色,因此可以通过一个比特来代表一个像素,表示对应的像素是否显示该种颜色。比如对于白色图片,在像素对应的比特为1时表示对应的像素显示白色,在像素对应的比特为0时表示对应的像素不显示白色;对于黑色图片,在像素对应的比特为1时表示对应的像素显示黑色,在像素对应的比特为0时表示对应的像素不显示黑色;对于红色图片,在像素对应的比特为1时表示对应的像素显示红色,在像素对应的比特为0时表示对应的像素不显示红色。
在床头卡接收文字信息时,首先将对应区域的Flash擦除,然后将文字信息的GB2312码通过字库单元15转换为二维矩阵,再根据底图的排版,对二维矩阵进行微调,实现按bit调整,之后将调整后的二维矩阵按行写入对应颜色的存储区域内,如此将不同颜色的文字信息分别写入对应颜色的存储区域中。
具体地,以黑色文字信息为例,MCU将接收到的黑色文字信息存储于 RAM中,首先进行第一个字符的处理,利用该字符的GB2312码或者ASCII码通过与字库单元15的接口,获取该字符的第一显示数组,将该第一显示数组转换为二维矩阵,该二维矩阵的元素为二进制,比如该第一显示数组为:
Figure PCTCN2021112659-appb-000005
第一显示数组的元素为16进制。转换后的初始二维矩阵为:
Figure PCTCN2021112659-appb-000006
初始二维矩阵中的元素为二进制,其中的一个bit对应显示单元的一个像素,在将二维矩阵写入Flash时需要按字节进行写入,因此,每行或每列元素的个数应该为8的倍数。如果每行或每列元素的个数不是8的倍数,需要对第一显示数组进行扩充,例如m行n列的初始二维矩阵,若EPD为横向扫描,,然后根据排版信息,计算该初始二维矩阵的起始元素对应的显示单元的像素的行坐标k不是8的整数倍,则按照n bit进行初始二维矩阵元素的右移,构成了新的二维矩阵。将此新的二维矩阵按行分成m个第二显示数组,分别写入Flash相应颜色的存储区域内,此时完成第一个字符的处理。以此类推,完成所有字符的处理之后,得到了黑色图片。
比如一第一显示数组为:
Figure PCTCN2021112659-appb-000007
其中,0X为十六进制,此第一显示数组为6行2列,可以用来显示字符“1”。
转换为初始二维矩阵后为:
Figure PCTCN2021112659-appb-000008
其中的每一比特对应显示单元的一个像素。
初始二维矩阵的第一行第一列元素“0”为初始二维矩阵的起始元素,根据排版信息,在进行显示时,若该起始元素对应的像素的横坐标为8的整数倍,则在写入存储区域或显示单元时,可以直接将该十六进制的显示数组按行写入。比如,该起始元素对应的像素在显示单元的坐标为(8,1),则在写入存储区域或显示单元时,可以直接将该十六进制的显示数组按行写入。其中,显示单元的起始像素的坐标为(0,0)。
若根据排版信息,在进行显示时,初始二维矩阵的起始元素对应的像素的横坐标k不是8的整数倍,则需要对初始二维矩阵进行右移,比如k=10,则需要将初始二维矩阵的元素整体右移2比特,并在初始二维矩阵前补入2列全0比特,在初始二维矩阵后补入6列全0比特,如图5所示,得到新的二维矩阵,将该二维矩阵以十六进制表示可以得到如图5右半部分所示的显示数组,在写入存储区域或显示单元时,可以直接将图5右半部分所示的显示数组按行写入。
对红色文字信息、白色文字信息的处理与对黑色文字信息的处理类似,在此不再赘述。在依次完成对黑色文字信息、红色文字信息、白色文字信息的处理后,在Flash的四个存储区域内分别存储有底图、黑色图片、红色图片和白色图片。
在进行EPD刷新时,如图3所示,可以依次向EPD写入底图、黑色图片、红色图片和白色图片,进行图片的叠加,完成最终的图片显示;也可以根据EPD的颜色规则进行合成,EPD中每一个bit表示一个像素的两种不同颜色,因此,可以依次向EPD写入底图、黑白图和红白图,进行图片的叠加,完成最终的图片显示。例如,从底图中读取16个字节,表示64个像素;然后,分别从黑色图片和白色图片中读取8个字节,表示64个像素;构建一个 新的数组,大小为8个字节,用于EPD黑白图的写入,首先将底图中的16个字节64个像素中黑白像素的信息写入到新构建的数组中,再将黑色图片和白色图片两张图中的8个字节64个像素写入到新构建的数组中,后写入的数据将覆盖新写入的数据,之后将这新构建的数组写入到EPD中,重复此过程,直至将全部像素写入,完成底图和黑白图的写入。之后,重复上述过程,分别从红色图片和白色图片中读取8个字节,表示64个像素;构建一个新的数组,大小为8个字节,用于EPD红白图的写入,将红色图片和白色图片两张图中的8个字节64个像素写入到新构建的数组中,之后将这新构建的数组写入到EPD中,重复此过程,直至将全部像素写入,完成进行红白图的写入。在红白图写入后,即完成了最终的图片显示,实现在底图上进行文字叠加的效果。
在本公开各方法实施例中,所述各步骤的序号并不能用于限定各步骤的先后顺序,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,对各步骤的先后变化也在本公开的保护范围之内。
需要说明,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于实施例而言,由于其基本相似于产品实施例,所以描述得比较简单,相关之处参见产品实施例的部分说明即可。
除非另外定义,本公开使用的技术术语或者科学术语应当为本公开所属领域内具有一般技能的人士所理解的通常意义。本公开中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。
可以理解,当诸如层、膜、区域或基板之类的元件被称作位于另一元件“上” 或“下”时,该元件可以“直接”位于另一元件“上”或“下”,或者可以存在中间元件。
在上述实施方式的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种物联网终端,其特征在于,包括:
    通信单元,用于接收文字图像信息;
    与所述通信单元连接的微控制单元,用于将所述文字图像信息转换为待显示的图片;
    与所述微控制单元连接的存储单元,用于存储所述待显示的图片;
    与所述微控制单元连接的显示单元;
    所述微控制单元还用于从所述存储单元读取所述待显示的图片写入所述显示单元进行显示。
  2. 根据权利要求1所述的物联网终端,其特征在于,所述文字图像信息包括底图信息和至少一种颜色的文字信息,
    所述通信单元具体用于分别接收底图信息和至少一种颜色的文字信息的至少一种;
    所述微控制单元具体用于将接收到的所述至少一种颜色的文字信息分别对应转换为至少一个单色图片,还用于将接收到的所述底图信息转换为底图;
    所述存储单元具体用于存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中,所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
    所述微控制单元还具体用于分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示。
  3. 根据权利要求2所述的物联网终端,其特征在于,还包括与所述微控制单元连接的字库单元,所述字库单元中存储与字符对应的第一显示数组,所述字库单元用于接收所述微控制单元输入的字符,输出与所述字符对应的第一显示数组。
  4. 根据权利要求3所述的物联网终端,其特征在于,所述微控制单元还包括随机存取存储器RAM,所述微控制单元具体用于:
    对于所述至少一种颜色的文字信息的任一种,将所述通信单元接收到的文字信息存储在RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一种颜色的文字信息的任一种颜色的单色图片:
    对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
    所述二维矩阵的元素为二进制,沿着写入显示单元的扫描方向的最后一个元素为0,所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
  5. 根据权利要求4所述的物联网终端,其特征在于,
    所述微控制单元还具体用于将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵,n1为k对8的余数。
  6. 根据权利要求4所述的物联网终端,其特征在于,
    所述微控制单元还用于从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
  7. 根据权利要求3-6任一所述的物联网终端,其特征在于,
    所述微控制单元与所述通信单元之间通过串行外设接口连接;和/或
    所述微控制单元与所述存储单元之间通过串行外设接口连接;和/或
    所述微控制单元与所述显示单元之间通过串行外设接口连接;和/或
    所述微控制单元与所述字库单元之间通过串行外设接口连接。
  8. 根据权利要求1-6任一所述的物联网终端,其特征在于,所述存储单元采用闪存。
  9. 根据权利要求1-6任一所述的物联网终端,其特征在于,所述显示单元为电子墨水屏。
  10. 一种物联网终端的图片更新方法,其特征在于,应用于如权利要求1-9中任一项所述的物联网终端,所述图片更新方法包括:
    利用所述通信单元接收文字图像信息;
    利用所述微控制单元将所述通信单元接收到的文字图像信息转换为待显示的图片;
    利用所述存储单元存储待显示的图片;
    利用所述微控制单元将所述存储单元存储的待显示的图片写入显示单元进行显示;
    利用所述显示单元对所述微控制单元写入的图片进行显示。
  11. 根据权利要求10所述的物联网终端的图片更新方法,其特征在于,所述文字图像信息包括底图信息和至少一种颜色的文字信息,所述方法具体包括:
    利用所述通信单元分别接收底图信息和至少一种颜色的文字信息的至少一种;
    利用所述微控制单元将接收到的所述至少一种颜色的文字信息分别对应转换为至少一个单色图片,将接收到的所述底图信息转换为底图;
    利用所述存储单元存储所述底图和所述至少一个单色图片,所述底图和所述至少一个单色图片在所述存储单元中对应的存储区域相互独立,其中,所述至少一个单色图片中的不同单色图片对应的存储区域相互独立;
    利用所述微控制单元分别从所述存储单元中对应的存储区域读取所述底图和所述至少一个单色图片,并进行合成为所述待显示图片写入所述显示单元进行显示。
  12. 根据权利要求11所述的物联网终端的图片更新方法,其特征在于,
    对于所述至少一种颜色的文字信息的任一种,利用所述微控制单元将所述通信单元接收到的文字信息存储在随机存取存储器RAM中,对所述至少一种颜色的文字信息的任一种中的所有字符逐个处理以转换得到所述至少一 种颜色的文字信息的任一种颜色的单色图片:
    对于每一个字符,通过所述字库单元获取与所述字符对应的第一显示数组,将所述第一显示数组转换为m行n列的二维矩阵,将所述二维矩阵按照每行或每列依次写入所述存储单元中对应颜色的存储区域;其中,
    所述二维矩阵的元素为二进制,按照每行写入时最后一列为0或者按照每列写入时最后一行为0所述二维矩阵的起始元素对应的所述显示单元的像素沿写入显示单元的扫描方向的次序是8的q倍,所述n、m为正整数,q为自然数。
  13. 根据权利要求12所述的物联网终端的图片更新方法,其特征在于,所述方法具体包括:
    利用所述微控制单元将所述字符对应的显示数组转换为m行n列的初始二维矩阵,所述初始二维矩阵的元素为二进制,若所述初始二维矩阵的起始元素对应的所述显示单元的像素的行坐标k不是8的整数倍,将所述初始二维矩阵的所有元素对应的所述显示单元的像素的位置整体向右移动n1个像素,并在所述初始二维矩阵前补入n1列全0元素,在所述初始二维矩阵后补入(8-n1)列全0元素,得到最终的所述二维矩阵,n1为k对8的余数。
  14. 根据权利要求11所述的物联网终端的图片更新方法,其特征在于,所述方法具体包括:
    利用所述微控制单元从所述至少一个单色图片中的不同单色图片对应的存储区域分别按照每行或每列读取M个像素对应的所述二维矩阵元素并写入所述显示单元的所述M个像素,所述M为正整数。
PCT/CN2021/112659 2020-09-29 2021-08-16 物联网终端及其图片更新方法 WO2022068431A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US18/044,951 US20230351976A1 (en) 2020-09-29 2021-08-16 Internet-of-things terminal and picture updating method therefor

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011053717.4 2020-09-29
CN202011053717.4A CN112199060B (zh) 2020-09-29 2020-09-29 物联网终端及其图片更新方法

Publications (1)

Publication Number Publication Date
WO2022068431A1 true WO2022068431A1 (zh) 2022-04-07

Family

ID=74008027

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112659 WO2022068431A1 (zh) 2020-09-29 2021-08-16 物联网终端及其图片更新方法

Country Status (3)

Country Link
US (1) US20230351976A1 (zh)
CN (1) CN112199060B (zh)
WO (1) WO2022068431A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199060B (zh) * 2020-09-29 2024-03-08 京东方科技集团股份有限公司 物联网终端及其图片更新方法

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110141139A1 (en) * 2004-10-14 2011-06-16 Daktronics, Inc. Flexible pixel hardware and method
CN102169423A (zh) * 2010-02-26 2011-08-31 腾讯科技(北京)有限公司 显示文字的方法和系统
CN103412733A (zh) * 2013-07-23 2013-11-27 天地(常州)自动化股份有限公司 矿井led信息显示系统
US9256795B1 (en) * 2013-03-15 2016-02-09 A9.Com, Inc. Text entity recognition
CN105426149A (zh) * 2015-11-10 2016-03-23 北京恒宇信通科技发展有限公司 一种基于fpga的图形显示卡
CN105446683A (zh) * 2015-11-18 2016-03-30 中国电子科技集团公司第二十八研究所 基于cuda的空中交通电子航图显示加速方法
CN106327552A (zh) * 2016-08-31 2017-01-11 广州博冠信息科技有限公司 一种文字显示方法及装置
CN107704224A (zh) * 2017-07-26 2018-02-16 广州奥翼电子科技股份有限公司 电子标签显示系统及电子标签显示方法
US20180341450A1 (en) * 2017-05-24 2018-11-29 Kyocera Corporation Mobile electronic device
CN110134352A (zh) * 2018-02-08 2019-08-16 北京淳中科技股份有限公司 一种信号处理系统、控制装置、输出装置及方法
CN112199060A (zh) * 2020-09-29 2021-01-08 京东方科技集团股份有限公司 物联网终端及其图片更新方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461155C (zh) * 2006-04-06 2009-02-11 华为技术有限公司 一种字符输入显示方法及系统
CN101219030A (zh) * 2008-01-21 2008-07-16 胡清 用于播放佛教媒体信息的可视终端和方法
CN102761841A (zh) * 2012-07-02 2012-10-31 宋小民 一种向智能终端投放信息的方法及系统
CN110177346A (zh) * 2019-04-09 2019-08-27 武汉虹信通信技术有限责任公司 基于eMTC的无线电子显示装置

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110141139A1 (en) * 2004-10-14 2011-06-16 Daktronics, Inc. Flexible pixel hardware and method
CN102169423A (zh) * 2010-02-26 2011-08-31 腾讯科技(北京)有限公司 显示文字的方法和系统
US9256795B1 (en) * 2013-03-15 2016-02-09 A9.Com, Inc. Text entity recognition
CN103412733A (zh) * 2013-07-23 2013-11-27 天地(常州)自动化股份有限公司 矿井led信息显示系统
CN105426149A (zh) * 2015-11-10 2016-03-23 北京恒宇信通科技发展有限公司 一种基于fpga的图形显示卡
CN105446683A (zh) * 2015-11-18 2016-03-30 中国电子科技集团公司第二十八研究所 基于cuda的空中交通电子航图显示加速方法
CN106327552A (zh) * 2016-08-31 2017-01-11 广州博冠信息科技有限公司 一种文字显示方法及装置
US20180341450A1 (en) * 2017-05-24 2018-11-29 Kyocera Corporation Mobile electronic device
CN107704224A (zh) * 2017-07-26 2018-02-16 广州奥翼电子科技股份有限公司 电子标签显示系统及电子标签显示方法
CN107766020A (zh) * 2017-07-26 2018-03-06 广州奥翼电子科技股份有限公司 图片数据处理装置、图片数据处理方法及电子标签显示系统组件
CN110134352A (zh) * 2018-02-08 2019-08-16 北京淳中科技股份有限公司 一种信号处理系统、控制装置、输出装置及方法
CN112199060A (zh) * 2020-09-29 2021-01-08 京东方科技集团股份有限公司 物联网终端及其图片更新方法

Also Published As

Publication number Publication date
CN112199060B (zh) 2024-03-08
CN112199060A (zh) 2021-01-08
US20230351976A1 (en) 2023-11-02

Similar Documents

Publication Publication Date Title
US7027056B2 (en) Graphics engine, and display driver IC and display module incorporating the graphics engine
US20050248522A1 (en) Display driver ic, display module and electrical device incorporating a graphics engine
CN106104668B (zh) 显示设备、显示设备的驱动器、包括显示设备和驱动器的电子设备以及显示系统
JPH09245179A (ja) コンピュータグラフィックス装置
WO2022068431A1 (zh) 物联网终端及其图片更新方法
CN110751924A (zh) 分屏控制的Micro-LED显示屏
WO2023045684A1 (zh) 图片更新方法、物联网终端及物联网系统
JP4570025B2 (ja) コントローラドライバ及び表示パネル駆動方法
CN103065611A (zh) 显示控制器和包括该显示控制器的显示装置
CN113050385B (zh) 一种dmd光刻机中灰度图像数据存储方法
CN106875884B (zh) 一种绘制单色屏幕的方法和装置及一种电子设备
JP2005221853A (ja) コントローラドライバ,携帯端末,及び表示パネル駆動方法
JPH0683288A (ja) 表示制御装置
JP2004252102A (ja) 画像表示装置、画像表示方法および画像表示プログラム
JP2005266792A (ja) 大型のオーバーレイされたカメラ画像を表示するためのメモリ効率の良い方法及び装置
CN115831042B (zh) 图像显示方法和系统、显示驱动装置、存储介质
JPS6362750B2 (zh)
JP2943067B1 (ja) 表示制御方法及び装置
JP2003140628A (ja) 情報処理装置
CN116668609A (zh) 视频流中图像旋转方法、装置、计算机设备以及存储介质
JPH06110434A (ja) 文字表示装置
JP2002311943A (ja) 画像表示装置
JPH0437795A (ja) ハイビジョン用文字表示装置
GB2388506A (en) Graphics engine and display driver
JPS63132281A (ja) 文字サイズ拡大変換表示制御方式

Legal Events

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

Ref document number: 21874093

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.07.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21874093

Country of ref document: EP

Kind code of ref document: A1