CN112698801A - Method for displaying on display panel of elevator, electronic device and storage medium - Google Patents

Method for displaying on display panel of elevator, electronic device and storage medium Download PDF

Info

Publication number
CN112698801A
CN112698801A CN202110012711.0A CN202110012711A CN112698801A CN 112698801 A CN112698801 A CN 112698801A CN 202110012711 A CN202110012711 A CN 202110012711A CN 112698801 A CN112698801 A CN 112698801A
Authority
CN
China
Prior art keywords
display
style
information
specified
elevator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110012711.0A
Other languages
Chinese (zh)
Other versions
CN112698801B (en
Inventor
林毅文
鲁国堂
何小虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Step Electric Corp
Original Assignee
Shanghai Step Electric Corp
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 Shanghai Step Electric Corp filed Critical Shanghai Step Electric Corp
Priority to CN202110012711.0A priority Critical patent/CN112698801B/en
Publication of CN112698801A publication Critical patent/CN112698801A/en
Application granted granted Critical
Publication of CN112698801B publication Critical patent/CN112698801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B50/00Energy efficient technologies in elevators, escalators and moving walkways, e.g. energy saving or recuperation technologies

Landscapes

  • Indicating And Signalling Devices For Elevators (AREA)

Abstract

The embodiment of the invention relates to the field of display panels, and discloses a display method of an elevator display panel, electronic equipment and a storage medium. The method for displaying by the elevator display panel comprises the following steps: the method is applied to a control device connected with an elevator display panel, and comprises the following steps: acquiring an updating instruction of a character to be displayed, wherein the updating instruction comprises searching information of a storage address for searching a specified style; acquiring a specified pattern from a storage space in which at least two display patterns are stored in advance according to an updating instruction; and reloading the specified style to the running program according to the specified format and the specified style so as to control the elevator display panel to display the display characters according to the updated indication style. By adopting the embodiment, the display style of the characters to be displayed in the elevator display panel can be flexibly replaced, the cost for updating the display style is reduced, and the efficiency for updating the display style is improved.

Description

Method for displaying on display panel of elevator, electronic device and storage medium
Technical Field
The embodiment of the invention relates to the field of display panels, in particular to a display method of an elevator display panel, electronic equipment and a storage medium.
Background
The elevator display panel is suitable for various elevator places such as corridors and elevator rooms where elevators are installed. The elevator display panel can independently display time, date, elevator name and the like, and can also simultaneously superpose and display information such as time, date, elevator name, floor where the elevator is located, running direction and state, floor blocking fault and the like.
However, in the conventional elevator display panel, the display mode of the floor display or the characteristic state is fixedly written during the manufacture, and once the elevator display panel is installed, if another display mode is needed, an elevator panel manufacturer needs to rewrite the display program, so that the display mode is very inflexible to change.
Disclosure of Invention
The invention aims to provide a display method of an elevator display panel, electronic equipment and a storage medium, so that the display style of characters to be displayed in the elevator display panel can be flexibly replaced, the cost for updating the display style is reduced, and the efficiency for updating the display style is improved.
In order to solve the technical problem, an embodiment of the present invention provides a method for displaying on an elevator display panel, including: the method is applied to a control device connected with an elevator display panel, and comprises the following steps: acquiring an updating instruction of a character to be displayed, wherein the updating instruction is used for indicating that the style of the character to be displayed is updated to a specified style, and the updating instruction comprises searching information of a storage address used for searching the specified style; acquiring a specified style from a storage space in which at least two display styles are stored in advance according to an updating instruction, wherein the display styles are packaged into style units by an upper computer according to a specified format and stored in the storage space; and reloading the specified style to the running program according to the specified format and the specified style so as to control the elevator display panel to display the display characters according to the updated indication style.
The embodiment of the invention also provides a method for displaying on the display panel of the elevator, which is applied to a control device connected with the display panel of the elevator, and the method comprises the following steps: acquiring an updating instruction of a character to be displayed, wherein the updating instruction is used for indicating to update the style of the character to be displayed into a specified style, and the updating instruction comprises search information of a storage address used for searching the specified style; acquiring the specified style from a storage space in which at least two display styles are stored in advance according to search information, wherein the display styles are packaged into style units by an upper computer according to a specified format and stored in the storage space; and reloading the specified style into a display running program according to the specified format and the specified style so as to control the elevator display panel to display the display characters according to the updated indication style.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of elevator display panel display described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the above-described method for displaying on an elevator display panel.
The method for displaying the elevator display panel in the embodiment of the application receives an updating instruction of the character to be displayed, wherein the updating instruction is used for indicating the type of the character to be displayed to be updated to the specified type; loading the specified style into a display operation program to control the elevator display panel to display the display characters according to the updated display style; when the display style of the display character needs to be changed, a programmer does not need to rewrite the display program, but the specified style is obtained and loaded into the display running program, so that a user can change the display style of the character to be displayed by himself, and the flexibility of displaying each display character by the display panel is improved; in addition, the display style is packaged and stored according to the specified format, so that the specified style is conveniently searched according to the specified format and the search information in the following process; and the storage space stores the display styles instead of the stored running programs, so that the occupied storage space is smaller, and the utilization rate of the storage space is improved.
In addition, according to the search information, acquiring the specified style from a storage space in which at least two display styles are stored in advance, includes: determining the storage address of the specified style according to the indication information and a pre-stored display style address mapping table, wherein the display style address mapping table is determined by an upper computer according to each display style in advance; and acquiring the specified style from the storage space according to the storage address and the specified format. The display style address mapping table is stored in advance, so that the storage position of the display style can be quickly searched by searching information.
In addition, before the obtaining of the update instruction of the character to be displayed, the method further includes: and receiving the display units corresponding to the display characters issued by the upper computer, and storing the display units according to the indicated addresses of the display style address mapping table. And storing the display unit according to the display style address mapping table in advance so as to quickly search the storage address according to the display style address mapping table.
In addition, the style unit includes: header information and the display style; the header information includes first information indicating a pixel length of the display pattern, second information indicating a pixel width of the display pattern, and third information indicating a data capacity of the display pattern; according to the specified format and the specified style, reloading the specified style to the running program to control the elevator display panel to display the display characters according to the updated indication style, wherein the steps of: determining the number of width bytes occupied by the width of each pixel and the number of length bytes occupied by the length of each pixel in the specified pattern according to the specified format; and sequentially carrying out the following loading processing on each line of pixels in the specified pattern: traversing and acquiring control information used for indicating a corresponding dot matrix for each column of pixels in the current row according to the width byte number and the length byte number; and controlling the corresponding dot matrix to be lightened on or extinguished according to the control information until each row of pixels in the row is traversed. According to the specified format, the number of bytes occupied by each column of pixels and the number of bytes occupied by each row of pixels in the specified format can be obtained, and each pixel can be traversed according to the number of bytes occupied by each column of pixels and the number of bytes occupied by each row of pixels, so that the display format of the display characters can be changed.
In addition, before the obtaining of the update instruction of the character to be displayed, the method further includes: after the display units corresponding to the display characters are issued by the upper computer, first verification information used for indicating that the downloading of the display units is completed is generated; and sending the first checking information to the upper computer so that the upper computer can compare the first checking information generated by the control device with second checking information generated when the upper computer sends each display unit, and if the upper computer fails to compare, sending each display unit again. The integrity of the downloaded display style can be ensured through the comparison of the first check information and the second check information.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flow chart of a method of elevator display panel display provided in accordance with a first embodiment of the present invention;
fig. 2 is a flow chart of a method of elevator display panel display provided in accordance with a second embodiment of the present invention;
fig. 3 is a schematic diagram of a display unit structure in a method for displaying an elevator display panel according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of the structure of the header information in the method for displaying on the display panel of the elevator according to the second embodiment of the present invention;
fig. 5 is a data structure diagram of a display pattern in a method for displaying an elevator display panel according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a display pattern address mapping table in a method for displaying an elevator display panel according to a second embodiment of the present invention;
fig. 7 is a flow chart of a method of elevator display panel display provided in accordance with a third embodiment of the present invention;
fig. 8 is a flow chart of a method of elevator display panel display provided in accordance with a fourth embodiment of the present invention;
fig. 9 is a flow chart of a method of elevator display panel display provided in accordance with a fifth embodiment of the present invention;
fig. 10 is a block diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The first embodiment of the invention relates to a method for displaying on an elevator display panel, which is applied to a control device connected with the elevator display panel, and the flow of the method is as claimed in fig. 1:
step 101: and acquiring an updating instruction of the character to be displayed, wherein the updating instruction is used for indicating that the style of the character to be displayed is updated to be a specified style, and the updating instruction comprises search information of a storage address used for searching the specified style.
Step 102: and acquiring a specified style from a storage space in which at least two display styles are stored in advance according to the search information, wherein the display styles are packaged into style units according to a specified format by the upper computer and stored in the storage space.
Step 103: and reloading the specified style into the display running program according to the specified format and the specified style so as to control the elevator display panel to display the display character according to the updated indication style.
The method for displaying the elevator display panel in the embodiment of the application receives an updating instruction of the character to be displayed, wherein the updating instruction is used for indicating the type of the character to be displayed to be updated to the specified type; loading the specified style into a display operation program to control the elevator display panel to display the display characters according to the updated display style; when the display style of the display character needs to be changed, a programmer does not need to rewrite the display program, but the specified style is obtained and loaded into the display running program, so that a user can change the display style of the character to be displayed by himself, and the flexibility of displaying each display character by the display panel is improved; in addition, the display style is packaged and stored according to the specified format, so that the specified style is conveniently searched according to the specified format and the search information in the following process; and the storage space stores the display styles instead of the stored running programs, so that the occupied storage space is smaller, and the utilization rate of the storage space is improved.
A second embodiment of the invention relates to a method of elevator display panel display. The second embodiment is a detailed description of the first embodiment. The flow is shown in figure 2:
step 201: and acquiring an updating instruction of the character to be displayed, wherein the updating instruction is used for indicating that the style of the character to be displayed is updated to be a specified style, and the updating instruction comprises search information of a storage address used for searching the specified style.
Specifically, the elevator display panel may be a dot matrix display panel, a segment code display panel, an LCD display panel, or the like. The elevator display panel is connected to a control device, which may be a Microcontroller Unit (MCU). The micro control Unit is a chip-level computer formed by appropriately reducing the frequency and specification of a Central Processing Unit (CPU) and integrating peripheral interfaces such as a memory (memory), a counter (Timer), a USB, an a/D conversion, a UART, a PLC, a DMA, and the like on a single chip. The MCU is provided with a FLASH memory space, namely a FLASH space, and the FLASH space can modify the stored data through a specific program. The control device is connected with an upper computer through a serial port, the upper computer can communicate with the control device based on a boot program in the MCU, the boot program can be a Bootloader, the Bootloader is a first section of code executed by the embedded system after being powered on, after the CPU and related hardware are initialized, an operating system image or a solidified embedded application program is installed in a memory and then jumps to a space where the operating system is located, and the operating system is started to run.
In one example, before obtaining the update instruction of the character to be displayed, the method further includes: and receiving display units corresponding to the display characters issued by the upper computer, and storing the display units according to the indicated addresses of the display style address mapping table.
Specifically, before the update instruction of the characters to be displayed is obtained, the upper computer issues the display units corresponding to the display characters to the control device, and the control device stores the display units according to the preset display style address mapping table indication. The display style address mapping table is constructed in advance for an upper computer. Each display unit includes: header information and a display style; the header information includes first information indicating a pixel length of the display pattern, second information indicating a pixel width of the display pattern, and third information indicating a data capacity of the display pattern.
The specified format of the display unit may be as shown in fig. 3, and includes header information and a display pattern, the header information may occupy 4 bytes, and the number of bytes occupied by the display pattern is counted as the number of bytes of the capacity of the display pattern. The structure of the header information includes: the information of the file length may include a sum of the number of bytes occupied by the first information, the number of bytes occupied by the second information, and the number of bytes occupied by the third information, for example, as shown in fig. 4, the number of bytes occupied by the file length is 2 bytes, and the information of the corresponding file length includes that the number of bytes occupied by the first information is 1 byte, the number of bytes occupied by the second information is 1 byte, and the number of bytes occupied by the third information is a sum of 8 bytes, so the information of the file length is 10. The file length information is used to indicate the display style data capacity information. So that the respective display styles can be stored or read later according to the information of the file length.
The upper computer can obtain the display style of the character to be displayed from the modulus taking device, the modulus taking device can read the display style of the character to be displayed drawn by a user, for example, the user can draw the character to be displayed in a Song style of 0 through the input panel; the modulo device acquires the display style of the drawn "0". It is understood that, in the present example, the display pattern may be understood as image data of a display character, the length of the display pattern is marked with L, L represents the column data of the display pattern, W represents the width data of the display pattern, the column data is 13 bits, and the width is 4 bits, forming the display pattern shown in fig. 5.
In this example, the upper computer acquires the display style from the modulus taking device, and converts the format of the display style into a specified format to form a display unit. The upper computer reads the head information in the display units respectively, allocates storage addresses and corresponding identification information to each display unit according to the head information, and forms a display style address mapping table, as shown in fig. 6, the identification information may be in a character form, as shown in fig. 6, a character "0" may be identified and displayed by a serial number "48", and a character "a" may be identified and displayed by a serial number "65". The length of the presentation style address mapping table may be 256, with each entry in the table having a capacity of 4 bytes, each entry including: the identification information corresponds to a storage address.
The following describes a process of the upper mechanism building a display style address mapping table by using a specific example:
the method comprises the steps that an upper computer obtains a display style corresponding to display characters, judges whether the characters corresponding to the display style are first characters or not, if yes, obtains a preset initial storage address as a storage address of the display style, if not, obtains a storage address of a previous display style and obtains the capacity of a current display style, determines the storage address of the current display style according to the storage address of the previous display style and the capacity of the current display style, detects whether the characters corresponding to the display style are last display characters or not after the storage address is distributed for the current display style, if yes, the process is ended, and if not, the storage address is continuously distributed for the next display style.
After the display style address mapping table is established, the upper computer is connected with the MCU through a bootloader of the MCU, communicates with the MCU through a serial port communication mode, and sends each display unit to a FLASH space of the MCU for storage in a question-and-answer mode with the MCU. The process of the upper computer issuing the display unit to the MCU is specifically described as follows:
the upper computer sends a specific character to the MCU, after the MCU receives the specific character, the first response is carried out according to the specific character, the first response information is fed back to the upper computer, the upper computer receives the first response and judges whether the first response is correct or not, for example, the first response information can be compared with a preset response message, if the first response information is the same as the first response information, the first response information is confirmed to be correct, if the first response information is different from the preset response information, the first response information is confirmed to be wrong, the upper computer sends the specific character again until the upper computer judges that the MCU returns the correct first response information.
The upper computer sends a data writing request to the MCU, issues the display pattern address mapping table to the MCU, and the MCU responds again according to the received writing request and the display pattern address mapping table and returns a second response; and the upper computer judges whether the second response is correct or not.
If the second response is correct, the upper computer sends each display unit to the MCU so that the MCU can generate a third response after storing each display unit; if the upper computer does not receive the third response within the preset time period, ending the process of issuing the display unit; if the upper computer receives the third response, whether all the display units are sent completely is judged, if the sending of each display unit is completed, the upper computer generates third check information, and if the sending of each display unit is not completed, the next display unit is continuously sent.
And if the second response is incorrect, ending the process of issuing the display unit.
In order to ensure the accuracy of downloading the display units, the upper computer reads each display unit from the MCU, and generates fourth check information after the reading of each display unit is completed; the upper computer compares the third verification information with the fourth verification information, judges whether the third verification information is matched with the fourth verification information, determines that all the display units are downloaded into the storage space of the MCU if the third verification information is matched with the fourth verification information, indicates that all the display units are not stored in the storage space if the third verification information is not matched with the fourth verification information, and can send an alarm; the display units may also be retransmitted to the MCU.
The elevator display panel displays the character to be displayed in a display style specified in the loading storage. If the user needs to change the display style of the character to be displayed, an updating instruction can be sent to the control device through the upper computer, and the updating instruction can comprise: and searching information. The search information may be identification information of a character to be displayed; the number of the characters to be displayed can be one, or 2 or more; for example, the character to be displayed may be "0", "stop", or the like.
Step 202: and determining the storage address of the specified style according to the finger searching information and a pre-stored display style address mapping table, wherein the display style address mapping table is determined by the upper computer according to each display style in advance.
Step 203: and acquiring the specified style from the storage space according to the storage address and the specified format.
And acquiring a specified style from a storage space in which at least two display styles are stored in advance according to the search information, wherein the display styles are packaged into style units according to a specified format by the upper computer and stored in the storage space.
In one example, according to the search information and a pre-stored display style address mapping table, determining a storage address of a specified style, wherein the display style address mapping table is determined by an upper computer according to each display style in advance; and acquiring the specified style from the storage space according to the storage address and the specified format. The display style address mapping table contains the corresponding relation between the identification information of the display style and the storage address, and the search information can be the identification information of the display style, so that the storage address corresponding to the display style can be quickly acquired. The specified format includes the capacity data of the display style, and the display style can be accurately acquired from the storage space as the specified style through the storage address and the capacity data of the display style.
Step 204: and reloading the specified style into the display running program according to the specified format and the specified style so as to control the elevator display panel to display the display character according to the updated indication style.
In one example, a display unit includes: a header information display style; the header information includes first information indicating a pixel length of the display pattern, second information indicating a pixel width of the display pattern, and third information indicating a data capacity of the display pattern. Determining the number of width bytes occupied by the width of each pixel and the number of length bytes occupied by the length of each pixel in the specified pattern according to the specified format; and sequentially carrying out the following loading processing on each line of pixels in the specified pattern: traversing and acquiring control information of each column of pixels in the current row for indicating the corresponding dot matrix according to the number of width bytes and the number of length bytes; and controlling the corresponding dot matrix to be lightened on or extinguished according to the control information until each row of pixels in the row is traversed.
Specifically, the display pattern is obtained from the storage address, and according to the first information, the second information, and the third information, the number of bytes of length occupied by the length of each pixel in each display pattern and the number of bytes occupied by the width of each pixel can be determined. For example, if the information of the file length is N, and the second information obtains the number of bytes W occupied by the width, the number of bytes of the length occupied by each pixel can be determined as follows: (N-2)/W. And sequentially traversing each pixel in a row-by-row and column-by-column manner to acquire the control information of the dot matrix corresponding to the pixel in the elevator display panel.
The process of controlling the display of the elevator display panel is described in detail as follows:
for each row of pixels, sequentially loading each pixel in the row in the order from left to right: judging whether the length of the current row of pixels is 0 or not, if the length of the current row of pixels is 0, indicating that all pixels of the row are traversed, acquiring the pixels starting to traverse the next row; and if the current row of pixels is not 0, acquiring the pixel information, controlling the corresponding dot matrix to be lightened or extinguished according to the information of the pixel, shifting the corresponding dot matrix to the right, and loading the next pixel.
In this embodiment, according to the designated format, the number of bytes occupied by each column of pixels and the number of bytes occupied by each row of pixels in the designated format may be obtained, so that each pixel may be traversed according to the number of bytes occupied by each column of pixels and the number of bytes occupied by each row of pixels, thereby implementing the change of the display format of the display character.
A third embodiment of the present invention relates to a method of elevator display panel display. The third embodiment is substantially the same as the above embodiment, and mainly differs in that in this embodiment, when each display unit is issued from the upper computer, first verification information is generated, and whether to download each display unit again is determined based on the second verification information and the first verification information generated by the MCU. The specific verification process is shown in fig. 7.
Step 301: and after the storage upper computer issues the display units corresponding to the display characters, generating first verification information for indicating that the downloading of the display units is completed.
Specifically, after the display units are downloaded, the MCU may generate first verification information for indicating that the downloading of each display unit is completed according to a preset manner.
Step 302: and sending the first check information to the upper computer so that the upper computer compares the first check information generated by the control device with second check information generated when the upper computer issues each display unit, and if the upper computer fails to compare, issuing each display unit again.
And feeding back the first check information to the upper computer, and generating second check information by the upper computer according to the same check rule after the upper computer sends out each display unit. Comparing whether the first check information and the second check information are the same, if so, indicating that the storage of each display unit is finished; if not, the display units are not stored completely, at the moment, the upper computer can send out an alarm and send the display units to the control device again.
A fourth embodiment of the present invention relates to a method of elevator display panel display. The method is applied to an upper computer, the upper computer is connected with a control device of an elevator display panel, the control device is connected with the elevator display panel and is used for controlling the display of the elevator display panel, and the flow is shown in figure 8:
step 401: and acquiring display styles corresponding to at least two display characters to be stored.
Step 402: and packaging the display style according to a specified format to generate a display unit.
Step 403: the display unit is issued to a storage space of the control device to be stored, so that the control device can acquire a specified style from the storage space after receiving an updating instruction, the updating instruction is used for indicating that the style of the character to be displayed is updated to the specified style, and the updating instruction comprises searching information of a storage address used for searching the specified style; and the control device reloads the specified pattern to the running program according to the specified format and the specified pattern so as to control the elevator display panel to display the display characters according to the updated indication pattern.
The embodiment is applied to an upper computer connected with a control device, and the display units in a specified format can be generated through the upper computer, so that the subsequent control device can store each display unit according to the specified format.
A fifth embodiment of the present invention relates to a method for displaying on an elevator display panel. The fifth embodiment is a detailed description of the fourth embodiment, and the flow thereof is shown in fig. 9:
step 501: and acquiring display styles corresponding to at least two display characters to be stored.
The upper computer can obtain the display style of the character to be displayed from the modulus taking device, the modulus taking device can read the display style of the character to be displayed drawn by a user, for example, the user can draw the character to be displayed in a Song style of 0 through the input panel; the modulo device acquires the display style of the drawn "0". It is to be understood that, in the present example, the display style may be understood as displaying image data of characters.
Step 502: and packaging the display style according to a specified format to generate a display unit.
In one example, corresponding identification information is allocated to each display style; the following processing is performed for each display style: acquiring address information of a previous display style, and determining the address information of the display style according to the address information of the previous display style and the data capacity of the display style; and binding the address information with the distributed identification information to generate a display style address mapping table.
In this example, the upper computer acquires the display style from the modulus taking device, and converts the format of the display style into a specified format to form a display unit. The length of the display pattern is marked with L, L represents the line data of the display pattern, W represents the width data of the display pattern, the line data is 13 bits, and the width is 4 bits, forming the display pattern shown in fig. 5.
The specified format of the display unit can be as shown in fig. 3, and includes header information and a display pattern, the header information can occupy 4 bytes, and the number of bytes occupied by the display pattern is recorded as the number of bytes of the display pattern capacity. The structure of the header information includes: the file length information may include a sum of the number of bytes occupied by the first information, the number of bytes occupied by the second information, and the number of bytes occupied by the third information, for example, as shown in fig. 4, the number of bytes occupied by the file length is 2 bytes, the number of bytes occupied by the first information is 1 byte, the number of bytes occupied by the second information is 1 byte, and the number of bytes occupied by the third information is 8 bytes, so that the file length information is 10 bytes. The file length information is used to indicate useful information related to the display style data capacity. So that the respective display units can be stored in accordance with the file length information later.
The upper computer reads the head information in the display units respectively, allocates storage addresses and corresponding identification information to each display unit according to the head information, and forms a display style address mapping table, as shown in fig. 6, the identification information may be in a character form, as shown in fig. 6, a character "0" may be identified and displayed by a serial number "48", and a character "a" may be identified and displayed by a serial number "65". The length of the presentation style address mapping table may be 256, with each entry in the table having a capacity of 4 bytes, each entry including: the identification information corresponds to a storage address.
The following describes a process of the upper mechanism building a display style address mapping table by using a specific example:
the method comprises the steps that an upper computer obtains a display style corresponding to display characters, judges whether the characters corresponding to the display style are first characters or not, if yes, obtains a preset initial storage address as a storage address of the display style, if not, obtains a storage address of a previous display style and obtains the capacity of a current display style, determines the storage address of the current display style according to the storage address of the previous display style and the capacity of the current display style, detects whether the characters corresponding to the display style are last display characters or not after the storage address is distributed for the current display style, if yes, the process is ended, and if not, the storage address is continuously distributed for the next display style.
Step 503: and transmitting the display unit to the storage space of the control device for storage.
After the display style address mapping table is established, the upper computer is connected with the MCU through a bootloader of the MCU, communicates with the MCU through a serial port communication mode, and sends each display unit to a FLASH space of the MCU for storage in a question-and-answer mode with the MCU. The process of the upper computer issuing the display unit to the MCU is specifically described as follows:
the upper computer sends a specific character to the MCU, after the MCU receives the specific character, the first response is carried out according to the specific character, the first response information is fed back to the upper computer, the upper computer receives the first response and judges whether the first response is correct or not, for example, the first response information can be compared with a preset response message, if the first response information is the same as the first response information, the first response information is confirmed to be correct, if the first response information is different from the preset response information, the first response information is confirmed to be wrong, the upper computer sends the specific character again until the upper computer judges that the MCU returns the correct first response information.
The upper computer sends a data writing request to the MCU, issues the display pattern address mapping table to the MCU, and the MCU responds again according to the received writing request and the display pattern address mapping table and returns a second response; and the upper computer judges whether the second response is correct or not.
If the second response is correct, the upper computer sends each display unit to the MCU so that the MCU can generate a third response after storing each display unit; if the upper computer does not receive the third response within the preset time period, ending the process of issuing the display unit; if the upper computer receives the third response, whether all the display units are sent completely is judged, if the sending of each display unit is completed, the upper computer generates third check information, and if the sending of each display unit is not completed, the next display unit is continuously sent.
And if the second response is incorrect, ending the process of issuing the display unit.
Step 504: and after each display unit is stored in the storage space, generating third verification information for indicating each display unit to finish issuing.
And after each display unit is stored in the storage space, the upper computer generates third verification information.
Step 505: and sending a reading instruction to the control device to enable the control device to generate confirmation feedback, wherein the feedback is used for indicating the control device to allow the upper computer to carry out reading operation.
Specifically, in order to ensure the accuracy of downloading the display unit, the upper computer sends a data reading request and the display style address mapping table to the MCU, the MCU performs feedback again according to the received reading request and the display style address mapping table, and returns the feedback, and if the feedback is not received, the reading operation is terminated.
Step 506: and reading each display unit according to the feedback, and generating fourth verification information for indicating that the reading of each display unit is finished.
After receiving the feedback, the upper computer reads each display unit from the MCU; judging whether the upper computer finishes reading each display unit or not, and if the upper computer finishes reading each display unit, generating fourth verification information by the upper computer; and if the display units are not read completely, continuing the reading operation.
Step 507: and judging whether the third check information and the fourth check information are matched, if so, executing a step 508, otherwise, executing a step 509.
Step 508: and prompting the user to download information of successful display style.
Step 509: and issuing each display unit to the control device again and prompting the information of download failure.
In this example, the third verification information and the fourth verification information are produced in an upper level, so that the situation that the MCU cannot generate the verification information is avoided, and the accuracy of downloading each display unit is improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A sixth embodiment of the present invention relates to an electronic device, a block diagram of which is shown in fig. 10, and includes at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; wherein the memory 602 stores instructions executable by the at least one processor 601, the instructions being executable by the at least one processor 601 to enable the at least one processor 601 to perform the method of elevator display panel display described above.
The memory and the processor are connected by a bus, which may include any number of interconnected buses and bridges, linking together one or more of the various circuits of the processor and the memory. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described method for displaying on an elevator display panel.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A method of elevator display panel display, applied to a control device connected to an elevator display panel, the method comprising:
acquiring an updating instruction of a character to be displayed, wherein the updating instruction is used for indicating to update the style of the character to be displayed into a specified style, and the updating instruction comprises search information of a storage address used for searching the specified style;
acquiring the specified style from a storage space in which at least two display styles are stored in advance according to the search information, wherein the display styles are packaged into style units by an upper computer according to a specified format and stored in the storage space;
and reloading the specified style into a display running program according to the specified format and the specified style so as to control the elevator display panel to display the display characters according to the updated indication style.
2. The method of claim 1, wherein the retrieving the designated pattern from a storage space in which at least two display patterns are pre-stored according to the search information comprises:
determining the storage address of the specified pattern according to the search information and a pre-stored display pattern address mapping table, wherein the display pattern address mapping table is determined by an upper computer according to each display pattern in advance;
and acquiring the specified style from the storage space according to the storage address and the specified format.
3. The method of elevator display panel display according to claim 2, wherein prior to said obtaining an update command for a character to be displayed, the method further comprises:
and receiving the display units corresponding to the display characters issued by the upper computer, and storing the display units according to the indicated addresses of the display style address mapping table.
4. The method of elevator display panel display according to any of claims 1-3, characterized in that the display unit comprises: header information and the display style; the header information includes first information indicating a pixel length of the display pattern, second information indicating a pixel width of the display pattern, and third information indicating a data capacity of the display pattern;
according to the specified format and the specified style, reloading the specified style to the running program to control the elevator display panel to display the display characters according to the updated indication style, wherein the steps of:
determining the number of width bytes occupied by the width of each pixel and the number of length bytes occupied by the length of each pixel in the specified pattern according to the specified format;
and sequentially carrying out the following loading processing on each line of pixels in the specified pattern: traversing and acquiring control information used for indicating a corresponding dot matrix for each column of pixels in the current row according to the width byte number and the length byte number; and controlling the corresponding dot matrix to be lightened on or extinguished according to the control information until each row of pixels in the row is traversed.
5. The method of any of claims 1-3, wherein prior to the obtaining the update command for the character to be displayed, the method further comprises:
after the display units corresponding to the display characters are issued by the upper computer, first verification information used for indicating that the downloading of the display units is completed is generated;
and sending the first checking information to the upper computer so that the upper computer can compare the first checking information generated by the control device with second checking information generated when the upper computer sends each display unit, and if the upper computer fails to compare, sending each display unit again.
6. A method for displaying on a display panel of an elevator, the method being applied to an upper computer connected to the control device of claims 1 to 5, the method comprising:
acquiring display styles corresponding to at least two display characters to be stored;
packaging the display style according to the specified format to generate a display unit;
the display unit is issued to a storage space of the control device to be stored, so that the control device obtains the specified style from the storage space after receiving an update instruction, the update instruction is used for indicating that the style of the character to be displayed is updated to be the specified style, and the update instruction comprises search information of a storage address used for searching the specified style; and the control device reloads the specified style to the running program according to the specified format and the specified style so as to control the elevator display panel to display the display characters according to the updated indication style.
7. The method of elevator display panel display of claim 6, wherein before the display unit is sent to the memory space of the control device for storage, the method further comprises:
distributing corresponding identification information for each display style;
the following processing is performed for each display style: acquiring address information of a previous display style, and determining the address information of the display style according to the address information of the previous display style and the data capacity of the display style; and binding the address information with the distributed identification information to generate a display style address mapping table.
8. The method of claim 6, wherein after the step of sending the display unit to the memory space of the control device for storage, the method comprises:
after each display unit is stored in the storage space, third verification information used for indicating each display unit to finish issuing is generated;
sending a reading instruction to the control device to enable the control device to generate confirmation feedback, wherein the feedback is used for indicating the control device to allow the upper computer to carry out reading operation;
reading each display unit according to the feedback, and generating fourth verification information for indicating that the reading of each display unit is finished;
and judging whether the third verification information is matched with the fourth verification information, if so, prompting a user to download information of successful display style, otherwise, issuing each display unit to the control device again and prompting information of download failure.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of elevator display panel display of any of claims 1-5 or the method of elevator display panel display of any of claims 6-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of elevator display panel display according to any one of claims 1 to 5 or the method of elevator display panel display according to any one of claims 6 to 8.
CN202110012711.0A 2021-01-06 2021-01-06 Method for displaying elevator display panel, electronic equipment and storage medium Active CN112698801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110012711.0A CN112698801B (en) 2021-01-06 2021-01-06 Method for displaying elevator display panel, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110012711.0A CN112698801B (en) 2021-01-06 2021-01-06 Method for displaying elevator display panel, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112698801A true CN112698801A (en) 2021-04-23
CN112698801B CN112698801B (en) 2023-08-15

Family

ID=75514869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110012711.0A Active CN112698801B (en) 2021-01-06 2021-01-06 Method for displaying elevator display panel, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112698801B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1036543A (en) * 1988-03-09 1989-10-25 株式会社日立制作所 The display control unit of elevator and display method thereof
CN101168421A (en) * 2007-06-28 2008-04-30 上海永大电梯设备有限公司 Method for realizing elevator displaying mode
CN202414907U (en) * 2012-01-16 2012-09-05 西继迅达(许昌)电梯有限公司 Elevator display system and display device
US20130246699A1 (en) * 2012-03-15 2013-09-19 International Business Machines Corporation Finding the length of a set of character data having a termination character
CN106276455A (en) * 2015-06-03 2017-01-04 上海三菱电梯有限公司 The method for information display of information display system and information display system
CN107155323A (en) * 2015-01-26 2017-09-12 株式会社日立制作所 Lift appliance and its display device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1036543A (en) * 1988-03-09 1989-10-25 株式会社日立制作所 The display control unit of elevator and display method thereof
CN101168421A (en) * 2007-06-28 2008-04-30 上海永大电梯设备有限公司 Method for realizing elevator displaying mode
CN202414907U (en) * 2012-01-16 2012-09-05 西继迅达(许昌)电梯有限公司 Elevator display system and display device
US20130246699A1 (en) * 2012-03-15 2013-09-19 International Business Machines Corporation Finding the length of a set of character data having a termination character
CN107155323A (en) * 2015-01-26 2017-09-12 株式会社日立制作所 Lift appliance and its display device
CN106276455A (en) * 2015-06-03 2017-01-04 上海三菱电梯有限公司 The method for information display of information display system and information display system

Also Published As

Publication number Publication date
CN112698801B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN100565429C (en) The method and apparatus that is used for the character sequence control of data handling system
JPH02214994A (en) Ic card
CN109358887B (en) On-line upgrading method, device and system for single chip microcomputer program
EP1265135A2 (en) Rewriting boot areas
CN110990034A (en) ECU upgrading method and system, electronic equipment and storage medium
CN112947977A (en) Software online upgrading method and system
CN112000358B (en) Upgrading method of charging pile and intelligent charging pile
US20220107798A1 (en) Server, software update system, distribution method, and non-transitory storage medium
CN112698801A (en) Method for displaying on display panel of elevator, electronic device and storage medium
US20120320075A1 (en) System for implementing uniform display attributes
JPS5941209B2 (en) Bi-programmable electronic accounting system
CN116954674A (en) eMMC firmware upgrading method, firmware upgrading equipment and storage device
CN116302011A (en) Firmware upgrading method for cable monitoring equipment
CN113703818A (en) Device upgrading method and device, computer device and computer-readable storage medium
JP3022326B2 (en) File change history management system
KR102434126B1 (en) Apparatus for processing programmable logic controller program
CN113050969A (en) Display parameter updating method, driving chip and display device
CN110968337A (en) Software upgrading method and device
CN117687704B (en) Display card initialization method, device, equipment and storage medium
KR100316584B1 (en) Flash Memory To Share With Booting And Main Operation Program In System And Upgrade Method In That Memory
JP2003076565A (en) Equipment controller, program update method, storage medium and program
JP4715189B2 (en) Disk device and firmware determination method
JPS5943779B2 (en) Terminal device control method
CN111414176B (en) Program burning method, device, electronic equipment and storage medium
CN111124461B (en) Method and device for upgrading OTA (over the air) of singlechip and singlechip

Legal Events

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